VTK  9.5.2
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
29
30#ifndef vtkAppendPolyData_h
31#define vtkAppendPolyData_h
32
33#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_5_0
34#include "vtkFiltersCoreModule.h" // For export macro
36
37VTK_ABI_NAMESPACE_BEGIN
38class vtkCellArray;
39class vtkDataArray;
40class vtkPoints;
41class vtkPolyData;
42
43class VTKFILTERSCORE_EXPORT vtkAppendPolyData : public vtkPolyDataAlgorithm
44{
45public:
47
49 void PrintSelf(ostream& os, vtkIndent indent) override;
50
52
58 vtkSetMacro(UserManagedInputs, vtkTypeBool);
59 vtkGetMacro(UserManagedInputs, vtkTypeBool);
60 vtkBooleanMacro(UserManagedInputs, vtkTypeBool);
62
68
74
76
80 vtkPolyData* GetInput() { return this->GetInput(0); }
82
87 void SetNumberOfInputs(int num);
88
89 // Set Nth input, should only be used when UserManagedInputs is true.
92
94
108
110
115 vtkSetMacro(OutputPointsPrecision, int);
116 vtkGetMacro(OutputPointsPrecision, int);
118
119 int ExecuteAppend(vtkPolyData* output, vtkPolyData* inputs[], int numInputs)
120 VTK_SIZEHINT(inputs, numInputs);
121
122protected:
125
126 // Flag for selecting parallel streaming behavior
129
130 // Usual data generation method
134
135 // An efficient templated way to append data.
136 VTK_DEPRECATED_IN_9_5_0("This function has been deprecated")
138
139 // An efficient way to append cells.
140 VTK_DEPRECATED_IN_9_5_0("This function has been deprecated")
142
143private:
144 // hide the superclass' AddInput() from the user and the compiler
146 {
147 vtkErrorMacro(<< "AddInput() must be called with a vtkPolyData not a vtkDataObject.");
148 }
149
150 vtkTypeBool UserManagedInputs;
151
152 vtkAppendPolyData(const vtkAppendPolyData&) = delete;
153 void operator=(const vtkAppendPolyData&) = delete;
154};
155
156VTK_ABI_NAMESPACE_END
157#endif
Proxy object to connect input/output ports.
appends one or more polygonal datasets together
int FillInputPortInformation(int, vtkInformation *) override
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.
void AppendCells(vtkCellArray *dst, vtkCellArray *src, vtkIdType offset)
void AppendData(vtkDataArray *dest, vtkDataArray *src, vtkIdType offset)
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:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition vtkPoints.h:30
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:72
int vtkTypeBool
Definition vtkABI.h:64
#define vtkDataArray
#define VTK_DEPRECATED_IN_9_5_0(reason)
int vtkIdType
Definition vtkType.h:332
#define VTK_SIZEHINT(...)