GDCM 2.2.1

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

- File List
- File Members

gdcmPixmapReader.h
Go to the documentation of this file.
1 /*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13 =========================================================================*/
14 #ifndef GDCMPIXMAPREADER_H
15 #define GDCMPIXMAPREADER_H
16
17 #include "gdcmReader.h"
18 #include "gdcmPixmap.h"
19
20 namespace gdcm
21 {
22
23 class ByteValue;
24 class MediaStorage;
39 class GDCM_EXPORT PixmapReader : public Reader
40 {
41 public:
42 PixmapReader();
43 virtual ~PixmapReader(); //needs to be virtual to ensure lack of memory leaks
44
48
49 virtual bool Read();
50
51 // Following methods are valid only after a call to 'Read'
52
54 const Pixmap& GetPixmap() const;
55 Pixmap& GetPixmap();
56 //void SetPixamp(Pixmap const &pix);
57
58 protected:
59 virtual bool ReadImage(MediaStorage const &ms);
60 virtual bool ReadACRNEMAImage();
61
62 SmartPointer<Pixmap> PixelData;
63 };
64
70 } // end namespace gdcm
71
72 #endif //GDCMPIXMAPREADER_H