VTK  9.1.0
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 =========================================================================*/
59 #ifndef vtkExtractGrid_h
60 #define vtkExtractGrid_h
61 
62 #include "vtkFiltersExtractionModule.h" // For export macro
64 
65 // Forward Declarations
67 
68 class VTKFILTERSEXTRACTION_EXPORT vtkExtractGrid : public vtkStructuredGridAlgorithm
69 {
70 public:
71  static vtkExtractGrid* New();
73  void PrintSelf(ostream& os, vtkIndent indent) override;
74 
76 
81  vtkSetVector6Macro(VOI, int);
82  vtkGetVectorMacro(VOI, int, 6);
84 
86 
93  vtkSetVector3Macro(SampleRate, int);
94  vtkGetVectorMacro(SampleRate, int, 3);
96 
98 
106  vtkSetMacro(IncludeBoundary, vtkTypeBool);
107  vtkGetMacro(IncludeBoundary, vtkTypeBool);
108  vtkBooleanMacro(IncludeBoundary, vtkTypeBool);
110 
111 protected:
113  ~vtkExtractGrid() override;
114 
118 
125  bool RequestDataImpl(vtkInformationVector** inputVector, vtkInformationVector* outputVector);
126 
127  int VOI[6];
128  int SampleRate[3];
130 
132 
133 private:
134  vtkExtractGrid(const vtkExtractGrid&) = delete;
135  void operator=(const vtkExtractGrid&) = delete;
136 };
137 
138 #endif
vtkStructuredGridAlgorithm.h
vtkExtractGrid::Internal
vtkExtractStructuredGridHelper * Internal
Definition: vtkExtractGrid.h:131
vtkExtractGrid::RequestDataImpl
bool RequestDataImpl(vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Implementation for RequestData using a specified VOI.
vtkStructuredGridAlgorithm
Superclass for algorithms that produce only structured grid as output.
Definition: vtkStructuredGridAlgorithm.h:42
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkExtractGrid::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkExtractGrid::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkExtractGrid::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkExtractGrid
select piece (e.g., volume of interest) and/or subsample structured grid dataset
Definition: vtkExtractGrid.h:69
vtkExtractGrid::IncludeBoundary
vtkTypeBool IncludeBoundary
Definition: vtkExtractGrid.h:129
vtkExtractStructuredGridHelper
helper for extracting/sub-sampling structured datasets.
Definition: vtkExtractStructuredGridHelper.h:52
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkExtractGrid::~vtkExtractGrid
~vtkExtractGrid() override
vtkExtractGrid::vtkExtractGrid
vtkExtractGrid()
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkExtractGrid::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkExtractGrid::New
static vtkExtractGrid * New()