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 =========================================================================*/
23 #ifndef __vtkTableToPolyData_h
24 #define __vtkTableToPolyData_h
25 
26 #include "vtkPolyDataAlgorithm.h"
27 
29 {
30 public:
31  static vtkTableToPolyData* New();
33  void PrintSelf(ostream& os, vtkIndent indent);
34 
36 
37  vtkSetStringMacro(XColumn);
38  vtkGetStringMacro(XColumn);
40 
42 
44  vtkSetClampMacro(XColumnIndex, int, 0, VTK_INT_MAX);
45  vtkGetMacro(XColumnIndex, int);
47 
49 
52  vtkSetClampMacro(XComponent, int, 0, VTK_INT_MAX);
53  vtkGetMacro(XComponent, int);
55 
57 
59  vtkSetStringMacro(YColumn);
60  vtkGetStringMacro(YColumn);
62 
64 
66  vtkSetClampMacro(YColumnIndex, int, 0, VTK_INT_MAX);
67  vtkGetMacro(YColumnIndex, int);
69 
71 
73  vtkSetClampMacro(YComponent, int, 0, VTK_INT_MAX);
74  vtkGetMacro(YComponent, int);
76 
78 
80  vtkSetStringMacro(ZColumn);
81  vtkGetStringMacro(ZColumn);
83 
85 
87  vtkSetClampMacro(ZColumnIndex, int, 0, VTK_INT_MAX);
88  vtkGetMacro(ZColumnIndex, int);
90 
92 
94  vtkSetClampMacro(ZComponent, int, 0, VTK_INT_MAX);
95  vtkGetMacro(ZComponent, int);
97 
99 
102  vtkSetMacro(Create2DPoints, bool);
103  vtkGetMacro(Create2DPoints, bool);
104  vtkBooleanMacro(Create2DPoints, bool);
106 
107 //BTX
108 protected:
111 
114 
116 
117  virtual int RequestData(vtkInformation* request,
118  vtkInformationVector** inputVector, vtkInformationVector* outputVector);
120 
121  char* XColumn;
122  char* YColumn;
123  char* ZColumn;
131 private:
132  vtkTableToPolyData(const vtkTableToPolyData&); // Not implemented.
133  void operator=(const vtkTableToPolyData&); // Not implemented.
134 //ETX
135 };
136 
137 #endif
138 
139 
filter used to convert a vtkTable to a vtkPolyData consisting of vertices.
#define VTK_GRAPHICS_EXPORT
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_INT_MAX
Definition: vtkType.h:123
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:37
Store zero or more vtkInformation instances.