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 "vtkImagingCoreModule.h" // For export macro 00048 #include "vtkImageAlgorithm.h" 00049 00050 class VTKIMAGINGCORE_EXPORT vtkExtractVOI : public vtkImageAlgorithm 00051 { 00052 public: 00053 vtkTypeMacro(vtkExtractVOI,vtkImageAlgorithm); 00054 void PrintSelf(ostream& os, vtkIndent indent); 00055 00057 static vtkExtractVOI *New(); 00058 00060 00063 vtkSetVector6Macro(VOI,int); 00064 vtkGetVectorMacro(VOI,int,6); 00066 00068 00072 vtkSetVector3Macro(SampleRate, int); 00073 vtkGetVectorMacro(SampleRate, int, 3); 00075 00076 protected: 00077 vtkExtractVOI(); 00078 ~vtkExtractVOI() {} 00079 00080 virtual int RequestUpdateExtent(vtkInformation*, 00081 vtkInformationVector**, 00082 vtkInformationVector*); 00083 virtual int RequestInformation (vtkInformation*, 00084 vtkInformationVector**, 00085 vtkInformationVector*); 00086 virtual int RequestData(vtkInformation* request, 00087 vtkInformationVector** inputVector, 00088 vtkInformationVector* outputVector); 00089 00090 int VOI[6]; 00091 int SampleRate[3]; 00092 private: 00093 vtkExtractVOI(const vtkExtractVOI&); // Not implemented. 00094 void operator=(const vtkExtractVOI&); // Not implemented. 00095 }; 00096 00097 #endif 00098 00099