VTK
vtkExtractGrid.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractGrid.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 =========================================================================*/
45 #ifndef vtkExtractGrid_h
46 #define vtkExtractGrid_h
47 
48 #include "vtkFiltersExtractionModule.h" // For export macro
50 
51 // Forward Declarations
53 
55 {
56 public:
57  static vtkExtractGrid *New();
59  void PrintSelf(ostream& os, vtkIndent indent);
60 
62 
65  vtkSetVector6Macro(VOI,int);
66  vtkGetVectorMacro(VOI,int,6);
68 
70 
75  vtkSetVector3Macro(SampleRate, int);
76  vtkGetVectorMacro(SampleRate, int, 3);
78 
80 
86  vtkSetMacro(IncludeBoundary,int);
87  vtkGetMacro(IncludeBoundary,int);
88  vtkBooleanMacro(IncludeBoundary,int);
90 
91 protected:
93  ~vtkExtractGrid();
94 
98 
100 
103  bool RequestDataImpl(int voi[6],
104  vtkInformationVector **inputVector,
105  vtkInformationVector *outputVector);
107 
108 
109  int VOI[6];
110  int SampleRate[3];
112 
114 
115 private:
116  vtkExtractGrid(const vtkExtractGrid&); // Not implemented.
117  void operator=(const vtkExtractGrid&); // Not implemented.
118 };
119 
120 #endif
121 
122 
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store vtkAlgorithm input/output information.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkStructuredGridAlgorithm * New()
helper for extracting/sub-sampling structured datasets.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
a simple class to control print indentation
Definition: vtkIndent.h:38
Superclass for algorithms that produce only structured grid as output.
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKFILTERSEXTRACTION_EXPORT
vtkExtractStructuredGridHelper * Internal
select piece (e.g., volume of interest) and/or subsample structured grid dataset
Store zero or more vtkInformation instances.