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) 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() override;
139 
143  int FillInputPortInformation(int port, vtkInformation* info) override;
144 
148  int RequestData(vtkInformation* request,
149  vtkInformationVector** inputVector, vtkInformationVector* outputVector) override;
150 
151  char* XColumn;
152  char* YColumn;
153  char* ZColumn;
162 private:
163  vtkTableToPolyData(const vtkTableToPolyData&) = delete;
164  void operator=(const vtkTableToPolyData&) = delete;
165 
166 };
167 
168 #endif
169 
170 
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:161
vtkTableToPolyData::PreserveCoordinateColumnsAsDataArrays
bool PreserveCoordinateColumnsAsDataArrays
Definition: vtkTableToPolyData.h:161
vtkTableToPolyData::YColumn
char * YColumn
Definition: vtkTableToPolyData.h:152
vtkTableToPolyData::YComponent
int YComponent
Definition: vtkTableToPolyData.h:158
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTableToPolyData
filter used to convert a vtkTable to a vtkPolyData consisting of vertices.
Definition: vtkTableToPolyData.h:30
vtkTableToPolyData::ZComponent
int ZComponent
Definition: vtkTableToPolyData.h:159
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTableToPolyData::XComponent
int XComponent
Definition: vtkTableToPolyData.h:157
vtkPolyDataAlgorithm.h
vtkX3D::port
Definition: vtkX3D.h:447
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkTableToPolyData::ZColumnIndex
int ZColumnIndex
Definition: vtkTableToPolyData.h:156
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkPolyDataAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:70
vtkX3D::info
Definition: vtkX3D.h:376
vtkTableToPolyData::XColumnIndex
int XColumnIndex
Definition: vtkTableToPolyData.h:154
vtkTableToPolyData::Create2DPoints
bool Create2DPoints
Definition: vtkTableToPolyData.h:160
vtkTableToPolyData::YColumnIndex
int YColumnIndex
Definition: vtkTableToPolyData.h:155
vtkTableToPolyData::ZColumn
char * ZColumn
Definition: vtkTableToPolyData.h:153
vtkTableToPolyData::XColumn
char * XColumn
Definition: vtkTableToPolyData.h:151
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44