Inheritance diagram for DiColorOutputPixelTemplate< T1, T2 >:
Public Member Functions | |
| DiColorOutputPixelTemplate (void *buffer, const DiColorPixel *pixel, const unsigned long count, const unsigned long frame, const int bits1, const int bits2, const int planar, const int inverse) | |
| constructor | |
| DiColorOutputPixelTemplate (void *buffer, const DiPixel *pixel, const unsigned long count, const unsigned long frame, const unsigned long, const int planar) | |
| constructor | |
| virtual | ~DiColorOutputPixelTemplate () |
| destructor | |
| EP_Representation | getRepresentation () const |
| get integer representation | |
| size_t | getItemSize () const |
| get size of one pixel / item in the pixel array | |
| const void * | getData () const |
| get pointer to output pixel data | |
| virtual void * | getDataPtr () |
| get pointer to output pixel data | |
| const void * | getPlane (const int plane) const |
| get pointer to given plane of output pixel data | |
| int | writePPM (STD_NAMESPACE ostream &stream) const |
| write pixel data of selected frame to PPM/ASCII file | |
| int | writePPM (FILE *stream) const |
| write pixel data of selected frame to PPM/ASCII file | |
Protected Attributes | |
| T2 * | Data |
| pointer to the storage area where the output data should be stored | |
Private Member Functions | |
| void | convert (const T1 *pixel[3], const unsigned long start, const int bits1, const int bits2, const int planar, const int inverse) |
| convert intermediate pixel data to output format (render pixel data) | |
| DiColorOutputPixelTemplate (const DiColorOutputPixelTemplate< T1, T2 > &) | |
|
DiColorOutputPixelTemplate< T1, T2 > & | operator= (const DiColorOutputPixelTemplate< T1, T2 > &) |
Private Attributes | |
| int | DeleteData |
| flag indicating whether the output data buffer should be deleted in the destructor | |
| int | isPlanar |
| flag indicating whether pixel data is stored color-by-pixel or color-by-plane | |
Definition at line 49 of file dicoopxt.h.
| DiColorOutputPixelTemplate< T1, T2 >::DiColorOutputPixelTemplate | ( | void * | buffer, | |
| const DiColorPixel * | pixel, | |||
| const unsigned long | count, | |||
| const unsigned long | frame, | |||
| const int | bits1, | |||
| const int | bits2, | |||
| const int | planar, | |||
| const int | inverse | |||
| ) | [inline] |
constructor
| buffer | storage area for the output pixel data (optional, maybe NULL) | |
| pixel | pointer to intermediate pixel representation (color) | |
| count | number of pixels per frame | |
| frame | frame to be rendered | |
| bits1 | bit depth of input data (intermediate) | |
| bits2 | bit depth of output data | |
| planar | flag indicating whether data shall be stored color-by-pixel or color-by-plane | |
| inverse | invert pixel data if true (0/0/0 = white) |
Definition at line 67 of file dicoopxt.h.
References DiColorOutputPixelTemplate< T1, T2 >::convert(), DiColorOutputPixel::Count, DiColorOutputPixelTemplate< T1, T2 >::Data, DiColorOutputPixel::FrameSize, and DiPixel::getData().
| DiColorOutputPixelTemplate< T1, T2 >::DiColorOutputPixelTemplate | ( | void * | buffer, | |
| const DiPixel * | pixel, | |||
| const unsigned long | count, | |||
| const unsigned long | frame, | |||
| const unsigned | long, | |||
| const int | planar | |||
| ) | [inline] |
constructor
| buffer | storage area for the output pixel data (optional, maybe NULL) | |
| pixel | pointer to intermediate pixel representation | |
| count | number of pixels per frame | |
| frame | frame to be rendered (#)param frames (total number of frames present in intermediate representation) | |
| planar | flag indicating whether data shall be stored color-by-pixel or color-by-plane |
Definition at line 96 of file dicoopxt.h.
References DiColorOutputPixel::Count, DiColorOutputPixelTemplate< T1, T2 >::Data, and DiColorOutputPixel::FrameSize.
| EP_Representation DiColorOutputPixelTemplate< T1, T2 >::getRepresentation | ( | ) | const [inline, virtual] |
get integer representation
Implements DiColorOutputPixel.
Definition at line 123 of file dicoopxt.h.
References DiPixelRepresentationTemplate< T >::getRepresentation().
| size_t DiColorOutputPixelTemplate< T1, T2 >::getItemSize | ( | ) | const [inline, virtual] |
get size of one pixel / item in the pixel array
Implements DiColorOutputPixel.
Definition at line 132 of file dicoopxt.h.
| const void* DiColorOutputPixelTemplate< T1, T2 >::getData | ( | ) | const [inline, virtual] |
get pointer to output pixel data
Implements DiColorOutputPixel.
Definition at line 141 of file dicoopxt.h.
References DiColorOutputPixelTemplate< T1, T2 >::Data.
| virtual void* DiColorOutputPixelTemplate< T1, T2 >::getDataPtr | ( | ) | [inline, virtual] |
get pointer to output pixel data
Implements DiColorOutputPixel.
Definition at line 150 of file dicoopxt.h.
References DiColorOutputPixelTemplate< T1, T2 >::Data.
| const void* DiColorOutputPixelTemplate< T1, T2 >::getPlane | ( | const int | plane | ) | const [inline, virtual] |
get pointer to given plane of output pixel data
| plane | number of the plane to be retrieved (0..2) |
Implements DiColorOutputPixel.
Definition at line 161 of file dicoopxt.h.
References DiColorOutputPixelTemplate< T1, T2 >::Data, DiColorOutputPixel::FrameSize, and DiColorOutputPixelTemplate< T1, T2 >::isPlanar.
| int DiColorOutputPixelTemplate< T1, T2 >::writePPM | ( | STD_NAMESPACE ostream & | stream | ) | const [inline, virtual] |
write pixel data of selected frame to PPM/ASCII file
| stream | open C++ output stream |
Implements DiColorOutputPixel.
Definition at line 185 of file dicoopxt.h.
References DiColorOutputPixelTemplate< T1, T2 >::Data, and DiColorOutputPixel::FrameSize.
| int DiColorOutputPixelTemplate< T1, T2 >::writePPM | ( | FILE * | stream | ) | const [inline, virtual] |
write pixel data of selected frame to PPM/ASCII file
| stream | open C file stream |
Implements DiColorOutputPixel.
Definition at line 206 of file dicoopxt.h.
References DiColorOutputPixelTemplate< T1, T2 >::Data, and DiColorOutputPixel::FrameSize.
| void DiColorOutputPixelTemplate< T1, T2 >::convert | ( | const T1 * | pixel[3], | |
| const unsigned long | start, | |||
| const int | bits1, | |||
| const int | bits2, | |||
| const int | planar, | |||
| const int | inverse | |||
| ) | [inline, private] |
convert intermediate pixel data to output format (render pixel data)
| pixel | pointer to intermediate pixel representation (color) | |
| start | offset to first pixel to be converted | |
| bits1 | bit depth of input data (intermediate) | |
| bits2 | bit depth of output data | |
| planar | flag indicating whether data shall be stored color-by-pixel or color-by-plane | |
| inverse | invert pixel data if true (0/0/0 = white) |
Definition at line 239 of file dicoopxt.h.
References DiColorOutputPixel::Count, DiColorOutputPixelTemplate< T1, T2 >::Data, DiColorOutputPixel::FrameSize, and DicomImageClass::maxval().
Referenced by DiColorOutputPixelTemplate< T1, T2 >::DiColorOutputPixelTemplate().