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=========================================================================*/
37#ifndef vtkAppendPolyData_h
38#define vtkAppendPolyData_h
39
40#include "vtkFiltersCoreModule.h" // For export macro
42
43class vtkCellArray;
44class vtkDataArray;
45class vtkPoints;
46class vtkPolyData;
47
48class VTKFILTERSCORE_EXPORT vtkAppendPolyData : public vtkPolyDataAlgorithm
49{
50public:
52
54 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
55
57
63 vtkSetMacro(UserManagedInputs,int);
64 vtkGetMacro(UserManagedInputs,int);
65 vtkBooleanMacro(UserManagedInputs,int);
67
73
79
81
85 vtkPolyData *GetInput() { return this->GetInput( 0 ); };
87
92 void SetNumberOfInputs(int num);
93
94 // Set Nth input, should only be used when UserManagedInputs is true.
97
99
109 vtkSetMacro(ParallelStreaming, int);
110 vtkGetMacro(ParallelStreaming, int);
111 vtkBooleanMacro(ParallelStreaming, int);
113
115
120 vtkSetMacro(OutputPointsPrecision,int);
121 vtkGetMacro(OutputPointsPrecision,int);
123
125 vtkPolyData* inputs[], int numInputs);
126
127protected:
129 ~vtkAppendPolyData() VTK_OVERRIDE;
130
131 // Flag for selecting parallel streaming behavior
132 int ParallelStreaming;
133 int OutputPointsPrecision;
134
135 // Usual data generation method
136 int RequestData(vtkInformation *,
137 vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
138 int RequestUpdateExtent(vtkInformation *,
139 vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
140 int FillInputPortInformation(int, vtkInformation *) VTK_OVERRIDE;
141
142 // An efficient templated way to append data.
143 void AppendData(vtkDataArray *dest, vtkDataArray *src, vtkIdType offset);
144
145
146 // An efficient way to append cells.
147 vtkIdType *AppendCells(vtkIdType *pDest, vtkCellArray *src,
149
150 private:
151 // hide the superclass' AddInput() from the user and the compiler
152 void AddInputData(vtkDataObject *)
153 { vtkErrorMacro( << "AddInput() must be called with a vtkPolyData not a vtkDataObject."); };
154
155 int UserManagedInputs;
156
157private:
158 vtkAppendPolyData(const vtkAppendPolyData&) VTK_DELETE_FUNCTION;
159 void operator=(const vtkAppendPolyData&) VTK_DELETE_FUNCTION;
160};
161
162#endif
163
164
Proxy object to connect input/output ports.
appends one or more polygonal datasets together
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void AddInputData(vtkPolyData *)
Add a dataset to the list of data to append.
void RemoveInputData(vtkPolyData *)
Remove a dataset from the list of data to append.
~vtkAppendPolyData() override
int ExecuteAppend(vtkPolyData *output, vtkPolyData *inputs[], int numInputs)
vtkPolyData * GetInput(int idx)
Get any input of this filter.
static vtkAppendPolyData * New()
void SetInputConnectionByNumber(int num, vtkAlgorithmOutput *input)
vtkPolyData * GetInput()
void SetNumberOfInputs(int num)
Directly set(allocate) number of inputs, should only be used when UserManagedInputs is true.
void SetInputDataByNumber(int num, vtkPolyData *ds)
object to represent cell connectivity
Definition: vtkCellArray.h:51
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
general representation of visualization data
Definition: vtkDataObject.h:65
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:40
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
@ offset
Definition: vtkX3D.h:438
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
int vtkIdType
Definition: vtkType.h:287