00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkGE4ImageIO.h,v $ 00005 Language: C++ 00006 Date: $Date: 2006/10/23 02:15:18 $ 00007 Version: $Revision: 1.10 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 Portions of this code are covered under the VTK copyright. 00013 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details. 00014 00015 This software is distributed WITHOUT ANY WARRANTY; without even 00016 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00017 PURPOSE. See the above copyright notices for more information. 00018 00019 =========================================================================*/ 00020 00034 #ifndef __itkGE4ImageIO_h 00035 #define __itkGE4ImageIO_h 00036 00037 #include "itkIPLCommonImageIO.h" 00038 #include "itkImageIOBase.h" 00039 #include "itkGEImageHeader.h" 00040 00041 #include <fstream> 00042 00043 namespace itk 00044 { 00045 00053 class ITK_EXPORT GE4ImageIO : public IPLCommonImageIO 00054 { 00055 public: 00057 typedef GE4ImageIO Self; 00058 typedef IPLCommonImageIO Superclass; 00059 typedef SmartPointer<Self> Pointer; 00060 00062 itkNewMacro(Self); 00063 00065 itkTypeMacro(GE4ImageIO, Superclass); 00066 00067 /*-------- This part of the interfaces deals with reading data. ----- */ 00068 00075 virtual bool CanReadFile(const char* FileNameToRead) ; 00076 00078 // Implemented in superclass 00079 // virtual void ReadImageInformation(); 00080 00082 // Implemented in superclass 00083 // virtual const std::type_info& GetPixelType() const; 00084 00086 // Implemented in superclass 00087 // virtual void Read(void* buffer); 00088 00092 // Implemented in superclass 00093 // virtual unsigned int GetComponentSize() const; 00094 00095 /*-------- This part of the interfaces deals with writing data. ----- */ 00096 00103 // Implemented in superclass 00104 // virtual bool CanWriteFile(const char * FileNameToWrite); 00105 00107 // Implemented in superclass 00108 // virtual void WriteImageInformation(); 00109 00112 // Implemented in superclass 00113 // virtual void Write(const void* buffer); 00114 protected: 00115 GE4ImageIO(); 00116 ~GE4ImageIO(); 00117 // Implemented in Superclass 00118 // void PrintSelf(std::ostream& os, Indent indent) const; 00119 virtual struct GEImageHeader *ReadHeader(const char *FileNameToRead); 00120 private: 00121 GE4ImageIO(const Self&); //purposely not implemented 00122 float MvtSunf (int numb); 00124 00125 void operator=(const Self&); //purposely not implemented 00126 }; 00127 00128 } // end namespace itk 00129 00130 #endif // __itkGE4ImageIO_h 00131