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 
filter used to convert a vtkTable to a vtkPolyData consisting of vertices.
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_INT_MAX
Definition: vtkType.h:159
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
bool PreserveCoordinateColumnsAsDataArrays
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.