VTK  9.3.0
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
40#ifndef vtkExtractGrid_h
41#define vtkExtractGrid_h
42
43#include "vtkFiltersExtractionModule.h" // For export macro
45
46// Forward Declarations
47VTK_ABI_NAMESPACE_BEGIN
49
50class VTKFILTERSEXTRACTION_EXPORT vtkExtractGrid : public vtkStructuredGridAlgorithm
51{
52public:
55 void PrintSelf(ostream& os, vtkIndent indent) override;
56
58
63 vtkSetVector6Macro(VOI, int);
64 vtkGetVectorMacro(VOI, int, 6);
66
68
75 vtkSetVector3Macro(SampleRate, int);
76 vtkGetVectorMacro(SampleRate, int, 3);
78
80
88 vtkSetMacro(IncludeBoundary, vtkTypeBool);
89 vtkGetMacro(IncludeBoundary, vtkTypeBool);
90 vtkBooleanMacro(IncludeBoundary, vtkTypeBool);
92
93protected:
95 ~vtkExtractGrid() override;
96
100
108
109 int VOI[6];
110 int SampleRate[3];
112
114
115private:
116 vtkExtractGrid(const vtkExtractGrid&) = delete;
117 void operator=(const vtkExtractGrid&) = delete;
118};
119
120VTK_ABI_NAMESPACE_END
121#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:38
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