00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
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&);  
00101   void operator=(const vtkExtractGrid&);  
00102 };
00103 
00104 #endif
00105 
00106