# 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   virtual ~PixmapReader(); //needs to be virtual to ensure lack of memory leaks
    00043
    00047
    00048   virtual 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   virtual bool ReadImage(MediaStorage const &ms);
    00059   virtual bool ReadACRNEMAImage();
    00060
    00061   SmartPointer<Pixmap> PixelData;
    00062 };
    00063
    00069 } // end namespace gdcm
    00070
    00071 #endif //GDCMPIXMAPREADER_H