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: 2003/09/10 14:29:31 $ 00007 Version: $Revision: 1.3 $ 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 const std::type_info& GetPixelType() const; 00087 00089 virtual void Read(void* buffer); 00090 00094 virtual unsigned int GetComponentSize() const; 00095 00096 /*-------- This part of the interfaces deals with writing data. ----- */ 00097 00104 virtual bool CanWriteFile(const char * FileNameToWrite); 00105 00107 virtual void WriteImageInformation(); 00108 00111 virtual void Write(const void* buffer); 00112 00113 00114 protected: 00115 Brains2MaskImageIO(); 00116 ~Brains2MaskImageIO(); 00117 void PrintSelf(std::ostream& os, Indent indent) const; 00118 private: 00119 Brains2MaskImageIO(const Self&); //purposely not implemented 00120 void operator=(const Self&); //purposely not implemented 00121 itk::OctreeNodeBranch * readOctree ( 00122 std::ifstream & octreestream, 00123 const ImageIOBase::ByteOrder machineByteOrder, 00124 const ImageIOBase::ByteOrder fileByteOrder); 00125 ImageIOBase::ByteOrder m_MachineByteOrder; 00126 00127 itk::Brains2IPLHeaderInfo m_IPLHeaderInfo; 00128 OctreeBase *m_Octree; 00129 }; 00130 00131 } // end namespace itk 00132 00133 #endif // __itkBrains2MaskImageIO_h

Generated at Sat Mar 31 02:14:58 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000