VTK
vtkAppendPolyData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAppendPolyData.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
36 #ifndef vtkAppendPolyData_h
37 #define vtkAppendPolyData_h
38 
39 #include "vtkFiltersCoreModule.h" // For export macro
40 #include "vtkPolyDataAlgorithm.h"
41 
42 class vtkCellArray;
43 class vtkDataArray;
44 class vtkPoints;
45 class vtkPolyData;
46 
48 {
49 public:
51 
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
56 
61  vtkSetMacro(UserManagedInputs,int);
62  vtkGetMacro(UserManagedInputs,int);
63  vtkBooleanMacro(UserManagedInputs,int);
65 
69 
73 
74 //BTX
76 
77  vtkPolyData *GetInput(int idx);
78  vtkPolyData *GetInput() { return this->GetInput( 0 ); };
79 //ETX
81 
85 
86  // Set Nth input, should only be used when UserManagedInputs is true.
89 
91 
98  vtkSetMacro(ParallelStreaming, int);
99  vtkGetMacro(ParallelStreaming, int);
100  vtkBooleanMacro(ParallelStreaming, int);
102 
104 
107  vtkSetMacro(OutputPointsPrecision,int);
108  vtkGetMacro(OutputPointsPrecision,int);
110 
111 //BTX
113  vtkPolyData* inputs[], int numInputs);
114 //ETX
115 protected:
118 
119  // Flag for selecting parallel streaming behavior
122 
123  // Usual data generation method
129 
130  // An efficient templated way to append data.
132 
133 
134  // An efficient way to append cells.
136  vtkIdType offset);
137 
138  private:
139  // hide the superclass' AddInput() from the user and the compiler
141  { vtkErrorMacro( << "AddInput() must be called with a vtkPolyData not a vtkDataObject."); };
142 
143  template <class InputIterator>
144  void AppendData(vtkDataArray *dest, vtkDataArray *src, vtkIdType offset,
145  InputIterator srcData, InputIterator srcEnd);
146 
147  template <class InputIterator, class OutputIterator>
148  void AppendData(vtkDataArray *dest, vtkDataArray *src, vtkIdType offset,
149  InputIterator srcData, InputIterator srcEnd,
150  OutputIterator destData);
151 
152  int UserManagedInputs;
153 
154 private:
155  vtkAppendPolyData(const vtkAppendPolyData&); // Not implemented.
156  void operator=(const vtkAppendPolyData&); // Not implemented.
157 };
158 
159 #endif
160 
161 
vtkAppendPolyData::ParallelStreaming
int ParallelStreaming
Definition: vtkAppendPolyData.h:120
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkAppendPolyData::AppendData
void AppendData(vtkDataArray *dest, vtkDataArray *src, vtkIdType offset)
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkAppendPolyData::~vtkAppendPolyData
~vtkAppendPolyData()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkAppendPolyData::SetInputDataByNumber
void SetInputDataByNumber(int num, vtkPolyData *ds)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkAppendPolyData::AddInputData
void AddInputData(vtkPolyData *)
vtkgl::input
GLenum GLenum GLenum input
Definition: vtkgl.h:15941
vtkErrorMacro
#define vtkErrorMacro(x)
Definition: vtkSetGet.h:478
vtkAppendPolyData::SetNumberOfInputs
void SetNumberOfInputs(int num)
vtkFiltersCoreModule.h
vtkPolyDataAlgorithm.h
vtkAppendPolyData
appends one or more polygonal datasets together
Definition: vtkAppendPolyData.h:48
vtkgl::src
GLenum src
Definition: vtkgl.h:12525
vtkgl::num
GLuint GLuint num
Definition: vtkgl.h:16907
VTKFILTERSCORE_EXPORT
#define VTKFILTERSCORE_EXPORT
Definition: vtkFiltersCoreModule.h:15
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:50
vtkAppendPolyData::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkgl::offset
GLintptr offset
Definition: vtkgl.h:11844
vtkPolyDataAlgorithm::AddInputData
void AddInputData(vtkDataObject *)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkAppendPolyData::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkAppendPolyData::GetInput
vtkPolyData * GetInput(int idx)
vtkAppendPolyData::GetInput
vtkPolyData * GetInput()
Definition: vtkAppendPolyData.h:78
vtkAppendPolyData::SetInputConnectionByNumber
void SetInputConnectionByNumber(int num, vtkAlgorithmOutput *input)
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkAppendPolyData::ExecuteAppend
int ExecuteAppend(vtkPolyData *output, vtkPolyData *inputs[], int numInputs)
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:39
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkAppendPolyData::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkAppendPolyData::FillInputPortInformation
virtual int FillInputPortInformation(int, vtkInformation *)
vtkAppendPolyData::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkAppendPolyData.h:121
vtkAppendPolyData::vtkAppendPolyData
vtkAppendPolyData()
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkAppendPolyData::AppendCells
vtkIdType * AppendCells(vtkIdType *pDest, vtkCellArray *src, vtkIdType offset)
vtkAppendPolyData::New
static vtkAppendPolyData * New()
vtkAppendPolyData::RemoveInputData
void RemoveInputData(vtkPolyData *)
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44