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 "vtkFiltersGeneralModule.h" // For export macro 00029 #include "vtkStructuredGridAlgorithm.h" 00030 00031 class vtkTable; 00032 00033 class VTKFILTERSGENERAL_EXPORT vtkTableToStructuredGrid : public vtkStructuredGridAlgorithm 00034 { 00035 public: 00036 static vtkTableToStructuredGrid* New(); 00037 vtkTypeMacro(vtkTableToStructuredGrid, vtkStructuredGridAlgorithm); 00038 void PrintSelf(ostream& os, vtkIndent indent); 00039 00041 00043 vtkSetVector6Macro(WholeExtent, int); 00044 vtkGetVector6Macro(WholeExtent, int); 00046 00048 00049 vtkSetStringMacro(XColumn); 00050 vtkGetStringMacro(XColumn); 00052 00054 00057 vtkSetClampMacro(XComponent, int, 0, VTK_INT_MAX); 00058 vtkGetMacro(XComponent, int); 00060 00062 00064 vtkSetStringMacro(YColumn); 00065 vtkGetStringMacro(YColumn); 00067 00069 00071 vtkSetClampMacro(YComponent, int, 0, VTK_INT_MAX); 00072 vtkGetMacro(YComponent, int); 00074 00076 00078 vtkSetStringMacro(ZColumn); 00079 vtkGetStringMacro(ZColumn); 00081 00083 00085 vtkSetClampMacro(ZComponent, int, 0, VTK_INT_MAX); 00086 vtkGetMacro(ZComponent, int); 00088 00089 //BTX 00090 protected: 00091 vtkTableToStructuredGrid(); 00092 ~vtkTableToStructuredGrid(); 00093 00094 int Convert(vtkTable*, vtkStructuredGrid*, int extent[6]); 00095 00097 virtual int FillInputPortInformation(int port, vtkInformation* info); 00098 00100 00101 virtual int RequestData(vtkInformation* request, 00102 vtkInformationVector** inputVector, vtkInformationVector* outputVector); 00104 00106 00107 virtual int RequestInformation(vtkInformation *vtkNotUsed(request), 00108 vtkInformationVector **vtkNotUsed(inputVector), 00109 vtkInformationVector *outputVector); 00111 00112 char* XColumn; 00113 char* YColumn; 00114 char* ZColumn; 00115 int XComponent; 00116 int YComponent; 00117 int ZComponent; 00118 int WholeExtent[6]; 00119 00120 private: 00121 vtkTableToStructuredGrid(const vtkTableToStructuredGrid&); // Not implemented. 00122 void operator=(const vtkTableToStructuredGrid&); // Not implemented. 00123 //ETX 00124 }; 00125 00126 #endif 00127 00128