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

itkNrrdImageIO.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkNrrdImageIO.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/07/04 16:03:58 $
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 #ifndef __itkNrrdImageIO_h
00018 #define __itkNrrdImageIO_h
00019 
00020 #ifdef _MSC_VER
00021 #pragma warning ( disable : 4786 )
00022 #endif
00023 
00024 #include "itkImageIOBase.h"
00025 #include <fstream>
00026 #include "NrrdIO/NrrdIO.h"
00027 
00028 namespace itk
00029 {
00030 
00037 class ITK_EXPORT NrrdImageIO : public ImageIOBase
00038 {
00039 public:
00041   typedef NrrdImageIO            Self;
00042   typedef ImageIOBase  Superclass;
00043   typedef SmartPointer<Self>  Pointer;
00044 
00046   itkNewMacro(Self);
00047 
00049   itkTypeMacro(NrrdImageIO, ImageIOBase);
00050 
00056   virtual bool SupportsDimension(unsigned long );
00057 
00060   virtual bool CanReadFile(const char*);
00061 
00063   virtual void ReadImageInformation();
00064 
00066   virtual void Read(void* buffer);
00067 
00070   virtual bool CanWriteFile(const char*);
00071 
00073   virtual void WriteImageInformation();
00074 
00077   virtual void Write(const void* buffer);
00078 
00079 protected:
00080   NrrdImageIO() {}
00081   ~NrrdImageIO() {}
00082   void PrintSelf(std::ostream& os, Indent indent) const;
00083 
00086   int ITKToNrrdComponentType( const ImageIOBase::IOComponentType ) const;
00087   ImageIOBase::IOComponentType NrrdToITKComponentType( const int ) const;
00088 
00089 private:
00090   NrrdImageIO(const Self&); //purposely not implemented
00091   void operator=(const Self&); //purposely not implemented
00092 
00093 };
00094 
00095 } // end namespace itk
00096 
00097 #endif // __itkNrrdImageIO_h

Generated at Tue Aug 30 16:45:40 2005 for ITK by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2000