gdcmPixmapReader.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMPIXMAPREADER_H
#define GDCMPIXMAPREADER_H
#include "gdcmReader.h"
#include "gdcmPixmap.h"
namespace gdcm
{
class ByteValue;
class MediaStorage;
class GDCM_EXPORT PixmapReader : public Reader
{
public:
PixmapReader();
~PixmapReader() override; //needs to be virtual to ensure lack of memory leaks
bool Read() override;
// Following methods are valid only after a call to 'Read'
const Pixmap& GetPixmap() const;
Pixmap& GetPixmap();
//void SetPixamp(Pixmap const &pix);
protected:
bool ReadImageInternal(MediaStorage const &ms, bool handlepixeldata = true);
virtual bool ReadImage(MediaStorage const &ms);
virtual bool ReadACRNEMAImage();
SmartPointer<Pixmap> PixelData;
};
} // end namespace gdcm
#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