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 
76 
80 
82 
85  vtkSetClampMacro(OutputPointsPrecision, int, SINGLE_PRECISION, DEFAULT_PRECISION);
86  vtkGetMacro(OutputPointsPrecision, int);
88 
89 protected:
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 
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkDataSetAttributes
represent and manipulate attribute data in a dataset
Definition: vtkDataSetAttributes.h:58
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkAppendFilter::GetInput
vtkDataSet * GetInput()
Definition: vtkAppendFilter.h:53
vtkAppendFilter::vtkAppendFilter
vtkAppendFilter()
vtkAppendFilter::GetInputList
vtkDataSetCollection * GetInputList()
vtkUnstructuredGridAlgorithm::GetInput
vtkDataObject * GetInput()
Definition: vtkUnstructuredGridAlgorithm.h:63
vtkgl::in
GLuint in
Definition: vtkgl.h:16905
vtkAppendFilter::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkAppendFilter::New
static vtkAppendFilter * New()
vtkAppendFilter::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkFiltersCoreModule.h
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkAppendFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkAppendFilter::GetInput
vtkDataSet * GetInput(int idx)
VTKFILTERSCORE_EXPORT
#define VTKFILTERSCORE_EXPORT
Definition: vtkFiltersCoreModule.h:15
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkAppendFilter::InputList
vtkDataSetCollection * InputList
Definition: vtkAppendFilter.h:100
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkAppendFilter::~vtkAppendFilter
~vtkAppendFilter()
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkAppendFilter
appends one or more datasets together into a single unstructured grid
Definition: vtkAppendFilter.h:42
vtkUnstructuredGridAlgorithm.h
vtkDataSetCollection
maintain an unordered list of dataset objects
Definition: vtkDataSetCollection.h:31
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition: vtkUnstructuredGridAlgorithm.h:40
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:82
vtkAppendFilter::RemoveInputData
void RemoveInputData(vtkDataSet *in)
vtkAppendFilter::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkAppendFilter.h:106
vtkAppendFilter::MergePoints
int MergePoints
Definition: vtkAppendFilter.h:104