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 =========================================================================*/
40 #ifndef vtkExtractGrid_h
41 #define vtkExtractGrid_h
42 
43 #include "vtkFiltersExtractionModule.h" // For export macro
45 
46 // Forward Declarations
48 
49 class VTKFILTERSEXTRACTION_EXPORT vtkExtractGrid : public vtkStructuredGridAlgorithm
50 {
51 public:
52  static vtkExtractGrid *New();
54  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
55 
57 
62  vtkSetVector6Macro(VOI,int);
63  vtkGetVectorMacro(VOI,int,6);
65 
67 
74  vtkSetVector3Macro(SampleRate, int);
75  vtkGetVectorMacro(SampleRate, int, 3);
77 
79 
87  vtkSetMacro(IncludeBoundary,int);
88  vtkGetMacro(IncludeBoundary,int);
89  vtkBooleanMacro(IncludeBoundary,int);
91 
92 protected:
94  ~vtkExtractGrid() VTK_OVERRIDE;
95 
96  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
97  int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
98  int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
99 
106  bool RequestDataImpl(vtkInformationVector **inputVector,
107  vtkInformationVector *outputVector);
108 
109 
110  int VOI[6];
111  int SampleRate[3];
112  int IncludeBoundary;
113 
115 
116 private:
117  vtkExtractGrid(const vtkExtractGrid&) VTK_DELETE_FUNCTION;
118  void operator=(const vtkExtractGrid&) VTK_DELETE_FUNCTION;
119 };
120 
121 #endif
122 
123 
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store vtkAlgorithm input/output information.
static vtkStructuredGridAlgorithm * New()
helper for extracting/sub-sampling structured datasets.
a simple class to control print indentation
Definition: vtkIndent.h:33
Superclass for algorithms that produce only structured grid as output.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
select piece (e.g., volume of interest) and/or subsample structured grid dataset
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.