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 
66  vtkSetVector6Macro(VOI,int);
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:
92  vtkExtractVOI();
93  ~vtkExtractVOI();
94 
98  virtual int RequestInformation (vtkInformation*,
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 
Store vtkAlgorithm input/output information.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
helper for extracting/sub-sampling structured datasets.
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKIMAGINGCORE_EXPORT
select piece (e.g., volume of interest) and/or subsample structured points dataset ...
Definition: vtkExtractVOI.h:53
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkExtractStructuredGridHelper * Internal