33 #include "dcmtk/config/osconfig.h"
34 #include "dcmtk/dcmimgle/diutils.h"
35 #include "dcmtk/ofstd/ofstream.h"
37 #define INCLUDE_CSTDLIB
38 #define INCLUDE_CSTDIO
39 #include "dcmtk/ofstd/ofstdinc.h"
67 const unsigned long size,
68 const unsigned long frame);
84 virtual const void *
getData()
const = 0;
98 virtual const void *
getPlane(
const int plane)
const = 0;
112 virtual int writePPM(STD_NAMESPACE ostream& stream)
const = 0;
120 virtual int writePPM(FILE *stream)
const = 0;
unsigned long getCount() const
get number of pixel per frame
DiColorOutputPixel(const DiPixel *pixel, const unsigned long size, const unsigned long frame)
constructor
virtual const void * getData() const =0
get pointer to output pixel data (abstract)
virtual size_t getItemSize() const =0
get size of one pixel / item in the pixel array (abstract)
unsigned long Count
number of pixels per frame (intermediate representation)
virtual EP_Representation getRepresentation() const =0
get integer representation (abstract)
const unsigned long FrameSize
number of pixels per frame (memory buffer size)
Abstract base class to create color output data.
virtual const void * getPlane(const int plane) const =0
get pointer to given plane of output pixel data (abstract)
virtual void * getDataPtr()=0
get pointer to outpout pixel data (abstract)
virtual int writePPM(STD_NAMESPACE ostream &stream) const =0
write pixel data of selected frame to PPM/ASCII file (abstract)
Abstract base class to handle pixel data.
virtual ~DiColorOutputPixel()
destructor