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 =========================================================================*/
23 #ifndef vtkTableToPolyData_h
24 #define vtkTableToPolyData_h
25 
26 #include "vtkFiltersGeneralModule.h" // For export macro
27 #include "vtkPolyDataAlgorithm.h"
28 
30 {
31 public:
32  static vtkTableToPolyData* New();
34  void PrintSelf(ostream& os, vtkIndent indent);
35 
37 
38  vtkSetStringMacro(XColumn);
39  vtkGetStringMacro(XColumn);
41 
43 
45  vtkSetClampMacro(XColumnIndex, int, 0, VTK_INT_MAX);
46  vtkGetMacro(XColumnIndex, int);
48 
50 
53  vtkSetClampMacro(XComponent, int, 0, VTK_INT_MAX);
54  vtkGetMacro(XComponent, int);
56 
58 
60  vtkSetStringMacro(YColumn);
61  vtkGetStringMacro(YColumn);
63 
65 
67  vtkSetClampMacro(YColumnIndex, int, 0, VTK_INT_MAX);
68  vtkGetMacro(YColumnIndex, int);
70 
72 
74  vtkSetClampMacro(YComponent, int, 0, VTK_INT_MAX);
75  vtkGetMacro(YComponent, int);
77 
79 
81  vtkSetStringMacro(ZColumn);
82  vtkGetStringMacro(ZColumn);
84 
86 
88  vtkSetClampMacro(ZColumnIndex, int, 0, VTK_INT_MAX);
89  vtkGetMacro(ZColumnIndex, int);
91 
93 
95  vtkSetClampMacro(ZComponent, int, 0, VTK_INT_MAX);
96  vtkGetMacro(ZComponent, int);
98 
100 
103  vtkSetMacro(Create2DPoints, bool);
104  vtkGetMacro(Create2DPoints, bool);
105  vtkBooleanMacro(Create2DPoints, bool);
107 
109 
111  vtkSetMacro(PreserveCoordinateColumnsAsDataArrays, bool);
112  vtkGetMacro(PreserveCoordinateColumnsAsDataArrays, bool);
113  vtkBooleanMacro(PreserveCoordinateColumnsAsDataArrays, bool);
115 
116 //BTX
117 protected:
120 
123 
125 
126  virtual int RequestData(vtkInformation* request,
127  vtkInformationVector** inputVector, vtkInformationVector* outputVector);
129 
130  char* XColumn;
131  char* YColumn;
132  char* ZColumn;
141 private:
142  vtkTableToPolyData(const vtkTableToPolyData&); // Not implemented.
143  void operator=(const vtkTableToPolyData&); // Not implemented.
144 //ETX
145 };
146 
147 #endif
148 
149 
filter used to convert a vtkTable to a vtkPolyData consisting of vertices.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_INT_MAX
Definition: vtkType.h:132
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSGENERAL_EXPORT
Store zero or more vtkInformation instances.
bool PreserveCoordinateColumnsAsDataArrays