VTK  9.3.1
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
37 VTK_ABI_NAMESPACE_BEGIN
39 
40 class VTKIMAGINGCORE_EXPORT vtkExtractVOI : public vtkImageAlgorithm
41 {
42 public:
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 
86 protected:
87  vtkExtractVOI();
88  ~vtkExtractVOI() override;
89 
92  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
93  vtkInformationVector* outputVector) override;
94 
101  bool RequestDataImpl(vtkInformationVector** inputVector, vtkInformationVector* outputVector);
102 
103  int VOI[6];
104  int SampleRate[3];
106 
108 
109 private:
110  vtkExtractVOI(const vtkExtractVOI&) = delete;
111  void operator=(const vtkExtractVOI&) = delete;
112 };
113 
114 VTK_ABI_NAMESPACE_END
115 #endif
vtkTypeBool IncludeBoundary
Store vtkAlgorithm input/output information.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
helper for extracting/sub-sampling structured datasets.
int vtkTypeBool
Definition: vtkABI.h:64
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
select piece (e.g., volume of interest) and/or subsample structured points dataset ...
Definition: vtkExtractVOI.h:40
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
vtkExtractStructuredGridHelper * Internal