VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Filters/Extraction/vtkExtractRectilinearGrid.h
Go to the documentation of this file.
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 // Forward Declarations
00038 class vtkExtractStructuredGridHelper;
00039 
00040 class VTKFILTERSEXTRACTION_EXPORT vtkExtractRectilinearGrid : public vtkRectilinearGridAlgorithm
00041 {
00042 public:
00043   static vtkExtractRectilinearGrid *New();
00044   vtkTypeMacro(vtkExtractRectilinearGrid,vtkRectilinearGridAlgorithm);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00048 
00051   vtkSetVector6Macro(VOI,int);
00052   vtkGetVectorMacro(VOI,int,6);
00054 
00056 
00061   vtkSetVector3Macro(SampleRate, int);
00062   vtkGetVectorMacro(SampleRate, int, 3);
00064 
00066 
00072   vtkSetMacro(IncludeBoundary,int);
00073   vtkGetMacro(IncludeBoundary,int);
00074   vtkBooleanMacro(IncludeBoundary,int);
00076 
00077 protected:
00078   vtkExtractRectilinearGrid();
00079   ~vtkExtractRectilinearGrid();
00080 
00081   virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00082   virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00083   virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00084 
00086 
00089   bool RequestDataImpl(int voi[6],
00090                        vtkInformationVector **inputVector,
00091                        vtkInformationVector *outputVector);
00093 
00094   int VOI[6];
00095   int SampleRate[3];
00096   int IncludeBoundary;
00097 
00098   vtkExtractStructuredGridHelper* Internal;
00099 private:
00100   vtkExtractRectilinearGrid(const vtkExtractRectilinearGrid&);  // Not implemented.
00101   void operator=(const vtkExtractRectilinearGrid&);  // Not implemented.
00102 };
00103 
00104 #endif
00105 
00106