GDCM 3.2.1

gdcmPixmapWriter.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 GDCMPIXMAPWRITER_H
15#define GDCMPIXMAPWRITER_H
16
17#include "gdcmWriter.h"
18#include "gdcmPixmap.h"
19
20 namespace gdcm
21{
22
23 class StreamImageWriter;
24 class Pixmap;
36 class GDCM_EXPORT PixmapWriter : public Writer
37{
38 public:
39 PixmapWriter();
40 ~PixmapWriter() override;
41
42 const Pixmap& GetPixmap() const { return *PixelData; }
43 Pixmap& GetPixmap() { return *PixelData; } // FIXME
44 void SetPixmap(Pixmap const &img);
45
49 virtual const Pixmap& GetImage() const { return *PixelData; }
50 virtual Pixmap& GetImage() { return *PixelData; } // FIXME
51 virtual void SetImage(Pixmap const &img);
52
54 bool Write() override; // Execute()
55
56 protected:
57 void DoIconImage(DataSet & ds, Pixmap const & image);
58 bool PrepareWrite( MediaStorage const & refms );
59
60 SmartPointer<Pixmap> PixelData;
61};
62
67
68} // end namespace gdcm
69
70#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