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 =========================================================================*/
32 #ifndef vtkAppendFilter_h
33 #define vtkAppendFilter_h
34 
35 #include "vtkFiltersCoreModule.h" // For export macro
37 
40 
42 {
43 public:
44  static vtkAppendFilter *New();
45 
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
49 //BTX
51 
52  vtkDataSet *GetInput(int idx);
54  {return this->GetInput( 0 );}
55 //ETX
57 
59 
62  vtkGetMacro(MergePoints,int);
64 
66 
69  vtkSetMacro(MergePoints,int);
71 
72  vtkBooleanMacro(MergePoints,int);
73 
75  void RemoveInputData(vtkDataSet *in);
76 
79  vtkDataSetCollection *GetInputList();
80 
82 
85  vtkSetClampMacro(OutputPointsPrecision, int, SINGLE_PRECISION, DEFAULT_PRECISION);
86  vtkGetMacro(OutputPointsPrecision, int);
88 
89 protected:
91  ~vtkAppendFilter();
92 
93  // Usual data generation method
95 
97 
98  // list of data sets to append together.
99  // Here as a convenience. It is a copy of the input array.
101 
102  //If true we will attempt to merge points. Must also not have
103  //ghost cells defined.
105 
107 
108 private:
109  vtkAppendFilter(const vtkAppendFilter&); // Not implemented.
110  void operator=(const vtkAppendFilter&); // Not implemented.
111 
112  // Get all input data sets that have points, cells, or both.
113  // Caller must delete the returned vtkDataSetCollection.
114  vtkDataSetCollection* GetNonEmptyInputs(vtkInformationVector ** inputVector);
115 
116  void AppendArrays(int attributesType,
117  vtkInformationVector **inputVector,
118  vtkIdType* globalIds,
119  vtkUnstructuredGrid* output);
120 };
121 
122 
123 #endif
124 
125 
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
maintain an unordered list of dataset objects
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
#define VTKFILTERSCORE_EXPORT
static vtkUnstructuredGridAlgorithm * New()
vtkDataSet * GetInput()
virtual int FillInputPortInformation(int port, vtkInformation *info)
int vtkIdType
Definition: vtkType.h:275
a simple class to control print indentation
Definition: vtkIndent.h:38
dataset represents arbitrary combinations of all possible cell types
void PrintSelf(ostream &os, vtkIndent indent)
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
Store zero or more vtkInformation instances.