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
31#ifndef vtkExtractGrid_h
32#define vtkExtractGrid_h
33
34#include "vtkFiltersExtractionModule.h" // For export macro
36
37// Forward Declarations
38VTK_ABI_NAMESPACE_BEGIN
40
41class VTKFILTERSEXTRACTION_EXPORT vtkExtractGrid : public vtkStructuredGridAlgorithm
42{
43public:
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
49
54 vtkSetVector6Macro(VOI, int);
55 vtkGetVectorMacro(VOI, int, 6);
57
59
66 vtkSetVector3Macro(SampleRate, int);
67 vtkGetVectorMacro(SampleRate, int, 3);
69
71
79 vtkSetMacro(IncludeBoundary, vtkTypeBool);
80 vtkGetMacro(IncludeBoundary, vtkTypeBool);
81 vtkBooleanMacro(IncludeBoundary, vtkTypeBool);
83
84protected:
86 ~vtkExtractGrid() override;
87
91
98 bool RequestDataImpl(vtkInformationVector** inputVector, vtkInformationVector* outputVector);
99
100 int VOI[6];
101 int SampleRate[3];
103
105
106private:
107 vtkExtractGrid(const vtkExtractGrid&) = delete;
108 void operator=(const vtkExtractGrid&) = delete;
109};
110
111VTK_ABI_NAMESPACE_END
112#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:29
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