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

itkBioRadImageIO.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkBioRadImageIO.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007-03-22 14:28:47 $
00007   Version:   $Revision: 1.2 $
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   Portions of this code are covered under the VTK copyright.
00013   See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
00014 
00015      This software is distributed WITHOUT ANY WARRANTY; without even 
00016      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00017      PURPOSE.  See the above copyright notices for more information.
00018 
00019 =========================================================================*/
00020 #ifndef __itkBioRadImageIO_h
00021 #define __itkBioRadImageIO_h
00022 
00023 #include "itkImageIOBase.h"
00024 #include <fstream>
00025 
00026 namespace itk
00027 {
00028 
00041 class ITK_EXPORT BioRadImageIO : public ImageIOBase
00042 {
00043 public:
00045   typedef BioRadImageIO      Self;
00046   typedef ImageIOBase        Superclass;
00047   typedef SmartPointer<Self> Pointer;
00048 
00050   itkNewMacro(Self);
00051 
00053   itkTypeMacro(BioRadImageIO, Superclass);
00054 
00055   /*-------- This part of the interface deals with reading data. ------ */
00056 
00059   virtual bool CanReadFile(const char*);
00060 
00062   virtual void ReadImageInformation();
00063 
00065   virtual void Read(void* buffer);
00066 
00067   /*-------- This part of the interfaces deals with writing data. ----- */
00068 
00071   virtual bool CanWriteFile(const char*);
00072 
00075   virtual void WriteImageInformation() {};
00076 
00079   virtual void Write(const void* buffer);
00080 
00081 protected:
00082   BioRadImageIO();
00083   ~BioRadImageIO();
00084   void PrintSelf(std::ostream& os, Indent indent) const;
00085 
00086   bool OpenBioRadFileForReading(std::ifstream& os, const char* filename);
00087   bool OpenBioRadFileForWriting(std::ofstream& os, const char* filename);
00088   void InternalReadImageInformation(std::ifstream& file);
00089 
00090 private:
00091   BioRadImageIO(const Self&); //purposely not implemented
00092   void operator=(const Self&); //purposely not implemented
00093 };
00094 
00095 } // end namespace itk
00096 
00097 #endif // __itkBioRadImageIO_h
00098 

Generated at Mon Jul 12 2010 17:53:56 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000