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 
29 
30 class vtkTable;
31 
33 {
34 public:
35  static vtkTableToStructuredGrid* New();
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
40 
42  vtkSetVector6Macro(WholeExtent, int);
43  vtkGetVector6Macro(WholeExtent, int);
45 
47 
48  vtkSetStringMacro(XColumn);
49  vtkGetStringMacro(XColumn);
51 
53 
56  vtkSetClampMacro(XComponent, int, 0, VTK_INT_MAX);
57  vtkGetMacro(XComponent, int);
59 
61 
63  vtkSetStringMacro(YColumn);
64  vtkGetStringMacro(YColumn);
66 
68 
70  vtkSetClampMacro(YComponent, int, 0, VTK_INT_MAX);
71  vtkGetMacro(YComponent, int);
73 
75 
77  vtkSetStringMacro(ZColumn);
78  vtkGetStringMacro(ZColumn);
80 
82 
84  vtkSetClampMacro(ZComponent, int, 0, VTK_INT_MAX);
85  vtkGetMacro(ZComponent, int);
87 
88 //BTX
89 protected:
92 
93  int Convert(vtkTable*, vtkStructuredGrid*, int extent[6]);
94 
97 
99 
100  virtual int RequestData(vtkInformation* request,
101  vtkInformationVector** inputVector, vtkInformationVector* outputVector);
103 
105 
106  virtual int RequestInformation(vtkInformation *vtkNotUsed(request),
107  vtkInformationVector **vtkNotUsed(inputVector),
108  vtkInformationVector *outputVector);
110 
111  char* XColumn;
112  char* YColumn;
113  char* ZColumn;
117  int WholeExtent[6];
118 
119 private:
120  vtkTableToStructuredGrid(const vtkTableToStructuredGrid&); // Not implemented.
121  void operator=(const vtkTableToStructuredGrid&); // Not implemented.
122 //ETX
123 };
124 
125 #endif
126 
127 
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_GRAPHICS_EXPORT
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:123
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:37
Superclass for algorithms that produce only structured grid as output.
void PrintSelf(ostream &os, vtkIndent indent)
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:66
topologically regular array of data
converts vtkTable to a vtkStructuredGrid.
Store zero or more vtkInformation instances.