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 =========================================================================*/
25 #ifndef vtkTableToStructuredGrid_h
26 #define vtkTableToStructuredGrid_h
27 
28 #include "vtkFiltersGeneralModule.h" // For export macro
30 
31 class vtkTable;
32 
34 {
35 public:
36  static vtkTableToStructuredGrid* New();
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
41 
43  vtkSetVector6Macro(WholeExtent, int);
44  vtkGetVector6Macro(WholeExtent, int);
46 
48 
49  vtkSetStringMacro(XColumn);
50  vtkGetStringMacro(XColumn);
52 
54 
57  vtkSetClampMacro(XComponent, int, 0, VTK_INT_MAX);
58  vtkGetMacro(XComponent, int);
60 
62 
64  vtkSetStringMacro(YColumn);
65  vtkGetStringMacro(YColumn);
67 
69 
71  vtkSetClampMacro(YComponent, int, 0, VTK_INT_MAX);
72  vtkGetMacro(YComponent, int);
74 
76 
78  vtkSetStringMacro(ZColumn);
79  vtkGetStringMacro(ZColumn);
81 
83 
85  vtkSetClampMacro(ZComponent, int, 0, VTK_INT_MAX);
86  vtkGetMacro(ZComponent, int);
88 
89 //BTX
90 protected:
93 
94  int Convert(vtkTable*, vtkStructuredGrid*, int extent[6]);
95 
98 
100 
101  virtual int RequestData(vtkInformation* request,
102  vtkInformationVector** inputVector, vtkInformationVector* outputVector);
104 
106 
107  virtual int RequestInformation(vtkInformation *vtkNotUsed(request),
108  vtkInformationVector **vtkNotUsed(inputVector),
109  vtkInformationVector *outputVector);
111 
112  char* XColumn;
113  char* YColumn;
114  char* ZColumn;
118  int WholeExtent[6];
119 
120 private:
121  vtkTableToStructuredGrid(const vtkTableToStructuredGrid&); // Not implemented.
122  void operator=(const vtkTableToStructuredGrid&); // Not implemented.
123 //ETX
124 };
125 
126 #endif
127 
128 
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:130
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int FillInputPortInformation(int port, vtkInformation *info)
static vtkStructuredGridAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:38
Superclass for algorithms that produce only structured grid as output.
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKFILTERSGENERAL_EXPORT
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:67
topologically regular array of data
converts vtkTable to a vtkStructuredGrid.
Store zero or more vtkInformation instances.