VTK  9.6.1
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
37
38VTK_ABI_NAMESPACE_BEGIN
39class vtkCellArray;
40class vtkDataArray;
41class vtkPoints;
42class vtkPolyData;
43
44class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkAppendPolyData : public vtkPolyDataAlgorithm
45{
46public:
48
50 void PrintSelf(ostream& os, vtkIndent indent) override;
51
53
59 vtkSetMacro(UserManagedInputs, vtkTypeBool);
60 vtkGetMacro(UserManagedInputs, vtkTypeBool);
61 vtkBooleanMacro(UserManagedInputs, vtkTypeBool);
63
69
75
77
81 vtkPolyData* GetInput() { return this->GetInput(0); }
83
88 void SetNumberOfInputs(int num);
89
90 // Set Nth input, should only be used when UserManagedInputs is true.
93
95
109
111
116 vtkSetMacro(OutputPointsPrecision, int);
117 vtkGetMacro(OutputPointsPrecision, int);
119
120 int ExecuteAppend(vtkPolyData* output, vtkPolyData* inputs[], int numInputs)
121 VTK_SIZEHINT(inputs, numInputs);
122
123protected:
126
127 // Flag for selecting parallel streaming behavior
130
131 // Usual data generation method
135
136 // An efficient templated way to append data.
137 VTK_DEPRECATED_IN_9_5_0("This function has been deprecated")
139
140 // An efficient way to append cells.
141 VTK_DEPRECATED_IN_9_5_0("This function has been deprecated")
143
144private:
145 // hide the superclass' AddInput() from the user and the compiler
147 {
148 vtkErrorMacro(<< "AddInput() must be called with a vtkPolyData not a vtkDataObject.");
149 }
150
151 vtkTypeBool UserManagedInputs;
152
153 vtkAppendPolyData(const vtkAppendPolyData&) = delete;
154 void operator=(const vtkAppendPolyData&) = delete;
155};
156
157VTK_ABI_NAMESPACE_END
158#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:368
#define VTK_SIZEHINT(...)
#define VTK_MARSHALAUTO