VTK  9.0.20210225
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) 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() override;
107 
108  int Convert(vtkTable*, vtkStructuredGrid*, int extent[6]);
109 
113  int FillInputPortInformation(int port, vtkInformation* info) override;
114 
118  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
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 
135 private:
137  void operator=(const vtkTableToStructuredGrid&) = delete;
138 };
139 
140 #endif
vtkTableToStructuredGrid::ZComponent
int ZComponent
Definition: vtkTableToStructuredGrid.h:132
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:155
vtkTableToStructuredGrid
converts vtkTable to a vtkStructuredGrid.
Definition: vtkTableToStructuredGrid.h:34
vtkStructuredGridAlgorithm.h
vtkStructuredGridAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkStructuredGridAlgorithm
Superclass for algorithms that produce only structured grid as output.
Definition: vtkStructuredGridAlgorithm.h:41
fromvtkm::Convert
VTKACCELERATORSVTKMCORE_EXPORT vtkDataArray * Convert(const vtkm::cont::Field &input)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:62
vtkStructuredGridAlgorithm::New
static vtkStructuredGridAlgorithm * New()
vtkTableToStructuredGrid::YColumn
char * YColumn
Definition: vtkTableToStructuredGrid.h:128
vtkStructuredGrid
topologically regular array of data
Definition: vtkStructuredGrid.h:57
vtkTableToStructuredGrid::XColumn
char * XColumn
Definition: vtkTableToStructuredGrid.h:127
vtkStructuredGridAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkX3D::port
Definition: vtkX3D.h:453
vtkStructuredGridAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkTableToStructuredGrid::YComponent
int YComponent
Definition: vtkTableToStructuredGrid.h:131
vtkTableToStructuredGrid::XComponent
int XComponent
Definition: vtkTableToStructuredGrid.h:130
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkX3D::info
Definition: vtkX3D.h:382
vtkX3D::extent
Definition: vtkX3D.h:351
vtkStructuredGridAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkTableToStructuredGrid::ZColumn
char * ZColumn
Definition: vtkTableToStructuredGrid.h:129