VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkExtractVOI.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00044 #ifndef __vtkExtractVOI_h 00045 #define __vtkExtractVOI_h 00046 00047 #include "vtkImageAlgorithm.h" 00048 00049 class VTK_IMAGING_EXPORT vtkExtractVOI : public vtkImageAlgorithm 00050 { 00051 public: 00052 vtkTypeMacro(vtkExtractVOI,vtkImageAlgorithm); 00053 void PrintSelf(ostream& os, vtkIndent indent); 00054 00056 static vtkExtractVOI *New(); 00057 00059 00062 vtkSetVector6Macro(VOI,int); 00063 vtkGetVectorMacro(VOI,int,6); 00065 00067 00071 vtkSetVector3Macro(SampleRate, int); 00072 vtkGetVectorMacro(SampleRate, int, 3); 00074 00075 protected: 00076 vtkExtractVOI(); 00077 ~vtkExtractVOI() {}; 00078 00079 virtual int RequestUpdateExtent(vtkInformation*, 00080 vtkInformationVector**, 00081 vtkInformationVector*); 00082 virtual int RequestInformation (vtkInformation*, 00083 vtkInformationVector**, 00084 vtkInformationVector*); 00085 virtual int RequestData(vtkInformation* request, 00086 vtkInformationVector** inputVector, 00087 vtkInformationVector* outputVector); 00088 00089 int VOI[6]; 00090 int SampleRate[3]; 00091 private: 00092 vtkExtractVOI(const vtkExtractVOI&); // Not implemented. 00093 void operator=(const vtkExtractVOI&); // Not implemented. 00094 }; 00095 00096 #endif 00097 00098