VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkVolumeReader.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 __vtkVolumeReader_h 00045 #define __vtkVolumeReader_h 00046 00047 #include "vtkIOImageModule.h" // For export macro 00048 #include "vtkImageAlgorithm.h" 00049 00050 class VTKIOIMAGE_EXPORT vtkVolumeReader : public vtkImageAlgorithm 00051 { 00052 public: 00053 vtkTypeMacro(vtkVolumeReader,vtkImageAlgorithm); 00054 void PrintSelf(ostream& os, vtkIndent indent); 00055 00057 00058 vtkSetStringMacro(FilePrefix); 00059 vtkGetStringMacro(FilePrefix); 00061 00063 00064 vtkSetStringMacro(FilePattern); 00065 vtkGetStringMacro(FilePattern); 00067 00069 00070 vtkSetVector2Macro(ImageRange,int); 00071 vtkGetVectorMacro(ImageRange,int,2); 00073 00075 00076 vtkSetVector3Macro(DataSpacing,double); 00077 vtkGetVectorMacro(DataSpacing,double,3); 00079 00081 00082 vtkSetVector3Macro(DataOrigin,double); 00083 vtkGetVectorMacro(DataOrigin,double,3); 00085 00087 virtual vtkImageData *GetImage(int ImageNumber) = 0; 00088 00089 protected: 00090 vtkVolumeReader(); 00091 ~vtkVolumeReader(); 00092 00093 char *FilePrefix; 00094 char *FilePattern; 00095 int ImageRange[2]; 00096 double DataSpacing[3]; 00097 double DataOrigin[3]; 00098 private: 00099 vtkVolumeReader(const vtkVolumeReader&); // Not implemented. 00100 void operator=(const vtkVolumeReader&); // Not implemented. 00101 }; 00102 00103 #endif 00104 00105