GDCM 2.2.1

- Main Page
- Related Pages
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

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();
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(); // Execute()
55
56 protected:
57 void DoIconImage(DataSet & ds, Pixmap const & image);
58 bool PrepareWrite();
59
60 SmartPointer<Pixmap> PixelData;
61 };
62
68 } // end namespace gdcm
69
70 #endif //GDCMPIXMAPWRITER_H