GDCM 2.2.0

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

- File List
- File Members

gdcmImageReader.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 GDCMIMAGEREADER_H
    00015 #define GDCMIMAGEREADER_H
    00016
    00017 #include "gdcmPixmapReader.h"
    00018 #include "gdcmImage.h"
    00019
    00020 namespace gdcm
    00021 {
    00022
    00023 class MediaStorage;
    00033 class GDCM_EXPORT ImageReader : public PixmapReader
    00034 {
    00035 public:
    00036   ImageReader();
    00037   virtual ~ImageReader();//needs to be virtual to ensure lack of memory leaks
    00038
    00042
    00043   virtual bool Read();
    00044
    00045   // Following methods are valid only after a call to 'Read'
    00046
    00048   const Image& GetImage() const;
    00049   Image& GetImage();
    00050   //void SetImage(Image const &img);
    00051
    00052 protected:
    00053   bool ReadImage(MediaStorage const &ms);
    00054   bool ReadACRNEMAImage();
    00055 };
    00056
    00057 } // end namespace gdcm
    00058
    00059 #endif //GDCMIMAGEREADER_H