VTK
vtkTableToStructuredGrid.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTableToStructuredGrid.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 =========================================================================*/
26 #ifndef vtkTableToStructuredGrid_h
27 #define vtkTableToStructuredGrid_h
28 
29 #include "vtkFiltersGeneralModule.h" // For export macro
31 
32 class vtkTable;
33 
34 class VTKFILTERSGENERAL_EXPORT vtkTableToStructuredGrid : public vtkStructuredGridAlgorithm
35 {
36 public:
37  static vtkTableToStructuredGrid* New();
39  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
40 
42 
46  vtkSetVector6Macro(WholeExtent, int);
47  vtkGetVector6Macro(WholeExtent, int);
49 
51 
54  vtkSetStringMacro(XColumn);
55  vtkGetStringMacro(XColumn);
57 
59 
64  vtkSetClampMacro(XComponent, int, 0, VTK_INT_MAX);
65  vtkGetMacro(XComponent, int);
67 
69 
73  vtkSetStringMacro(YColumn);
74  vtkGetStringMacro(YColumn);
76 
78 
82  vtkSetClampMacro(YComponent, int, 0, VTK_INT_MAX);
83  vtkGetMacro(YComponent, int);
85 
87 
91  vtkSetStringMacro(ZColumn);
92  vtkGetStringMacro(ZColumn);
94 
96 
100  vtkSetClampMacro(ZComponent, int, 0, VTK_INT_MAX);
101  vtkGetMacro(ZComponent, int);
103 
104 protected:
106  ~vtkTableToStructuredGrid() VTK_OVERRIDE;
107 
108  int Convert(vtkTable*, vtkStructuredGrid*, int extent[6]);
109 
113  int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
114 
118  int RequestData(vtkInformation* request,
119  vtkInformationVector** inputVector, vtkInformationVector* outputVector) VTK_OVERRIDE;
120 
124  int RequestInformation(vtkInformation *vtkNotUsed(request),
125  vtkInformationVector **vtkNotUsed(inputVector),
126  vtkInformationVector *outputVector) VTK_OVERRIDE;
127 
128  char* XColumn;
129  char* YColumn;
130  char* ZColumn;
131  int XComponent;
132  int YComponent;
133  int ZComponent;
134  int WholeExtent[6];
135 
136 private:
137  vtkTableToStructuredGrid(const vtkTableToStructuredGrid&) VTK_DELETE_FUNCTION;
138  void operator=(const vtkTableToStructuredGrid&) VTK_DELETE_FUNCTION;
139 
140 };
141 
142 #endif
143 
144 
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:153
static vtkStructuredGridAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:39
Superclass for algorithms that produce only structured grid as output.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
topologically regular array of data
converts vtkTable to a vtkStructuredGrid.
Store zero or more vtkInformation instances.