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

itkMetaImageIO.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMetaImageIO.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/09/28 15:41:55 $
00007   Version:   $Revision: 1.28 $
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 #ifndef __itkMetaImageIO_h
00018 #define __itkMetaImageIO_h
00019 
00020 #ifdef _MSC_VER
00021 #pragma warning ( disable : 4786 )
00022 #endif
00023 
00024 #include <fstream>
00025 #include "itkImageIOBase.h"
00026 #include "metaObject.h"
00027 #include "metaImage.h"
00028 
00029 namespace itk
00030 {
00031 
00038 class ITK_EXPORT MetaImageIO : public ImageIOBase
00039 {
00040 public:
00042   typedef MetaImageIO            Self;
00043   typedef ImageIOBase  Superclass;
00044   typedef SmartPointer<Self>  Pointer;
00045   
00047   itkNewMacro(Self);
00048 
00050   itkTypeMacro(MetaImageIO, Superclass);
00051 
00057   virtual bool SupportsDimension(unsigned long )
00058   {return true;}
00059 
00060   /*-------- This part of the interfaces deals with reading data. ----- */
00061 
00064   virtual bool CanReadFile(const char*) ;
00065 
00067   virtual void ReadImageInformation();
00068   
00070   virtual void Read(void* buffer);
00071 
00072   MetaImage * GetMetaImagePointer(void);
00073   
00074   /*-------- This part of the interfaces deals with writing data. ----- */
00075 
00078   virtual bool CanWriteFile(const char*);
00079 
00081   virtual void WriteImageInformation();
00082   
00085   virtual void Write(const void* buffer);
00086 
00090   virtual void SetDataFileName( const char * filename );
00091 
00092 protected:
00093   MetaImageIO();
00094   ~MetaImageIO();
00095   void PrintSelf(std::ostream& os, Indent indent) const;
00096   
00097 private:
00098   
00099   MetaImage m_MetaImage;
00100 
00101   MetaImageIO(const Self&); //purposely not implemented
00102   void operator=(const Self&); //purposely not implemented
00103   
00104 };
00105 
00106 } // end namespace itk
00107 
00108 #endif // __itkMetaImageIO_h

Generated at Wed May 24 23:40:32 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000