VTK
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 =========================================================================*/
39 #ifndef vtkExtractVOI_h
40 #define vtkExtractVOI_h
41 
42 #include "vtkImagingCoreModule.h" // For export macro
43 #include "vtkImageAlgorithm.h"
44 
45 // Forward Declarations
47 
48 class VTKIMAGINGCORE_EXPORT vtkExtractVOI : public vtkImageAlgorithm
49 {
50 public:
52  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
53 
57  static vtkExtractVOI *New();
58 
60 
65  vtkSetVector6Macro(VOI,int);
66  vtkGetVectorMacro(VOI,int,6);
68 
70 
76  vtkSetVector3Macro(SampleRate, int);
77  vtkGetVectorMacro(SampleRate, int, 3);
79 
81 
89  vtkSetMacro(IncludeBoundary,int);
90  vtkGetMacro(IncludeBoundary,int);
91  vtkBooleanMacro(IncludeBoundary,int);
93 
94 protected:
95  vtkExtractVOI();
96  ~vtkExtractVOI() VTK_OVERRIDE;
97 
98  int RequestUpdateExtent(vtkInformation*,
100  vtkInformationVector*) VTK_OVERRIDE;
101  int RequestInformation (vtkInformation*,
103  vtkInformationVector*) VTK_OVERRIDE;
104  int RequestData(vtkInformation* request,
105  vtkInformationVector** inputVector,
106  vtkInformationVector* outputVector) VTK_OVERRIDE;
107 
114  bool RequestDataImpl(vtkInformationVector **inputVector,
115  vtkInformationVector *outputVector);
116 
117  int VOI[6];
118  int SampleRate[3];
119  int IncludeBoundary;
120 
122 private:
123  vtkExtractVOI(const vtkExtractVOI&) VTK_DELETE_FUNCTION;
124  void operator=(const vtkExtractVOI&) VTK_DELETE_FUNCTION;
125 };
126 
127 #endif
128 
129 
Store vtkAlgorithm input/output information.
helper for extracting/sub-sampling structured datasets.
a simple class to control print indentation
Definition: vtkIndent.h:33
select piece (e.g., volume of interest) and/or subsample structured points dataset ...
Definition: vtkExtractVOI.h:48
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.