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) 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,
119  vtkInformationVector** inputVector, vtkInformationVector* outputVector) override;
120 
124  int RequestInformation(vtkInformation *vtkNotUsed(request),
125  vtkInformationVector **vtkNotUsed(inputVector),
126  vtkInformationVector *outputVector) override;
127 
128  char* XColumn;
129  char* YColumn;
130  char* ZColumn;
134  int WholeExtent[6];
135 
136 private:
138  void operator=(const vtkTableToStructuredGrid&) = delete;
139 
140 };
141 
142 #endif
143 
144 
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
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:159
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkStructuredGridAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:39
Superclass for algorithms that produce only structured grid as output.
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.
VTKACCELERATORSVTKM_EXPORT vtkm::cont::Field Convert(vtkDataArray *input, int association)