VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkStructuredGridGeometryFilter.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 =========================================================================*/ 00049 #ifndef vtkStructuredGridGeometryFilter_h 00050 #define vtkStructuredGridGeometryFilter_h 00051 00052 #include "vtkFiltersGeometryModule.h" // For export macro 00053 #include "vtkPolyDataAlgorithm.h" 00054 00055 class VTKFILTERSGEOMETRY_EXPORT vtkStructuredGridGeometryFilter : public vtkPolyDataAlgorithm 00056 { 00057 public: 00058 static vtkStructuredGridGeometryFilter *New(); 00059 vtkTypeMacro(vtkStructuredGridGeometryFilter,vtkPolyDataAlgorithm); 00060 void PrintSelf(ostream& os, vtkIndent indent); 00061 00063 00065 vtkGetVectorMacro(Extent,int,6); 00067 00069 void SetExtent(int iMin, int iMax, int jMin, int jMax, int kMin, int kMax); 00070 00072 void SetExtent(int extent[6]); 00073 00074 protected: 00075 vtkStructuredGridGeometryFilter(); 00076 ~vtkStructuredGridGeometryFilter() {} 00077 00078 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00079 virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00080 virtual int FillInputPortInformation(int port, vtkInformation *info); 00081 00082 int Extent[6]; 00083 private: 00084 vtkStructuredGridGeometryFilter(const vtkStructuredGridGeometryFilter&); // Not implemented. 00085 void operator=(const vtkStructuredGridGeometryFilter&); // Not implemented. 00086 }; 00087 00088 #endif 00089 00090