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) VTK_OVERRIDE;
46 
50  vtkDataSet *GetInput(int idx);
52  {return this->GetInput( 0 );}
53 
55 
60  vtkGetMacro(MergePoints,int);
62 
64 
69  vtkSetMacro(MergePoints,int);
71 
72  vtkBooleanMacro(MergePoints,int);
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() VTK_OVERRIDE;
98 
99  // Usual data generation method
100  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
101  int RequestUpdateExtent(vtkInformation *,
102  vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
103  int FillInputPortInformation(int port, vtkInformation *info) VTK_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.
111  int MergePoints;
112 
113  int OutputPointsPrecision;
114 
115 private:
116  vtkAppendFilter(const vtkAppendFilter&) VTK_DELETE_FUNCTION;
117  void operator=(const vtkAppendFilter&) VTK_DELETE_FUNCTION;
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 
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
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
represent and manipulate attribute data in a dataset
Superclass for algorithms that produce only unstructured grid as output.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
appends one or more datasets together into a single unstructured grid
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.