VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
49 #include "vtkStructuredGridAlgorithm.h"
50 
51 class VTKFILTERSEXTRACTION_EXPORT vtkExtractGrid : public vtkStructuredGridAlgorithm
52 {
53 public:
54  static vtkExtractGrid *New();
55  vtkTypeMacro(vtkExtractGrid,vtkStructuredGridAlgorithm);
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
59 
62  vtkSetVector6Macro(VOI,int);
63  vtkGetVectorMacro(VOI,int,6);
65 
67 
72  vtkSetVector3Macro(SampleRate, int);
73  vtkGetVectorMacro(SampleRate, int, 3);
75 
77 
83  vtkSetMacro(IncludeBoundary,int);
84  vtkGetMacro(IncludeBoundary,int);
85  vtkBooleanMacro(IncludeBoundary,int);
87 
88 protected:
91 
92  virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
93  virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
94  virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
95 
96  int VOI[6];
97  int SampleRate[3];
99 
100 private:
101  vtkExtractGrid(const vtkExtractGrid&); // Not implemented.
102  void operator=(const vtkExtractGrid&); // Not implemented.
103 };
104 
105 #endif
106 
107 
select piece (e.g., volume of interest) and/or subsample structured grid dataset