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/12/03 13:13:08 $
00007   Version:   $Revision: 1.13 $
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 "itkIPLCommonImageIO.h"
00039 #include "Ge5xHdr.h"
00040 
00041 namespace itk
00042 {
00051 class ITK_EXPORT GE5ImageIO : public IPLCommonImageIO
00052 {
00053 public:
00055   typedef GE5ImageIO         Self;
00056   typedef IPLCommonImageIO   Superclass;
00057   typedef SmartPointer<Self> Pointer;
00058 
00060   itkNewMacro(Self);
00061 
00063   itkTypeMacro(GE5ImageIO, Superclass);
00064 
00065   /*-------- This part of the interfaces deals with reading data. ----- */
00066 
00073   virtual bool CanReadFile(const char* FileNameToRead);
00074 
00076   // Implemented in superclass
00077   //      virtual void ReadImageInformation();
00078 
00080   void ModifyImageInformation();
00081 
00083   // Implemented in superclass
00084   //      virtual const std::type_info& GetPixelType() const;
00085 
00087   // Implemented in superclass
00088   //      virtual void Read(void* buffer);
00089 
00093   // Implemented in superclass
00094   //      virtual unsigned int GetComponentSize() const;
00095 
00096   /*-------- This part of the interfaces deals with writing data. ----- */
00097 
00104   // Implemented in superclass
00105   //      virtual bool CanWriteFile(const char * FileNameToWrite);
00106 
00108   // Implemented in superclass
00109   //      virtual void WriteImageInformation();
00110 
00113   // Implemented in superclass
00114   //      virtual void Write(const void* buffer);
00115 protected:
00116   GE5ImageIO();
00117   ~GE5ImageIO();
00119 
00120   virtual GEImageHeader *ReadHeader(const char *FileNameToRead);
00121 private:
00122   void SwapPixHdr (Ge5xPixelHeader * hdr);
00123   int CheckGE5xImages (char const * const imageFileTemplate, std::string &reason);
00124   GE5ImageIO(const Self&); //purposely not implemented
00125   void operator=(const Self&); //purposely not implemented
00126 };
00127 
00128 } // end namespace itk
00129 
00130 #endif // __itkAnalyzeImageIO_h
00131 

Generated at Wed Nov 5 21:34:24 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000