VTK
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 =========================================================================*/
30 #ifndef vtkAppendFilter_h
31 #define vtkAppendFilter_h
32 
33 #include "vtkFiltersCoreModule.h" // For export macro
35 
38 
39 class VTKFILTERSCORE_EXPORT vtkAppendFilter : public vtkUnstructuredGridAlgorithm
40 {
41 public:
42  static vtkAppendFilter *New();
43 
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
50  vtkDataSet *GetInput(int idx);
52  {return this->GetInput( 0 );}
53 
55 
60  vtkGetMacro(MergePoints,vtkTypeBool);
62 
64 
69  vtkSetMacro(MergePoints,vtkTypeBool);
71 
72  vtkBooleanMacro(MergePoints,vtkTypeBool);
73 
77  void RemoveInputData(vtkDataSet *in);
78 
83  vtkDataSetCollection *GetInputList();
84 
86 
91  vtkSetClampMacro(OutputPointsPrecision, int, SINGLE_PRECISION, DEFAULT_PRECISION);
92  vtkGetMacro(OutputPointsPrecision, int);
94 
95 protected:
97  ~vtkAppendFilter() override;
98 
99  // Usual data generation method
103  int FillInputPortInformation(int port, vtkInformation *info) override;
104 
105  // list of data sets to append together.
106  // Here as a convenience. It is a copy of the input array.
108 
109  //If true we will attempt to merge points. Must also not have
110  //ghost cells defined.
112 
114 
115 private:
116  vtkAppendFilter(const vtkAppendFilter&) = delete;
117  void operator=(const vtkAppendFilter&) = delete;
118 
119  // Get all input data sets that have points, cells, or both.
120  // Caller must delete the returned vtkDataSetCollection.
121  vtkDataSetCollection* GetNonEmptyInputs(vtkInformationVector ** inputVector);
122 
123  void AppendArrays(int attributesType,
124  vtkInformationVector **inputVector,
125  vtkIdType* globalIds,
126  vtkUnstructuredGrid* output,
127  vtkIdType totalNumberOfElements);
128 };
129 
130 
131 #endif
132 
133 
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
maintain an unordered list of dataset objects
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
static vtkUnstructuredGridAlgorithm * New()
vtkDataSet * GetInput()
int vtkIdType
Definition: vtkType.h:345
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int vtkTypeBool
Definition: vtkABI.h:69
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:33
dataset represents arbitrary combinations of all possible cell types
vtkDataSetCollection * InputList
represent and manipulate attribute data in a dataset
Superclass for algorithms that produce only unstructured grid as output.
appends one or more datasets together into a single unstructured grid
vtkTypeBool MergePoints
Store zero or more vtkInformation instances.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.