VTK  9.1.20220525
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 =========================================================================*/
151 #ifndef vtkAppendPolyData_h
152 #define vtkAppendPolyData_h
153 
154 #include "vtkFiltersCoreModule.h" // For export macro
155 #include "vtkPolyDataAlgorithm.h"
156 
157 class vtkCellArray;
158 class vtkDataArray;
159 class vtkPoints;
160 class vtkPolyData;
161 
162 class VTKFILTERSCORE_EXPORT vtkAppendPolyData : public vtkPolyDataAlgorithm
163 {
164 public:
166 
168  void PrintSelf(ostream& os, vtkIndent indent) override;
169 
171 
177  vtkSetMacro(UserManagedInputs, vtkTypeBool);
178  vtkGetMacro(UserManagedInputs, vtkTypeBool);
179  vtkBooleanMacro(UserManagedInputs, vtkTypeBool);
181 
187 
193 
195 
199  vtkPolyData* GetInput() { return this->GetInput(0); }
201 
206  void SetNumberOfInputs(int num);
207 
208  // Set Nth input, should only be used when UserManagedInputs is true.
210  void SetInputDataByNumber(int num, vtkPolyData* ds);
211 
213 
223  vtkSetMacro(ParallelStreaming, vtkTypeBool);
224  vtkGetMacro(ParallelStreaming, vtkTypeBool);
225  vtkBooleanMacro(ParallelStreaming, vtkTypeBool);
227 
229 
234  vtkSetMacro(OutputPointsPrecision, int);
235  vtkGetMacro(OutputPointsPrecision, int);
237 
238  int ExecuteAppend(vtkPolyData* output, vtkPolyData* inputs[], int numInputs)
239  VTK_SIZEHINT(inputs, numInputs);
240 
241 protected:
243  ~vtkAppendPolyData() override;
244 
245  // Flag for selecting parallel streaming behavior
248 
249  // Usual data generation method
253 
254  // An efficient templated way to append data.
256 
257  // An efficient way to append cells.
259 
260 private:
261  // hide the superclass' AddInput() from the user and the compiler
263  {
264  vtkErrorMacro(<< "AddInput() must be called with a vtkPolyData not a vtkDataObject.");
265  }
266 
267  vtkTypeBool UserManagedInputs;
268 
269 private:
270  vtkAppendPolyData(const vtkAppendPolyData&) = delete;
271  void operator=(const vtkAppendPolyData&) = delete;
272 };
273 
274 #endif
Proxy object to connect input/output ports.
appends one or more polygonal datasets together
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
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.
vtkPolyData * GetInput(int idx)
Get any input of this filter.
~vtkAppendPolyData() override
vtkTypeBool ParallelStreaming
int ExecuteAppend(vtkPolyData *output, vtkPolyData *inputs[], int numInputs)
static vtkAppendPolyData * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void AppendCells(vtkCellArray *dst, vtkCellArray *src, vtkIdType offset)
void AppendData(vtkDataArray *dest, vtkDataArray *src, vtkIdType offset)
vtkPolyData * GetInput()
Get any input of this filter.
void SetInputConnectionByNumber(int num, vtkAlgorithmOutput *input)
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:296
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:165
general representation of visualization data
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:149
Superclass for algorithms that produce only polydata as output.
void AddInputData(vtkDataObject *)
Assign a data object as input.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:200
@ offset
Definition: vtkX3D.h:444
int vtkTypeBool
Definition: vtkABI.h:69
int vtkIdType
Definition: vtkType.h:332
#define VTK_SIZEHINT(...)