VTK  9.3.20240418
vtkTableToStructuredGrid.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkTableToStructuredGrid_h
15 #define vtkTableToStructuredGrid_h
16 
17 #include "vtkFiltersGeneralModule.h" // For export macro
19 
20 VTK_ABI_NAMESPACE_BEGIN
21 class vtkTable;
22 
23 class VTKFILTERSGENERAL_EXPORT vtkTableToStructuredGrid : public vtkStructuredGridAlgorithm
24 {
25 public:
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
31 
35  vtkSetVector6Macro(WholeExtent, int);
36  vtkGetVector6Macro(WholeExtent, int);
38 
40 
43  vtkSetStringMacro(XColumn);
44  vtkGetStringMacro(XColumn);
46 
48 
53  vtkSetClampMacro(XComponent, int, 0, VTK_INT_MAX);
54  vtkGetMacro(XComponent, int);
56 
58 
62  vtkSetStringMacro(YColumn);
63  vtkGetStringMacro(YColumn);
65 
67 
71  vtkSetClampMacro(YComponent, int, 0, VTK_INT_MAX);
72  vtkGetMacro(YComponent, int);
74 
76 
80  vtkSetStringMacro(ZColumn);
81  vtkGetStringMacro(ZColumn);
83 
85 
89  vtkSetClampMacro(ZComponent, int, 0, VTK_INT_MAX);
90  vtkGetMacro(ZComponent, int);
92 
93 protected:
96 
98 
103 
107  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
108  vtkInformationVector* outputVector) override;
109 
113  int RequestInformation(vtkInformation* vtkNotUsed(request),
114  vtkInformationVector** vtkNotUsed(inputVector), vtkInformationVector* outputVector) override;
115 
116  char* XColumn;
117  char* YColumn;
118  char* ZColumn;
122  int WholeExtent[6];
123 
124 private:
126  void operator=(const vtkTableToStructuredGrid&) = delete;
127 };
128 
129 VTK_ABI_NAMESPACE_END
130 #endif
a simple class to control print indentation
Definition: vtkIndent.h:108
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.
static vtkTableToStructuredGrid * New()
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])
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:168
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ extent
Definition: vtkX3D.h:345
#define VTK_INT_MAX
Definition: vtkType.h:144