VTK  9.3.0
vtkTableToPolyData.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
12#ifndef vtkTableToPolyData_h
13#define vtkTableToPolyData_h
14
15#include "vtkFiltersGeneralModule.h" // For export macro
17
18VTK_ABI_NAMESPACE_BEGIN
19class VTKFILTERSGENERAL_EXPORT vtkTableToPolyData : public vtkPolyDataAlgorithm
20{
21public:
24 void PrintSelf(ostream& os, vtkIndent indent) override;
25
27
30 vtkSetStringMacro(XColumn);
31 vtkGetStringMacro(XColumn);
33
35
38 vtkSetClampMacro(XColumnIndex, int, 0, VTK_INT_MAX);
39 vtkGetMacro(XColumnIndex, int);
41
43
48 vtkSetClampMacro(XComponent, int, 0, VTK_INT_MAX);
49 vtkGetMacro(XComponent, int);
51
53
57 vtkSetStringMacro(YColumn);
58 vtkGetStringMacro(YColumn);
60
62
65 vtkSetClampMacro(YColumnIndex, int, 0, VTK_INT_MAX);
66 vtkGetMacro(YColumnIndex, int);
68
70
74 vtkSetClampMacro(YComponent, int, 0, VTK_INT_MAX);
75 vtkGetMacro(YComponent, int);
77
79
83 vtkSetStringMacro(ZColumn);
84 vtkGetStringMacro(ZColumn);
86
88
91 vtkSetClampMacro(ZColumnIndex, int, 0, VTK_INT_MAX);
92 vtkGetMacro(ZColumnIndex, int);
94
96
100 vtkSetClampMacro(ZComponent, int, 0, VTK_INT_MAX);
101 vtkGetMacro(ZComponent, int);
103
105
110 vtkSetMacro(Create2DPoints, bool);
111 vtkGetMacro(Create2DPoints, bool);
112 vtkBooleanMacro(Create2DPoints, bool);
114
116
120 vtkSetMacro(PreserveCoordinateColumnsAsDataArrays, bool);
121 vtkGetMacro(PreserveCoordinateColumnsAsDataArrays, bool);
122 vtkBooleanMacro(PreserveCoordinateColumnsAsDataArrays, bool);
124
125protected:
128
132 int FillInputPortInformation(int port, vtkInformation* info) override;
133
138 vtkInformationVector* outputVector) override;
139
140 char* XColumn;
141 char* YColumn;
142 char* ZColumn;
151
152private:
153 vtkTableToPolyData(const vtkTableToPolyData&) = delete;
154 void operator=(const vtkTableToPolyData&) = delete;
155};
156
157VTK_ABI_NAMESPACE_END
158#endif
a simple class to control print indentation
Definition vtkIndent.h:29
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.
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.
#define VTK_INT_MAX
Definition vtkType.h:144