VTK
vtkTableToPolyData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTableToPolyData.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 =========================================================================*/
24 #ifndef vtkTableToPolyData_h
25 #define vtkTableToPolyData_h
26 
27 #include "vtkFiltersGeneralModule.h" // For export macro
28 #include "vtkPolyDataAlgorithm.h"
29 
30 class VTKFILTERSGENERAL_EXPORT vtkTableToPolyData : public vtkPolyDataAlgorithm
31 {
32 public:
33  static vtkTableToPolyData* New();
35  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
36 
38 
41  vtkSetStringMacro(XColumn);
42  vtkGetStringMacro(XColumn);
44 
46 
49  vtkSetClampMacro(XColumnIndex, int, 0, VTK_INT_MAX);
50  vtkGetMacro(XColumnIndex, int);
52 
54 
59  vtkSetClampMacro(XComponent, int, 0, VTK_INT_MAX);
60  vtkGetMacro(XComponent, int);
62 
64 
68  vtkSetStringMacro(YColumn);
69  vtkGetStringMacro(YColumn);
71 
73 
76  vtkSetClampMacro(YColumnIndex, int, 0, VTK_INT_MAX);
77  vtkGetMacro(YColumnIndex, int);
79 
81 
85  vtkSetClampMacro(YComponent, int, 0, VTK_INT_MAX);
86  vtkGetMacro(YComponent, int);
88 
90 
94  vtkSetStringMacro(ZColumn);
95  vtkGetStringMacro(ZColumn);
97 
99 
102  vtkSetClampMacro(ZColumnIndex, int, 0, VTK_INT_MAX);
103  vtkGetMacro(ZColumnIndex, int);
105 
107 
111  vtkSetClampMacro(ZComponent, int, 0, VTK_INT_MAX);
112  vtkGetMacro(ZComponent, int);
114 
116 
121  vtkSetMacro(Create2DPoints, bool);
122  vtkGetMacro(Create2DPoints, bool);
123  vtkBooleanMacro(Create2DPoints, bool);
125 
127 
131  vtkSetMacro(PreserveCoordinateColumnsAsDataArrays, bool);
132  vtkGetMacro(PreserveCoordinateColumnsAsDataArrays, bool);
133  vtkBooleanMacro(PreserveCoordinateColumnsAsDataArrays, bool);
135 
136 protected:
138  ~vtkTableToPolyData() VTK_OVERRIDE;
139 
143  int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
144 
148  int RequestData(vtkInformation* request,
149  vtkInformationVector** inputVector, vtkInformationVector* outputVector) VTK_OVERRIDE;
150 
151  char* XColumn;
152  char* YColumn;
153  char* ZColumn;
154  int XColumnIndex;
155  int YColumnIndex;
156  int ZColumnIndex;
157  int XComponent;
158  int YComponent;
159  int ZComponent;
160  bool Create2DPoints;
161  bool PreserveCoordinateColumnsAsDataArrays;
162 private:
163  vtkTableToPolyData(const vtkTableToPolyData&) VTK_DELETE_FUNCTION;
164  void operator=(const vtkTableToPolyData&) VTK_DELETE_FUNCTION;
165 
166 };
167 
168 #endif
169 
170 
filter used to convert a vtkTable to a vtkPolyData consisting of vertices.
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:153
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.