VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkExtractGrid.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 =========================================================================*/ 00045 #ifndef __vtkExtractGrid_h 00046 #define __vtkExtractGrid_h 00047 00048 #include "vtkStructuredGridAlgorithm.h" 00049 00050 class VTK_GRAPHICS_EXPORT vtkExtractGrid : public vtkStructuredGridAlgorithm 00051 { 00052 public: 00053 static vtkExtractGrid *New(); 00054 vtkTypeMacro(vtkExtractGrid,vtkStructuredGridAlgorithm); 00055 void PrintSelf(ostream& os, vtkIndent indent); 00056 00058 00061 vtkSetVector6Macro(VOI,int); 00062 vtkGetVectorMacro(VOI,int,6); 00064 00066 00071 vtkSetVector3Macro(SampleRate, int); 00072 vtkGetVectorMacro(SampleRate, int, 3); 00074 00076 00082 vtkSetMacro(IncludeBoundary,int); 00083 vtkGetMacro(IncludeBoundary,int); 00084 vtkBooleanMacro(IncludeBoundary,int); 00086 00087 protected: 00088 vtkExtractGrid(); 00089 ~vtkExtractGrid() {}; 00090 00091 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00092 virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00093 virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00094 00095 int VOI[6]; 00096 int SampleRate[3]; 00097 int IncludeBoundary; 00098 00099 private: 00100 vtkExtractGrid(const vtkExtractGrid&); // Not implemented. 00101 void operator=(const vtkExtractGrid&); // Not implemented. 00102 }; 00103 00104 #endif 00105 00106