VTK  9.1.0
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) 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
104protected:
107
108 int Convert(vtkTable*, vtkStructuredGrid*, int extent[6]);
109
113 int FillInputPortInformation(int port, vtkInformation* info) override;
114
119 vtkInformationVector* outputVector) override;
120
124 int RequestInformation(vtkInformation* vtkNotUsed(request),
125 vtkInformationVector** vtkNotUsed(inputVector), vtkInformationVector* outputVector) override;
126
127 char* XColumn;
128 char* YColumn;
129 char* ZColumn;
133 int WholeExtent[6];
134
135private:
137 void operator=(const vtkTableToStructuredGrid&) = delete;
138};
139
140#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
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.
int FillInputPortInformation(int port, vtkInformation *info) override
Overridden to specify that input must be a vtkTable.
~vtkTableToStructuredGrid() override
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Convert input vtkTable to vtkStructuredGrid.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestInformation(vtkInformation *vtkNotUsed(request), vtkInformationVector **vtkNotUsed(inputVector), vtkInformationVector *outputVector) override
Request information – pass whole extent to the pipeline.
int Convert(vtkTable *, vtkStructuredGrid *, int extent[6])
static vtkTableToStructuredGrid * New()
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:172
#define VTK_INT_MAX
Definition: vtkType.h:155