VTK  9.2.6
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=========================================================================*/
42#ifndef vtkAppendPolyData_h
43#define vtkAppendPolyData_h
44
45#include "vtkFiltersCoreModule.h" // For export macro
47
48class vtkCellArray;
49class vtkDataArray;
50class vtkPoints;
51class vtkPolyData;
52
53class VTKFILTERSCORE_EXPORT vtkAppendPolyData : public vtkPolyDataAlgorithm
54{
55public:
57
59 void PrintSelf(ostream& os, vtkIndent indent) override;
60
62
68 vtkSetMacro(UserManagedInputs, vtkTypeBool);
69 vtkGetMacro(UserManagedInputs, vtkTypeBool);
70 vtkBooleanMacro(UserManagedInputs, vtkTypeBool);
72
78
84
86
90 vtkPolyData* GetInput() { return this->GetInput(0); }
92
97 void SetNumberOfInputs(int num);
98
99 // Set Nth input, should only be used when UserManagedInputs is true.
102
104
114 vtkSetMacro(ParallelStreaming, vtkTypeBool);
115 vtkGetMacro(ParallelStreaming, vtkTypeBool);
116 vtkBooleanMacro(ParallelStreaming, vtkTypeBool);
118
120
125 vtkSetMacro(OutputPointsPrecision, int);
126 vtkGetMacro(OutputPointsPrecision, int);
128
129 int ExecuteAppend(vtkPolyData* output, vtkPolyData* inputs[], int numInputs)
130 VTK_SIZEHINT(inputs, numInputs);
131
132protected:
135
136 // Flag for selecting parallel streaming behavior
139
140 // Usual data generation method
144
145 // An efficient templated way to append data.
147
148 // An efficient way to append cells.
150
151private:
152 // hide the superclass' AddInput() from the user and the compiler
154 {
155 vtkErrorMacro(<< "AddInput() must be called with a vtkPolyData not a vtkDataObject.");
156 }
157
158 vtkTypeBool UserManagedInputs;
159
160private:
161 vtkAppendPolyData(const vtkAppendPolyData&) = delete;
162 void operator=(const vtkAppendPolyData&) = delete;
163};
164
165#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.
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
Definition: vtkCellArray.h:187
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:56
general representation of visualization data
Definition: vtkDataObject.h:66
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.
void AddInputData(vtkDataObject *)
Assign a data object as input.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:91
int vtkTypeBool
Definition: vtkABI.h:69
int vtkIdType
Definition: vtkType.h:332
#define VTK_SIZEHINT(...)