VTK  9.2.6
vtkAppendFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkAppendFilter.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=========================================================================*/
48#ifndef vtkAppendFilter_h
49#define vtkAppendFilter_h
50
51#include "vtkFiltersCoreModule.h" // For export macro
53
56
57class VTKFILTERSCORE_EXPORT vtkAppendFilter : public vtkUnstructuredGridAlgorithm
58{
59public:
62 void PrintSelf(ostream& os, vtkIndent indent) override;
63
65
69 vtkDataSet* GetInput() { return this->GetInput(0); }
71
73
78 vtkGetMacro(MergePoints, vtkTypeBool);
79 vtkSetMacro(MergePoints, vtkTypeBool);
80 vtkBooleanMacro(MergePoints, vtkTypeBool);
82
84
91 vtkSetClampMacro(Tolerance, double, 0.0, VTK_DOUBLE_MAX);
92 vtkGetMacro(Tolerance, double);
94
96
101 vtkSetMacro(ToleranceIsAbsolute, bool);
102 vtkGetMacro(ToleranceIsAbsolute, bool);
103 vtkBooleanMacro(ToleranceIsAbsolute, bool);
105
110
116
118
123 vtkSetClampMacro(OutputPointsPrecision, int, SINGLE_PRECISION, DEFAULT_PRECISION);
124 vtkGetMacro(OutputPointsPrecision, int);
126
127protected:
130
131 // Usual data generation method
134 int FillInputPortInformation(int port, vtkInformation* info) override;
135
136 // list of data sets to append together.
137 // Here as a convenience. It is a copy of the input array.
139
140 // If true we will attempt to merge points. Must also not have
141 // ghost cells defined.
143
145 double Tolerance;
146
147 // If true, tolerance is used as is. If false, tolerance is multiplied by
148 // the diagonal of the bounding box of the input.
150
151private:
152 vtkAppendFilter(const vtkAppendFilter&) = delete;
153 void operator=(const vtkAppendFilter&) = delete;
154
155 // Get all input data sets that have points, cells, or both.
156 // Caller must delete the returned vtkDataSetCollection.
157 vtkDataSetCollection* GetNonEmptyInputs(vtkInformationVector** inputVector);
158
159 void AppendArrays(int attributesType, vtkInformationVector** inputVector, vtkIdType* globalIds,
160 vtkUnstructuredGrid* output, vtkIdType totalNumberOfElements);
161};
162
163#endif
appends one or more datasets together into a single unstructured grid
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkDataSetCollection * InputList
void RemoveInputData(vtkDataSet *in)
Remove a dataset from the list of data to append.
vtkDataSet * GetInput()
Get any input of this filter.
vtkTypeBool MergePoints
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkAppendFilter() override
static vtkAppendFilter * New()
vtkDataSetCollection * GetInputList()
Returns a copy of the input array.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataSet * GetInput(int idx)
Get any input of this filter.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
represent and manipulate attribute data in a dataset
maintain an unordered list of dataset objects
abstract class to specify dataset behavior
Definition vtkDataSet.h:72
a simple class to control print indentation
Definition vtkIndent.h:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only unstructured grid as output.
dataset represents arbitrary combinations of all possible cell types
int vtkTypeBool
Definition vtkABI.h:69
int vtkIdType
Definition vtkType.h:332
#define VTK_DOUBLE_MAX
Definition vtkType.h:165