VTK  9.1.0
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=========================================================================*/
43#ifndef vtkTableToPolyData_h
44#define vtkTableToPolyData_h
45
46#include "vtkFiltersGeneralModule.h" // For export macro
48
49class VTKFILTERSGENERAL_EXPORT vtkTableToPolyData : public vtkPolyDataAlgorithm
50{
51public:
54 void PrintSelf(ostream& os, vtkIndent indent) override;
55
57
60 vtkSetStringMacro(XColumn);
61 vtkGetStringMacro(XColumn);
63
65
68 vtkSetClampMacro(XColumnIndex, int, 0, VTK_INT_MAX);
69 vtkGetMacro(XColumnIndex, int);
71
73
78 vtkSetClampMacro(XComponent, int, 0, VTK_INT_MAX);
79 vtkGetMacro(XComponent, int);
81
83
87 vtkSetStringMacro(YColumn);
88 vtkGetStringMacro(YColumn);
90
92
95 vtkSetClampMacro(YColumnIndex, int, 0, VTK_INT_MAX);
96 vtkGetMacro(YColumnIndex, int);
98
100
104 vtkSetClampMacro(YComponent, int, 0, VTK_INT_MAX);
105 vtkGetMacro(YComponent, int);
107
109
113 vtkSetStringMacro(ZColumn);
114 vtkGetStringMacro(ZColumn);
116
118
121 vtkSetClampMacro(ZColumnIndex, int, 0, VTK_INT_MAX);
122 vtkGetMacro(ZColumnIndex, int);
124
126
130 vtkSetClampMacro(ZComponent, int, 0, VTK_INT_MAX);
131 vtkGetMacro(ZComponent, int);
133
135
140 vtkSetMacro(Create2DPoints, bool);
141 vtkGetMacro(Create2DPoints, bool);
142 vtkBooleanMacro(Create2DPoints, bool);
144
146
150 vtkSetMacro(PreserveCoordinateColumnsAsDataArrays, bool);
151 vtkGetMacro(PreserveCoordinateColumnsAsDataArrays, bool);
152 vtkBooleanMacro(PreserveCoordinateColumnsAsDataArrays, bool);
154
155protected:
158
163
168 vtkInformationVector* outputVector) override;
169
170 char* XColumn;
171 char* YColumn;
172 char* ZColumn;
181
182private:
183 vtkTableToPolyData(const vtkTableToPolyData&) = delete;
184 void operator=(const vtkTableToPolyData&) = delete;
185};
186
187#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
filter used to convert a vtkTable to a vtkPolyData consisting of vertices.
bool PreserveCoordinateColumnsAsDataArrays
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkTableToPolyData() override
static vtkTableToPolyData * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Overridden to specify that input must be a vtkTable.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Convert input vtkTable to vtkPolyData.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
#define VTK_INT_MAX
Definition: vtkType.h:155