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: 2007-03-22 14:28:51 $
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 #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 
00039 class ITK_EXPORT NrrdImageIO : public ImageIOBase
00040 {
00041 public:
00043   typedef NrrdImageIO        Self;
00044   typedef ImageIOBase        Superclass;
00045   typedef SmartPointer<Self> Pointer;
00046 
00048   itkNewMacro(Self);
00049 
00051   itkTypeMacro(NrrdImageIO, ImageIOBase);
00052 
00058   virtual bool SupportsDimension(unsigned long );
00059 
00062   virtual bool CanReadFile(const char*);
00063 
00065   virtual void ReadImageInformation();
00066 
00068   virtual void Read(void* buffer);
00069 
00072   virtual bool CanWriteFile(const char*);
00073 
00075   virtual void WriteImageInformation();
00076 
00079   virtual void Write(const void* buffer);
00080 
00081 protected:
00082   NrrdImageIO() {}
00083   ~NrrdImageIO() {}
00084   void PrintSelf(std::ostream& os, Indent indent) const;
00085 
00088   int ITKToNrrdComponentType( const ImageIOBase::IOComponentType ) const;
00089   ImageIOBase::IOComponentType NrrdToITKComponentType( const int ) const;
00091 
00092 private:
00093   NrrdImageIO(const Self&); //purposely not implemented
00094   void operator=(const Self&); //purposely not implemented
00095 
00096 };
00097 
00098 } // end namespace itk
00099 
00100 #endif // __itkNrrdImageIO_h
00101 

Generated at Mon Jul 12 2010 19:20:02 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000