Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkGE5ImageIO.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003 Program:   Insight Segmentation & Registration Toolkit
00004 Module:    $RCSfile: itkGE5ImageIO.h,v $
00005 Language:  C++
00006 Date:      $Date: 2007/03/29 18:39:27 $
00007 Version:   $Revision: 1.12 $
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 This software is distributed WITHOUT ANY WARRANTY; without even
00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00014 PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 
00031 #ifndef __itkGE5ImageIO_h
00032 #define __itkGE5ImageIO_h
00033 
00034 #ifdef _MSC_VER
00035 #pragma warning ( disable : 4786 )
00036 #endif
00037 
00038 #include <fstream>
00039 #include "itkImageIOBase.h"
00040 #include "itkIPLCommonImageIO.h"
00041 #include "itkGEImageHeader.h"
00042 #include "Ge5xHdr.h"
00043 
00044 namespace itk
00045 {
00054 class ITK_EXPORT GE5ImageIO : public IPLCommonImageIO
00055 {
00056 public:
00058   typedef GE5ImageIO         Self;
00059   typedef IPLCommonImageIO   Superclass;
00060   typedef SmartPointer<Self> Pointer;
00061 
00063   itkNewMacro(Self);
00064 
00066   itkTypeMacro(GE5ImageIO, Superclass);
00067 
00068   /*-------- This part of the interfaces deals with reading data. ----- */
00069 
00076   virtual bool CanReadFile(const char* FileNameToRead);
00077 
00079   // Implemented in superclass
00080   //      virtual void ReadImageInformation();
00081 
00083   void ModifyImageInformation();
00084 
00086   // Implemented in superclass
00087   //      virtual const std::type_info& GetPixelType() const;
00088 
00090   // Implemented in superclass
00091   //      virtual void Read(void* buffer);
00092 
00096   // Implemented in superclass
00097   //      virtual unsigned int GetComponentSize() const;
00098 
00099   /*-------- This part of the interfaces deals with writing data. ----- */
00100 
00107   // Implemented in superclass
00108   //      virtual bool CanWriteFile(const char * FileNameToWrite);
00109 
00111   // Implemented in superclass
00112   //      virtual void WriteImageInformation();
00113 
00116   // Implemented in superclass
00117   //      virtual void Write(const void* buffer);
00118 protected:
00119   GE5ImageIO();
00120   ~GE5ImageIO();
00122 
00123   virtual struct GEImageHeader *ReadHeader(const char *FileNameToRead);
00124 private:
00125   void SwapPixHdr (Ge5xPixelHeader * hdr);
00126   int CheckGE5xImages (char const * const imageFileTemplate, std::string &reason);
00127   GE5ImageIO(const Self&); //purposely not implemented
00128   void operator=(const Self&); //purposely not implemented
00129 };
00130 
00131 } // end namespace itk
00132 
00133 #endif // __itkAnalyzeImageIO_h
00134 

Generated at Sun Sep 23 12:39:45 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000