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

itkBrains2MaskImageIO.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkBrains2MaskImageIO.h,v $
00005   Language:  C++
00006   Date:      $Date: 2004/05/14 15:12:37 $
00007   Version:   $Revision: 1.5 $
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 
00040 #ifndef __itkBrains2MaskImageIO_h
00041 #define __itkBrains2MaskImageIO_h
00042 
00043 #ifdef WIN32
00044 #pragma warning(disable:4786)
00045 #endif
00046 
00047 #include <fstream>
00048 #include "itkImageIOBase.h"
00049 #include "itkBrains2IPLHeaderInfo.h"
00050 #include "itkOctree.h"
00051 
00052 namespace itk
00053 {
00058 class ITK_EXPORT Brains2MaskImageIO : public ImageIOBase
00059 {
00060 public:
00062   typedef Brains2MaskImageIO            Self;
00063   typedef ImageIOBase  Superclass;
00064   typedef SmartPointer<Self>  Pointer;
00065 
00067   itkNewMacro(Self);
00068 
00070   itkTypeMacro(Brains2MaskImageIO, Superclass);
00071 
00072   /*-------- This part of the interfaces deals with reading data. ----- */
00073 
00080   virtual bool CanReadFile(const char* FileNameToRead) ;
00081 
00083   virtual void ReadImageInformation();
00084 
00086   virtual void Read(void* buffer);
00087 
00088   /*-------- This part of the interfaces deals with writing data. ----- */
00089 
00096   virtual bool CanWriteFile(const char * FileNameToWrite);
00097 
00099   virtual void WriteImageInformation();
00100 
00103   virtual void Write(const void* buffer);
00104 
00105 
00106 protected:
00107   Brains2MaskImageIO();
00108   ~Brains2MaskImageIO();
00109   void PrintSelf(std::ostream& os, Indent indent) const;
00110 private:
00111   Brains2MaskImageIO(const Self&); //purposely not implemented
00112   void operator=(const Self&); //purposely not implemented
00113   itk::OctreeNodeBranch *  readOctree (
00114     std::ifstream & octreestream,
00115     const ImageIOBase::ByteOrder machineByteOrder,
00116     const ImageIOBase::ByteOrder fileByteOrder);
00117   ImageIOBase::ByteOrder m_MachineByteOrder;
00118 
00119   itk::Brains2IPLHeaderInfo m_IPLHeaderInfo;
00120   OctreeBase *m_Octree;
00121 };
00122 
00123 } // end namespace itk
00124 
00125 #endif // __itkBrains2MaskImageIO_h

Generated at Tue Mar 29 23:47:41 2005 for ITK by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2000