VTK  9.2.6
vtkExtractVOI.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkExtractVOI.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=========================================================================*/
51#ifndef vtkExtractVOI_h
52#define vtkExtractVOI_h
53
54#include "vtkImageAlgorithm.h"
55#include "vtkImagingCoreModule.h" // For export macro
56
57// Forward Declarations
59
60class VTKIMAGINGCORE_EXPORT vtkExtractVOI : public vtkImageAlgorithm
61{
62public:
64 void PrintSelf(ostream& os, vtkIndent indent) override;
65
69 static vtkExtractVOI* New();
70
72
77 vtkSetVector6Macro(VOI, int);
78 vtkGetVectorMacro(VOI, int, 6);
80
82
88 vtkSetVector3Macro(SampleRate, int);
89 vtkGetVectorMacro(SampleRate, int, 3);
91
93
101 vtkSetMacro(IncludeBoundary, vtkTypeBool);
102 vtkGetMacro(IncludeBoundary, vtkTypeBool);
103 vtkBooleanMacro(IncludeBoundary, vtkTypeBool);
105
106protected:
108 ~vtkExtractVOI() override;
109
113 vtkInformationVector* outputVector) override;
114
122
123 int VOI[6];
124 int SampleRate[3];
126
128
129private:
130 vtkExtractVOI(const vtkExtractVOI&) = delete;
131 void operator=(const vtkExtractVOI&) = delete;
132};
133
134#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:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:69