VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkExtractVOI.h,v $ 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 =========================================================================*/ 00041 #ifndef __vtkExtractVOI_h 00042 #define __vtkExtractVOI_h 00043 00044 #include "vtkImageAlgorithm.h" 00045 00046 class VTK_IMAGING_EXPORT vtkExtractVOI : public vtkImageAlgorithm 00047 { 00048 public: 00049 vtkTypeRevisionMacro(vtkExtractVOI,vtkImageAlgorithm); 00050 void PrintSelf(ostream& os, vtkIndent indent); 00051 00053 static vtkExtractVOI *New(); 00054 00056 00059 vtkSetVector6Macro(VOI,int); 00060 vtkGetVectorMacro(VOI,int,6); 00062 00064 00068 vtkSetVector3Macro(SampleRate, int); 00069 vtkGetVectorMacro(SampleRate, int, 3); 00071 00072 protected: 00073 vtkExtractVOI(); 00074 ~vtkExtractVOI() {}; 00075 00076 virtual int RequestUpdateExtent(vtkInformation*, 00077 vtkInformationVector**, 00078 vtkInformationVector*); 00079 virtual int RequestInformation (vtkInformation*, 00080 vtkInformationVector**, 00081 vtkInformationVector*); 00082 virtual int RequestData(vtkInformation* request, 00083 vtkInformationVector** inputVector, 00084 vtkInformationVector* outputVector); 00085 00086 int VOI[6]; 00087 int SampleRate[3]; 00088 private: 00089 vtkExtractVOI(const vtkExtractVOI&); // Not implemented. 00090 void operator=(const vtkExtractVOI&); // Not implemented. 00091 }; 00092 00093 #endif 00094 00095