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
32class vtkTable;
33
34class VTKFILTERSGENERAL_EXPORT vtkTableToStructuredGrid : public vtkStructuredGridAlgorithm
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
40
42
46 vtkSetVector6Macro(WholeExtent, int);
47 vtkGetVector6Macro(WholeExtent, int);
49
51
54 vtkSetStringMacro(XColumn);
57
59
64 vtkSetClampMacro(XComponent, int, 0, VTK_INT_MAX);
65 vtkGetMacro(XComponent, int);
67
69
73 vtkSetStringMacro(YColumn);
76
78
82 vtkSetClampMacro(YComponent, int, 0, VTK_INT_MAX);
83 vtkGetMacro(YComponent, int);
85
87
91 vtkSetStringMacro(ZColumn);
94
96
100 vtkSetClampMacro(ZComponent, int, 0, VTK_INT_MAX);
101 vtkGetMacro(ZComponent, int);
103
104protected:
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
136private:
137 vtkTableToStructuredGrid(const vtkTableToStructuredGrid&) VTK_DELETE_FUNCTION;
138 void operator=(const vtkTableToStructuredGrid&) VTK_DELETE_FUNCTION;
139
140};
141
142#endif
143
144
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only structured grid as output.
topologically regular array of data
converts vtkTable to a vtkStructuredGrid.
~vtkTableToStructuredGrid() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkTableToStructuredGrid * New()
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:69
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ extent
Definition: vtkX3D.h:345
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
#define VTK_INT_MAX
Definition: vtkType.h:153