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

itkDICOMImageIO2.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkDICOMImageIO2.h,v $
00005   Language:  C++
00006   Date:      $Date: 2003/02/26 20:25:53 $
00007   Version:   $1.0$
00008 
00009   Copyright (c) 2002 Insight 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 __itkDICOMImageIO2_h
00018 #define __itkDICOMImageIO2_h
00019 
00020 #include <fstream>
00021 #include "itkImageIOBase.h"
00022 
00023 #include "DICOMParser.h"
00024 #include "DICOMAppHelper.h"
00025 
00026 namespace itk
00027 {
00028 
00030 class ITK_EXPORT DICOMImageIO2 : public ImageIOBase
00031 {
00032 public:
00034   typedef DICOMImageIO2            Self;
00035   typedef ImageIOBase  Superclass;
00036   typedef SmartPointer<Self>  Pointer;
00037  
00039   itkNewMacro(Self);
00040 
00042   itkTypeMacro(DICOMImageIO2, Superclass);
00043 
00044   /*-------- This part of the interfaces deals with reading data. ----- */
00045 
00048   virtual bool CanReadFile(const char*) ;
00049   
00050 
00052   virtual void ReadImageInformation();
00053 
00055   // virtual const std::type_info& GetPixelType() const;
00056 
00058   virtual void Read(void* buffer);
00059 
00063   // virtual unsigned int GetComponentSize() const;
00064   
00065   /*-------- This part of the interfaces deals with writing data. ----- */
00066 
00069   virtual bool CanWriteFile(const char*) {return false;}
00070 
00072   virtual void WriteImageInformation() {}
00073   
00076   virtual void Write(const void*) {}
00077 
00078 
00079 protected:
00080   DICOMImageIO2();
00081   ~DICOMImageIO2();
00082   void PrintSelf(std::ostream& os, Indent indent) const;
00083 
00084   DICOMParser Parser;
00085   DICOMAppHelper AppHelper; 
00086 
00087   void ReadDataCallback(doublebyte group,
00088                         doublebyte element,
00089                         DICOMParser::VRTypes type,
00090                         unsigned char* val,
00091                         quadbyte len);
00092 
00093   unsigned char* ImageDataBuffer;
00094 
00095 private:
00096   DICOMImageIO2(const Self&); //purposely not implemented
00097   void operator=(const Self&); //purposely not implemented
00098 
00099 };
00100 
00101 } // end namespace itk
00102 
00103 #endif // __itkDICOMImageIO2_h

Generated at Fri May 21 01:14:39 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000