gdcmPixmapReader.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program: GDCM (Grassroots DICOM). A DICOM library
00004   Module:  $URL$
00005 
00006   Copyright (c) 2006-2010 Mathieu Malaterre
00007   All rights reserved.
00008   See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 #ifndef GDCMPIXMAPREADER_H
00016 #define GDCMPIXMAPREADER_H
00017 
00018 #include "gdcmReader.h"
00019 #include "gdcmPixmap.h"
00020 
00021 namespace gdcm
00022 {
00023 
00024 class ByteValue;
00025 class MediaStorage;
00038 class GDCM_EXPORT PixmapReader : public Reader
00039 {
00040 public:
00041   PixmapReader();
00042   ~PixmapReader();
00043 
00047   
00048   bool Read();
00049 
00050   // Following methods are valid only after a call to 'Read'
00051 
00053   const Pixmap& GetPixmap() const;
00054   Pixmap& GetPixmap();
00055   //void SetPixamp(Pixmap const &pix);
00056 
00057 protected:
00058   const ByteValue* GetPointerFromElement(Tag const &tag) const;
00059   virtual bool ReadImage(MediaStorage const &ms);
00060   virtual bool ReadACRNEMAImage();
00061   
00062   SmartPointer<Pixmap> PixelData;
00063 };
00064 
00070 } // end namespace gdcm
00071 
00072 #endif //GDCMPIXMAPREADER_H
00073 

Generated on Sat Dec 4 2010 08:58:45 for GDCM by doxygen 1.7.2
SourceForge.net Logo