/usr/include/gdcm-2.6/gdcmPixmapWriter.h is in libgdcm2-dev 2.6.3-3ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | /*=========================================================================
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;
/**
* \brief PixmapWriter
* This class will takes two inputs:
* 1. The DICOM DataSet
* 2. The Image input
* It will override any info from the Image over the DataSet.
*
* For instance when one read in a lossy compressed image and write out as unencapsulated
* (ie implicitely lossless) then some attribute are definitely needed to mark this
* dataset as Lossy (typically 0028,2114)
*/
class GDCM_EXPORT PixmapWriter : public Writer
{
public:
PixmapWriter();
~PixmapWriter();
const Pixmap& GetPixmap() const { return *PixelData; }
Pixmap& GetPixmap() { return *PixelData; } // FIXME
void SetPixmap(Pixmap const &img);
/// Set/Get Pixmap to be written
/// It will overwrite anything Pixmap infos found in DataSet
/// (see parent class to see how to pass dataset)
virtual const Pixmap& GetImage() const { return *PixelData; }
virtual Pixmap& GetImage() { return *PixelData; } // FIXME
virtual void SetImage(Pixmap const &img);
/// Write
bool Write(); // Execute()
protected:
void DoIconImage(DataSet & ds, Pixmap const & image);
bool PrepareWrite();
bool PrepareWrite( MediaStorage const & refms );
SmartPointer<Pixmap> PixelData;
};
/**
* \example StandardizeFiles.cs
* This is a C++ example on how to use PixmapWriter
*/
} // end namespace gdcm
#endif //GDCMPIXMAPWRITER_H
|