VTK  9.2.6
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 =========================================================================*/
33 #ifndef vtkTableToPolyData_h
34 #define vtkTableToPolyData_h
35 
36 #include "vtkFiltersGeneralModule.h" // For export macro
37 #include "vtkPolyDataAlgorithm.h"
38 
39 class VTKFILTERSGENERAL_EXPORT vtkTableToPolyData : public vtkPolyDataAlgorithm
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47 
50  vtkSetStringMacro(XColumn);
51  vtkGetStringMacro(XColumn);
53 
55 
58  vtkSetClampMacro(XColumnIndex, int, 0, VTK_INT_MAX);
59  vtkGetMacro(XColumnIndex, int);
61 
63 
68  vtkSetClampMacro(XComponent, int, 0, VTK_INT_MAX);
69  vtkGetMacro(XComponent, int);
71 
73 
77  vtkSetStringMacro(YColumn);
78  vtkGetStringMacro(YColumn);
80 
82 
85  vtkSetClampMacro(YColumnIndex, int, 0, VTK_INT_MAX);
86  vtkGetMacro(YColumnIndex, int);
88 
90 
94  vtkSetClampMacro(YComponent, int, 0, VTK_INT_MAX);
95  vtkGetMacro(YComponent, int);
97 
99 
103  vtkSetStringMacro(ZColumn);
104  vtkGetStringMacro(ZColumn);
106 
108 
111  vtkSetClampMacro(ZColumnIndex, int, 0, VTK_INT_MAX);
112  vtkGetMacro(ZColumnIndex, int);
114 
116 
120  vtkSetClampMacro(ZComponent, int, 0, VTK_INT_MAX);
121  vtkGetMacro(ZComponent, int);
123 
125 
130  vtkSetMacro(Create2DPoints, bool);
131  vtkGetMacro(Create2DPoints, bool);
132  vtkBooleanMacro(Create2DPoints, bool);
134 
136 
140  vtkSetMacro(PreserveCoordinateColumnsAsDataArrays, bool);
141  vtkGetMacro(PreserveCoordinateColumnsAsDataArrays, bool);
142  vtkBooleanMacro(PreserveCoordinateColumnsAsDataArrays, bool);
144 
145 protected:
148 
153 
157  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
158  vtkInformationVector* outputVector) override;
159 
160  char* XColumn;
161  char* YColumn;
162  char* ZColumn;
171 
172 private:
173  vtkTableToPolyData(const vtkTableToPolyData&) = delete;
174  void operator=(const vtkTableToPolyData&) = delete;
175 };
176 
177 #endif
a simple class to control print indentation
Definition: vtkIndent.h:49
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.
static vtkTableToPolyData * New()
bool PreserveCoordinateColumnsAsDataArrays
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkTableToPolyData() override
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