GDCM 2.2.0

- Main Page
- Related Pages
- Namespaces
- Classes
- Files
- Directories
- Examples

- File List
- File Members

gdcmPixmapReader.h
Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program: GDCM (Grassroots DICOM). A DICOM library
    00004
    00005   Copyright (c) 2006-2011 Mathieu Malaterre
    00006   All rights reserved.
    00007   See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
    00008
    00009      This software is distributed WITHOUT ANY WARRANTY; without even
    00010      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00011      PURPOSE.  See the above copyright notice for more information.
    00012
    00013 =========================================================================*/
    00014 #ifndef GDCMPIXMAPREADER_H
    00015 #define GDCMPIXMAPREADER_H
    00016
    00017 #include "gdcmReader.h"
    00018 #include "gdcmPixmap.h"
    00019
    00020 namespace gdcm
    00021 {
    00022
    00023 class ByteValue;
    00024 class MediaStorage;
    00039 class GDCM_EXPORT PixmapReader : public Reader
    00040 {
    00041 public:
    00042   PixmapReader();
    00043   virtual ~PixmapReader(); //needs to be virtual to ensure lack of memory leaks
    00044
    00048
    00049   virtual bool Read();
    00050
    00051   // Following methods are valid only after a call to 'Read'
    00052
    00054   const Pixmap& GetPixmap() const;
    00055   Pixmap& GetPixmap();
    00056   //void SetPixamp(Pixmap const &pix);
    00057
    00058 protected:
    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