VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkExtractGrid.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 =========================================================================*/ 00042 #ifndef __vtkExtractGrid_h 00043 #define __vtkExtractGrid_h 00044 00045 #include "vtkStructuredGridAlgorithm.h" 00046 00047 class VTK_GRAPHICS_EXPORT vtkExtractGrid : public vtkStructuredGridAlgorithm 00048 { 00049 public: 00050 static vtkExtractGrid *New(); 00051 vtkTypeRevisionMacro(vtkExtractGrid,vtkStructuredGridAlgorithm); 00052 void PrintSelf(ostream& os, vtkIndent indent); 00053 00055 00058 vtkSetVector6Macro(VOI,int); 00059 vtkGetVectorMacro(VOI,int,6); 00061 00063 00067 vtkSetVector3Macro(SampleRate, int); 00068 vtkGetVectorMacro(SampleRate, int, 3); 00070 00072 00078 vtkSetMacro(IncludeBoundary,int); 00079 vtkGetMacro(IncludeBoundary,int); 00080 vtkBooleanMacro(IncludeBoundary,int); 00082 00083 protected: 00084 vtkExtractGrid(); 00085 ~vtkExtractGrid() {}; 00086 00087 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00088 virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00089 virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00090 00091 int VOI[6]; 00092 int SampleRate[3]; 00093 int IncludeBoundary; 00094 00095 private: 00096 vtkExtractGrid(const vtkExtractGrid&); // Not implemented. 00097 void operator=(const vtkExtractGrid&); // Not implemented. 00098 }; 00099 00100 #endif 00101 00102