VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkTableToStructuredGrid.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00025 #ifndef __vtkTableToStructuredGrid_h 00026 #define __vtkTableToStructuredGrid_h 00027 00028 #include "vtkStructuredGridAlgorithm.h" 00029 00030 class vtkTable; 00031 00032 class VTK_GRAPHICS_EXPORT vtkTableToStructuredGrid : public vtkStructuredGridAlgorithm 00033 { 00034 public: 00035 static vtkTableToStructuredGrid* New(); 00036 vtkTypeMacro(vtkTableToStructuredGrid, vtkStructuredGridAlgorithm); 00037 void PrintSelf(ostream& os, vtkIndent indent); 00038 00040 00042 vtkSetVector6Macro(WholeExtent, int); 00043 vtkGetVector6Macro(WholeExtent, int); 00045 00047 00048 vtkSetStringMacro(XColumn); 00049 vtkGetStringMacro(XColumn); 00051 00053 00056 vtkSetClampMacro(XComponent, int, 0, VTK_INT_MAX); 00057 vtkGetMacro(XComponent, int); 00059 00061 00063 vtkSetStringMacro(YColumn); 00064 vtkGetStringMacro(YColumn); 00066 00068 00070 vtkSetClampMacro(YComponent, int, 0, VTK_INT_MAX); 00071 vtkGetMacro(YComponent, int); 00073 00075 00077 vtkSetStringMacro(ZColumn); 00078 vtkGetStringMacro(ZColumn); 00080 00082 00084 vtkSetClampMacro(ZComponent, int, 0, VTK_INT_MAX); 00085 vtkGetMacro(ZComponent, int); 00087 00088 //BTX 00089 protected: 00090 vtkTableToStructuredGrid(); 00091 ~vtkTableToStructuredGrid(); 00092 00093 int Convert(vtkTable*, vtkStructuredGrid*, int extent[6]); 00094 00096 virtual int FillInputPortInformation(int port, vtkInformation* info); 00097 00099 00100 virtual int RequestData(vtkInformation* request, 00101 vtkInformationVector** inputVector, vtkInformationVector* outputVector); 00103 00105 00106 virtual int RequestInformation(vtkInformation *vtkNotUsed(request), 00107 vtkInformationVector **vtkNotUsed(inputVector), 00108 vtkInformationVector *outputVector); 00110 00111 char* XColumn; 00112 char* YColumn; 00113 char* ZColumn; 00114 int XComponent; 00115 int YComponent; 00116 int ZComponent; 00117 int WholeExtent[6]; 00118 00119 private: 00120 vtkTableToStructuredGrid(const vtkTableToStructuredGrid&); // Not implemented. 00121 void operator=(const vtkTableToStructuredGrid&); // Not implemented. 00122 //ETX 00123 }; 00124 00125 #endif 00126 00127