GDCM  2.4.5
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
Class to represent a Data Set (which contains Data Elements) A Data Set represents an instance of a r...
Definition: gdcmDataSet.h:55
Pixmap class A bitmap based image. Used as parent for both IconImage and the main Pixel Data Image It...
Definition: gdcmPixmap.h:32
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
virtual Pixmap & GetImage()
Definition: gdcmPixmapWriter.h:50
Class for Smart Pointer.
Definition: gdcmObject.h:26
PixmapWriter This class will takes two inputs:
Definition: gdcmPixmapWriter.h:36
Writer ala DOM (Document Object Model) This class is a non-validating writer, it will only performs w...
Definition: gdcmWriter.h:48
Definition: gdcmASN1.h:20
virtual const Pixmap & GetImage() const
Definition: gdcmPixmapWriter.h:49
Pixmap & GetPixmap()
Definition: gdcmPixmapWriter.h:43
SmartPointer< Pixmap > PixelData
Definition: gdcmPixmapWriter.h:60
const Pixmap & GetPixmap() const
Definition: gdcmPixmapWriter.h:42

Generated on Fri Sep 25 2015 17:58:23 for GDCM by doxygen 1.8.9.1
SourceForge.net Logo