VTK  9.3.20240424
vtkExtractGrid.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
50#ifndef vtkExtractGrid_h
51#define vtkExtractGrid_h
52
53#include "vtkFiltersExtractionModule.h" // For export macro
55
56// Forward Declarations
57VTK_ABI_NAMESPACE_BEGIN
59
60class VTKFILTERSEXTRACTION_EXPORT vtkExtractGrid : public vtkStructuredGridAlgorithm
61{
62public:
65 void PrintSelf(ostream& os, vtkIndent indent) override;
66
68
73 vtkSetVector6Macro(VOI, int);
74 vtkGetVectorMacro(VOI, int, 6);
76
78
85 vtkSetVector3Macro(SampleRate, int);
86 vtkGetVectorMacro(SampleRate, int, 3);
88
90
98 vtkSetMacro(IncludeBoundary, vtkTypeBool);
99 vtkGetMacro(IncludeBoundary, vtkTypeBool);
100 vtkBooleanMacro(IncludeBoundary, vtkTypeBool);
102
103protected:
105 ~vtkExtractGrid() override;
106
110
118
119 int VOI[6];
120 int SampleRate[3];
122
124
125private:
126 vtkExtractGrid(const vtkExtractGrid&) = delete;
127 void operator=(const vtkExtractGrid&) = delete;
128};
129
130VTK_ABI_NAMESPACE_END
131#endif
select piece (e.g., volume of interest) and/or subsample structured grid dataset
vtkExtractStructuredGridHelper * Internal
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkExtractGrid * New()
~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:108
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:64