GDCM  2.2.0
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;
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 
61 };
62 
68 } // end namespace gdcm
69 
70 #endif //GDCMPIXMAPWRITER_H

Generated on Wed Jun 13 2012 20:40:37 for GDCM by doxygen 1.8.1
SourceForge.net Logo