gdcmPixmapWriter.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 GDCMPIXMAPWRITER_H
#define GDCMPIXMAPWRITER_H
#include "gdcmWriter.h"
#include "gdcmPixmap.h"
namespace gdcm
{
class StreamImageWriter;
class Pixmap;
class GDCM_EXPORT PixmapWriter : public Writer
{
public:
PixmapWriter();
~PixmapWriter() override;
const Pixmap& GetPixmap() const { return *PixelData; }
Pixmap& GetPixmap() { return *PixelData; } // FIXME
void SetPixmap(Pixmap const &img);
virtual const Pixmap& GetImage() const { return *PixelData; }
virtual Pixmap& GetImage() { return *PixelData; } // FIXME
virtual void SetImage(Pixmap const &img);
bool Write() override; // Execute()
protected:
void DoIconImage(DataSet & ds, Pixmap const & image);
bool PrepareWrite( MediaStorage const & refms );
SmartPointer<Pixmap> PixelData;
};
} // end namespace gdcm
#endif //GDCMPIXMAPWRITER_H
gdcm::DataSet
Class to represent a Data Set (which contains Data Elements).
Definition gdcmDataSet.h:56
gdcm::MediaStorage
MediaStorage.
Definition gdcmMediaStorage.h:44
gdcm::PixmapWriter::Write
bool Write() override
Write.
gdcm::PixmapWriter::DoIconImage
void DoIconImage(DataSet &ds, Pixmap const &image)
gdcm::PixmapWriter::SetPixmap
void SetPixmap(Pixmap const &img)
gdcm::PixmapWriter::SetImage
virtual void SetImage(Pixmap const &img)
gdcm::PixmapWriter::GetPixmap
const Pixmap & GetPixmap() const
Definition gdcmPixmapWriter.h:42
gdcm::PixmapWriter::PixelData
SmartPointer< Pixmap > PixelData
Definition gdcmPixmapWriter.h:60
gdcm::PixmapWriter::GetImage
virtual Pixmap & GetImage()
Definition gdcmPixmapWriter.h:50
gdcm::PixmapWriter::GetPixmap
Pixmap & GetPixmap()
Definition gdcmPixmapWriter.h:43
gdcm::PixmapWriter::GetImage
virtual const Pixmap & GetImage() const
Definition gdcmPixmapWriter.h:49
gdcm::PixmapWriter::PrepareWrite
bool PrepareWrite(MediaStorage const &refms)
gdcm::PixmapWriter::PixmapWriter
PixmapWriter()
gdcm::PixmapWriter::~PixmapWriter
~PixmapWriter() override
gdcm::Pixmap
Pixmap class.
Definition gdcmPixmap.h:33
gdcm::SmartPointer
Class for Smart Pointer.
Definition gdcmSmartPointer.h:40
gdcm::StreamImageWriter
StreamImageReader.
Definition gdcmStreamImageWriter.h:43
gdcm::Writer::Writer
Writer()
gdcmPixmap.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcmWriter.h
gdcm
Definition gdcmASN1.h:21