VTK
dox/Filters/Extraction/vtkExtractGrid.h
Go to the documentation of this file.
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 "vtkFiltersExtractionModule.h" // For export macro
00049 #include "vtkStructuredGridAlgorithm.h"
00050 
00051 class VTKFILTERSEXTRACTION_EXPORT vtkExtractGrid : public vtkStructuredGridAlgorithm
00052 {
00053 public:
00054   static vtkExtractGrid *New();
00055   vtkTypeMacro(vtkExtractGrid,vtkStructuredGridAlgorithm);
00056   void PrintSelf(ostream& os, vtkIndent indent);
00057 
00059 
00062   vtkSetVector6Macro(VOI,int);
00063   vtkGetVectorMacro(VOI,int,6);
00065 
00067 
00072   vtkSetVector3Macro(SampleRate, int);
00073   vtkGetVectorMacro(SampleRate, int, 3);
00075 
00077 
00083   vtkSetMacro(IncludeBoundary,int);
00084   vtkGetMacro(IncludeBoundary,int);
00085   vtkBooleanMacro(IncludeBoundary,int);
00087 
00088 protected:
00089   vtkExtractGrid();
00090   ~vtkExtractGrid() {}
00091 
00092   virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00093   virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00094   virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00095 
00096   int VOI[6];
00097   int SampleRate[3];
00098   int IncludeBoundary;
00099 
00100 private:
00101   vtkExtractGrid(const vtkExtractGrid&);  // Not implemented.
00102   void operator=(const vtkExtractGrid&);  // Not implemented.
00103 };
00104 
00105 #endif
00106 
00107