GDCM: gdcmPixmapReader.h Source File

GDCM 3.0.26

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;
39 class GDCM_EXPORT PixmapReader : public Reader
40{
41public:
42 PixmapReader();
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;
55 Pixmap& GetPixmap();
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
63 SmartPointer<Pixmap> PixelData;
64};
65
70
71} // end namespace gdcm
72
73#endif //GDCMPIXMAPREADER_H
gdcm::ByteValue
Class to represent binary value (array of bytes)
Definition gdcmByteValue.h:35
gdcm::MediaStorage
MediaStorage.
Definition gdcmMediaStorage.h:44
gdcm::PixmapReader::ReadImage
virtual bool ReadImage(MediaStorage const &ms)
gdcm::PixmapReader::~PixmapReader
~PixmapReader() override
gdcm::PixmapReader::GetPixmap
Pixmap & GetPixmap()
gdcm::PixmapReader::GetPixmap
const Pixmap & GetPixmap() const
Return the read image (need to call Read() first)
gdcm::PixmapReader::ReadACRNEMAImage
virtual bool ReadACRNEMAImage()
gdcm::PixmapReader::Read
bool Read() override
gdcm::PixmapReader::ReadImageInternal
bool ReadImageInternal(MediaStorage const &ms, bool handlepixeldata=true)
gdcm::PixmapReader::PixmapReader
PixmapReader()
gdcm::PixmapReader::PixelData
SmartPointer< Pixmap > PixelData
Definition gdcmPixmapReader.h:63
gdcm::Pixmap
Pixmap class.
Definition gdcmPixmap.h:33
gdcm::Reader::Reader
Reader()
gdcm::SmartPointer
Class for Smart Pointer.
Definition gdcmSmartPointer.h:40
gdcmPixmap.h
gdcmReader.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21