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