VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkExtractRectilinearGrid.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 =========================================================================*/ 00031 #ifndef __vtkExtractRectilinearGrid_h 00032 #define __vtkExtractRectilinearGrid_h 00033 00034 #include "vtkFiltersExtractionModule.h" // For export macro 00035 #include "vtkRectilinearGridAlgorithm.h" 00036 00037 class VTKFILTERSEXTRACTION_EXPORT vtkExtractRectilinearGrid : public vtkRectilinearGridAlgorithm 00038 { 00039 public: 00040 static vtkExtractRectilinearGrid *New(); 00041 vtkTypeMacro(vtkExtractRectilinearGrid,vtkRectilinearGridAlgorithm); 00042 void PrintSelf(ostream& os, vtkIndent indent); 00043 00045 00048 vtkSetVector6Macro(VOI,int); 00049 vtkGetVectorMacro(VOI,int,6); 00051 00053 00058 vtkSetVector3Macro(SampleRate, int); 00059 vtkGetVectorMacro(SampleRate, int, 3); 00061 00063 00069 vtkSetMacro(IncludeBoundary,int); 00070 vtkGetMacro(IncludeBoundary,int); 00071 vtkBooleanMacro(IncludeBoundary,int); 00073 00074 protected: 00075 vtkExtractRectilinearGrid(); 00076 ~vtkExtractRectilinearGrid() {}; 00077 00078 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00079 virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00080 virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00081 00082 int VOI[6]; 00083 int SampleRate[3]; 00084 int IncludeBoundary; 00085 00086 private: 00087 vtkExtractRectilinearGrid(const vtkExtractRectilinearGrid&); // Not implemented. 00088 void operator=(const vtkExtractRectilinearGrid&); // Not implemented. 00089 }; 00090 00091 #endif 00092 00093