VTK  9.6.20260412
vtkAppendPolyData.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
138
139#ifndef vtkAppendPolyData_h
140#define vtkAppendPolyData_h
141
142#include "vtkFiltersCoreModule.h" // For export macro
143#include "vtkPolyDataAlgorithm.h"
144#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
145
146VTK_ABI_NAMESPACE_BEGIN
147class vtkCellArray;
148class vtkDataArray;
149class vtkPoints;
150class vtkPolyData;
151
152class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkAppendPolyData : public vtkPolyDataAlgorithm
153{
154public:
156
158 void PrintSelf(ostream& os, vtkIndent indent) override;
159
161
167 vtkSetMacro(UserManagedInputs, vtkTypeBool);
168 vtkGetMacro(UserManagedInputs, vtkTypeBool);
169 vtkBooleanMacro(UserManagedInputs, vtkTypeBool);
171
173
179 vtkGetMacro(UseImplicitArray, bool);
180 vtkSetMacro(UseImplicitArray, bool);
181 vtkBooleanMacro(UseImplicitArray, bool);
183
189
195
197
201 vtkPolyData* GetInput() { return this->GetInput(0); }
203
208 void SetNumberOfInputs(int num);
209
210 // Set Nth input, should only be used when UserManagedInputs is true.
213
215
229
231
236 vtkSetMacro(OutputPointsPrecision, int);
237 vtkGetMacro(OutputPointsPrecision, int);
239
240 int ExecuteAppend(vtkPolyData* output, vtkPolyData* inputs[], int numInputs)
241 VTK_SIZEHINT(inputs, numInputs);
242
243protected:
246
247 // Flag for selecting parallel streaming behavior
250
251 // Usual data generation method
255
256private:
257 // hide the superclass' AddInput() from the user and the compiler
259 {
260 vtkErrorMacro(<< "AddInput() must be called with a vtkPolyData not a vtkDataObject.");
261 }
262
263 vtkTypeBool UserManagedInputs;
264
265 bool UseImplicitArray = false;
266
267 vtkAppendPolyData(const vtkAppendPolyData&) = delete;
268 void operator=(const vtkAppendPolyData&) = delete;
269};
270
271VTK_ABI_NAMESPACE_END
272#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.
~vtkAppendPolyData() override
vtkTypeBool ParallelStreaming
int ExecuteAppend(vtkPolyData *output, vtkPolyData *inputs[], int numInputs)
vtkPolyData * GetInput(int idx)
Get any input of this filter.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkAppendPolyData * New()
void SetInputConnectionByNumber(int num, vtkAlgorithmOutput *input)
vtkPolyData * GetInput()
Get any input of this filter.
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
general representation of visualization data
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition vtkPoints.h:140
concrete dataset represents vertices, lines, polygons, and triangle strips
int vtkTypeBool
Definition vtkABI.h:64
#define vtkDataArray
#define VTK_SIZEHINT(...)
#define VTK_MARSHALAUTO