VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
36 #include "vtkUnstructuredGridAlgorithm.h"
37 
38 class vtkDataSetCollection;
39 
40 class VTKFILTERSCORE_EXPORT vtkAppendFilter : public vtkUnstructuredGridAlgorithm
41 {
42 public:
43  static vtkAppendFilter *New();
44 
45  vtkTypeMacro(vtkAppendFilter,vtkUnstructuredGridAlgorithm);
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
48 //BTX
50 
51  vtkDataSet *GetInput(int idx);
52  vtkDataSet *GetInput()
53  {return this->GetInput( 0 );}
54 //ETX
56 
58 
61  vtkGetMacro(MergePoints,int);
63 
65 
68  vtkSetMacro(MergePoints,int);
70 
71  vtkBooleanMacro(MergePoints,int);
72 
74  void RemoveInputData(vtkDataSet *in);
75 
78  vtkDataSetCollection *GetInputList();
79 
81 
84  vtkSetClampMacro(OutputPointsPrecision, int, SINGLE_PRECISION, DEFAULT_PRECISION);
85  vtkGetMacro(OutputPointsPrecision, int);
87 
88 protected:
90  ~vtkAppendFilter();
91 
92  // Usual data generation method
93  virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
94 
95  virtual int FillInputPortInformation(int port, vtkInformation *info);
96 
98 
103  int AppendBlocksWithPointLocator( vtkInformationVector ** inputVector,
104  vtkInformationVector * outputVector );
106 
107 
108  // list of data sets to append together.
109  // Here as a convenience. It is a copy of the input array.
110  vtkDataSetCollection *InputList;
111 
112  //If true we will attempt to merge points. Must also not have
113  //ghost cells defined.
115 
117 
118 private:
119  vtkAppendFilter(const vtkAppendFilter&); // Not implemented.
120  void operator=(const vtkAppendFilter&); // Not implemented.
121 };
122 
123 
124 #endif
125 
126 
vtkDataSet * GetInput()
vtkDataSetCollection * InputList
appends one or more datasets together into a single unstructured grid