VTK  9.2.6
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 =========================================================================*/
43 #ifndef vtkExtractGrid_h
44 #define vtkExtractGrid_h
45 
46 #include "vtkFiltersExtractionModule.h" // For export macro
48 
49 // Forward Declarations
51 
52 class VTKFILTERSEXTRACTION_EXPORT vtkExtractGrid : public vtkStructuredGridAlgorithm
53 {
54 public:
55  static vtkExtractGrid* New();
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
60 
65  vtkSetVector6Macro(VOI, int);
66  vtkGetVectorMacro(VOI, int, 6);
68 
70 
77  vtkSetVector3Macro(SampleRate, int);
78  vtkGetVectorMacro(SampleRate, int, 3);
80 
82 
90  vtkSetMacro(IncludeBoundary, vtkTypeBool);
91  vtkGetMacro(IncludeBoundary, vtkTypeBool);
92  vtkBooleanMacro(IncludeBoundary, vtkTypeBool);
94 
95 protected:
97  ~vtkExtractGrid() override;
98 
102 
109  bool RequestDataImpl(vtkInformationVector** inputVector, vtkInformationVector* outputVector);
110 
111  int VOI[6];
112  int SampleRate[3];
114 
116 
117 private:
118  vtkExtractGrid(const vtkExtractGrid&) = delete;
119  void operator=(const vtkExtractGrid&) = delete;
120 };
121 
122 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store vtkAlgorithm input/output information.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkTypeBool IncludeBoundary
static vtkStructuredGridAlgorithm * New()
helper for extracting/sub-sampling structured datasets.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
int vtkTypeBool
Definition: vtkABI.h:69
a simple class to control print indentation
Definition: vtkIndent.h:39
Superclass for algorithms that produce only structured grid as output.
vtkExtractStructuredGridHelper * Internal
select piece (e.g., volume of interest) and/or subsample structured grid dataset
Store zero or more vtkInformation instances.