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 =========================================================================*/
44 #ifndef vtkExtractVOI_h
45 #define vtkExtractVOI_h
46 
47 #include "vtkImagingCoreModule.h" // For export macro
48 #include "vtkImageAlgorithm.h"
49 
50 // Forward Declarations
52 
54 {
55 public:
57  void PrintSelf(ostream& os, vtkIndent indent);
58 
60  static vtkExtractVOI *New();
61 
63 
67  vtkGetVectorMacro(VOI,int,6);
69 
71 
75  vtkSetVector3Macro(SampleRate, int);
76  vtkGetVectorMacro(SampleRate, int, 3);
78 
80 
86  vtkSetMacro(IncludeBoundary,int);
87  vtkGetMacro(IncludeBoundary,int);
88  vtkBooleanMacro(IncludeBoundary,int);
90 
91 protected:
94 
101  virtual int RequestData(vtkInformation* request,
102  vtkInformationVector** inputVector,
103  vtkInformationVector* outputVector);
104 
106 
109  bool RequestDataImpl(int voi[6],
110  vtkInformationVector **inputVector,
111  vtkInformationVector *outputVector);
113 
114  int VOI[6];
115  int SampleRate[3];
117 
119 private:
120  vtkExtractVOI(const vtkExtractVOI&); // Not implemented.
121  void operator=(const vtkExtractVOI&); // Not implemented.
122 };
123 
124 #endif
125 
126 
vtkExtractVOI::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkExtractVOI::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:287
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkExtractVOI::~vtkExtractVOI
~vtkExtractVOI()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkImageAlgorithm.h
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:40
vtkGetVectorMacro
#define vtkGetVectorMacro(name, type, count)
Definition: vtkSetGet.h:424
vtkExtractStructuredGridHelper
helper for extracting/sub-sampling structured datasets.
Definition: vtkExtractStructuredGridHelper.h:52
vtkExtractVOI::New
static vtkExtractVOI * New()
vtkExtractVOI::IncludeBoundary
int IncludeBoundary
Definition: vtkExtractVOI.h:116
vtkExtractVOI::RequestDataImpl
bool RequestDataImpl(int voi[6], vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkExtractVOI::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkExtractVOI::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkExtractVOI::vtkExtractVOI
vtkExtractVOI()
vtkSetVector6Macro
#define vtkSetVector6Macro(name, type)
Definition: vtkSetGet.h:360
vtkExtractVOI::Internal
vtkExtractStructuredGridHelper * Internal
Definition: vtkExtractVOI.h:118
vtkImagingCoreModule.h
VTKIMAGINGCORE_EXPORT
#define VTKIMAGINGCORE_EXPORT
Definition: vtkImagingCoreModule.h:15
vtkExtractVOI
select piece (e.g., volume of interest) and/or subsample structured points dataset
Definition: vtkExtractVOI.h:54