GDCM 3.0.24
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
20namespace gdcm
21{
22
23class ByteValue;
24class MediaStorage;
40{
41public:
43 ~PixmapReader() override; //needs to be virtual to ensure lack of memory leaks
44
48
49 bool Read() override;
50
51 // Following methods are valid only after a call to 'Read'
52
54 const Pixmap& GetPixmap() const;
56 //void SetPixamp(Pixmap const &pix);
57
58protected:
59 bool ReadImageInternal(MediaStorage const &ms, bool handlepixeldata = true);
60 virtual bool ReadImage(MediaStorage const &ms);
61 virtual bool ReadACRNEMAImage();
62
64};
65
71} // end namespace gdcm
72
73#endif //GDCMPIXMAPREADER_H
MediaStorage.
Definition gdcmMediaStorage.h:44
PixmapReader.
Definition gdcmPixmapReader.h:40
virtual bool ReadImage(MediaStorage const &ms)
~PixmapReader() override
Pixmap & GetPixmap()
const Pixmap & GetPixmap() const
Return the read image (need to call Read() first)
virtual bool ReadACRNEMAImage()
bool Read() override
bool ReadImageInternal(MediaStorage const &ms, bool handlepixeldata=true)
SmartPointer< Pixmap > PixelData
Definition gdcmPixmapReader.h:63
Pixmap class.
Definition gdcmPixmap.h:33
Reader ala DOM (Document Object Model)
Definition gdcmReader.h:54
Class for Smart Pointer.
Definition gdcmSmartPointer.h:40
#define GDCM_EXPORT
Definition gdcmWin32.h:34
Definition gdcmASN1.h:21