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: 2006/12/10 19:01:44 $
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 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   // 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();
00118   // Implemented in superclass
00119   //      void PrintSelf(std::ostream& os, Indent indent) const;
00120   virtual struct GEImageHeader *ReadHeader(const char *FileNameToRead);
00121 private:
00122   void swapPixHdr (Ge5xPixelHeader * hdr);
00123   int checkGe5xImages (char const * const imageFileTemplate);
00124   GE5ImageIO(const Self&); //purposely not implemented
00125   void operator=(const Self&); //purposely not implemented
00126 };
00128 
00129 } // end namespace itk
00130 
00131 #endif // __itkAnalyzeImageIO_h
00132 

Generated at Mon Mar 12 00:27:23 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000