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 "vtkPolyDataAlgorithm.h" 00053 00054 class VTK_GRAPHICS_EXPORT vtkStructuredGridGeometryFilter : public vtkPolyDataAlgorithm 00055 { 00056 public: 00057 static vtkStructuredGridGeometryFilter *New(); 00058 vtkTypeMacro(vtkStructuredGridGeometryFilter,vtkPolyDataAlgorithm); 00059 void PrintSelf(ostream& os, vtkIndent indent); 00060 00062 00064 vtkGetVectorMacro(Extent,int,6); 00066 00068 void SetExtent(int iMin, int iMax, int jMin, int jMax, int kMin, int kMax); 00069 00071 void SetExtent(int extent[6]); 00072 00073 protected: 00074 vtkStructuredGridGeometryFilter(); 00075 ~vtkStructuredGridGeometryFilter() {} 00076 00077 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00078 virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00079 virtual int FillInputPortInformation(int port, vtkInformation *info); 00080 00081 int Extent[6]; 00082 private: 00083 vtkStructuredGridGeometryFilter(const vtkStructuredGridGeometryFilter&); // Not implemented. 00084 void operator=(const vtkStructuredGridGeometryFilter&); // Not implemented. 00085 }; 00086 00087 #endif 00088 00089