VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkExtractRectilinearGrid.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractRectilinearGrid.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
31 #ifndef __vtkExtractRectilinearGrid_h
32 #define __vtkExtractRectilinearGrid_h
33 
34 #include "vtkFiltersExtractionModule.h" // For export macro
36 
37 class VTKFILTERSEXTRACTION_EXPORT vtkExtractRectilinearGrid : public vtkRectilinearGridAlgorithm
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
48  vtkSetVector6Macro(VOI,int);
49  vtkGetVectorMacro(VOI,int,6);
51 
53 
58  vtkSetVector3Macro(SampleRate, int);
59  vtkGetVectorMacro(SampleRate, int, 3);
61 
63 
69  vtkSetMacro(IncludeBoundary,int);
70  vtkGetMacro(IncludeBoundary,int);
71  vtkBooleanMacro(IncludeBoundary,int);
73 
74 protected:
77 
78  virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
79  virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
80  virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
81 
82  int VOI[6];
83  int SampleRate[3];
85 
86 private:
87  vtkExtractRectilinearGrid(const vtkExtractRectilinearGrid&); // Not implemented.
88  void operator=(const vtkExtractRectilinearGrid&); // Not implemented.
89 };
90 
91 #endif
92 
93 
Superclass for algorithms that produce only rectilinear grid as output.
static vtkRectilinearGridAlgorithm * New()
Extract a sub grid (VOI) from the structured rectilinear dataset.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void PrintSelf(ostream &os, vtkIndent indent)