VTK  9.3.0
vtkExtractVOI.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
30#ifndef vtkExtractVOI_h
31#define vtkExtractVOI_h
32
33#include "vtkImageAlgorithm.h"
34#include "vtkImagingCoreModule.h" // For export macro
35
36// Forward Declarations
37VTK_ABI_NAMESPACE_BEGIN
39
40class VTKIMAGINGCORE_EXPORT vtkExtractVOI : public vtkImageAlgorithm
41{
42public:
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
49 static vtkExtractVOI* New();
50
52
57 vtkSetVector6Macro(VOI, int);
58 vtkGetVectorMacro(VOI, int, 6);
60
62
68 vtkSetVector3Macro(SampleRate, int);
69 vtkGetVectorMacro(SampleRate, int, 3);
71
73
81 vtkSetMacro(IncludeBoundary, vtkTypeBool);
82 vtkGetMacro(IncludeBoundary, vtkTypeBool);
83 vtkBooleanMacro(IncludeBoundary, vtkTypeBool);
85
86protected:
88 ~vtkExtractVOI() override;
89
92 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
93 vtkInformationVector* outputVector) override;
94
102
103 int VOI[6];
104 int SampleRate[3];
106
108
109private:
110 vtkExtractVOI(const vtkExtractVOI&) = delete;
111 void operator=(const vtkExtractVOI&) = delete;
112};
113
114VTK_ABI_NAMESPACE_END
115#endif
helper for extracting/sub-sampling structured datasets.
select piece (e.g., volume of interest) and/or subsample structured points dataset
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
vtkExtractStructuredGridHelper * Internal
bool RequestDataImpl(vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Implementation for RequestData using a specified VOI.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
static vtkExtractVOI * New()
Construct object to extract all of the input data.
~vtkExtractVOI() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called in response to a REQUEST_DATA request from the executive.
vtkTypeBool IncludeBoundary
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:64