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 =========================================================================*/
52 #ifndef vtkExtractGrid_h
53 #define vtkExtractGrid_h
54 
55 #include "vtkFiltersExtractionModule.h" // For export macro
57 
58 // Forward Declarations
60 
61 class VTKFILTERSEXTRACTION_EXPORT vtkExtractGrid : public vtkStructuredGridAlgorithm
62 {
63 public:
64  static vtkExtractGrid* New();
66  void PrintSelf(ostream& os, vtkIndent indent) override;
67 
69 
74  vtkSetVector6Macro(VOI, int);
75  vtkGetVectorMacro(VOI, int, 6);
77 
79 
86  vtkSetVector3Macro(SampleRate, int);
87  vtkGetVectorMacro(SampleRate, int, 3);
89 
91 
99  vtkSetMacro(IncludeBoundary, vtkTypeBool);
100  vtkGetMacro(IncludeBoundary, vtkTypeBool);
101  vtkBooleanMacro(IncludeBoundary, vtkTypeBool);
103 
104 protected:
106  ~vtkExtractGrid() override;
107 
111 
118  bool RequestDataImpl(vtkInformationVector** inputVector, vtkInformationVector* outputVector);
119 
120  int VOI[6];
121  int SampleRate[3];
123 
125 
126 private:
127  vtkExtractGrid(const vtkExtractGrid&) = delete;
128  void operator=(const vtkExtractGrid&) = delete;
129 };
130 
131 #endif
select piece (e.g., volume of interest) and/or subsample structured grid dataset
vtkExtractStructuredGridHelper * Internal
static vtkExtractGrid * New()
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkExtractGrid() override
bool RequestDataImpl(vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Implementation for RequestData using a specified VOI.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
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.
vtkTypeBool IncludeBoundary
helper for extracting/sub-sampling structured datasets.
a simple class to control print indentation
Definition: vtkIndent.h:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only structured grid as output.
int vtkTypeBool
Definition: vtkABI.h:69