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  virtual int RequestUpdateExtent(vtkInformation *,
98 
99  // list of data sets to append together.
100  // Here as a convenience. It is a copy of the input array.
102 
103  //If true we will attempt to merge points. Must also not have
104  //ghost cells defined.
106 
108 
109 private:
110  vtkAppendFilter(const vtkAppendFilter&); // Not implemented.
111  void operator=(const vtkAppendFilter&); // Not implemented.
112 
113  // Get all input data sets that have points, cells, or both.
114  // Caller must delete the returned vtkDataSetCollection.
115  vtkDataSetCollection* GetNonEmptyInputs(vtkInformationVector ** inputVector);
116 
117  void AppendArrays(int attributesType,
118  vtkInformationVector **inputVector,
119  vtkIdType* globalIds,
120  vtkUnstructuredGrid* output,
121  vtkIdType totalNumberOfElements);
122 };
123 
124 
125 #endif
126 
127 
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:247
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.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)