| DCMTK Version 3.6.9
    OFFIS DICOM Toolkit | 
Template class to create color output data. More...
 Inheritance diagram for DiColorOutputPixelTemplate< T1, T2 >:
 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 | |
|  Public Member Functions inherited from DiColorOutputPixel | |
| DiColorOutputPixel (const DiPixel *pixel, const unsigned long size, const unsigned long frame) | |
| constructor | |
| virtual | ~DiColorOutputPixel () | 
| destructor | |
| unsigned long | getCount () const | 
| get number of pixel per frame | |
|  Public Member Functions inherited from DiPixelRepresentationTemplate< T2 > | |
| DiPixelRepresentationTemplate () | |
| default constructor | |
| virtual | ~DiPixelRepresentationTemplate () | 
| destructor | |
| int | isSigned () const | 
| check whether template type T is signed or not | |
| Protected Attributes | |
| T2 * | Data | 
| pointer to the storage area where the output data should be stored | |
|  Protected Attributes inherited from DiColorOutputPixel | |
| unsigned long | Count | 
| number of pixels per frame (intermediate representation) | |
| const unsigned long | FrameSize | 
| number of pixels per frame (memory buffer size) | |
| 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) | |
Template class to create color output data.
| 
 | 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) | 
References DiColorOutputPixel::DiColorOutputPixel(), convert(), DiColorOutputPixel::Count, Data, DeleteData, DiColorOutputPixel::FrameSize, DiPixel::getData(), and isPlanar.
| 
 | 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 | 
References DiColorOutputPixel::DiColorOutputPixel(), DiColorOutputPixel::Count, Data, DeleteData, DiColorOutputPixel::FrameSize, and isPlanar.
| 
 | inlineprivate | 
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) | 
References DiColorOutputPixel::Count, Data, DiColorOutputPixel::FrameSize, DicomImageClass::maxval(), and OFBitmanipTemplate< T >::zeroMem().
Referenced by DiColorOutputPixelTemplate().
| 
 | inlinevirtual | 
get pointer to output pixel data
Implements DiColorOutputPixel.
References Data.
| 
 | inlinevirtual | 
get pointer to output pixel data
Implements DiColorOutputPixel.
References Data.
| 
 | inlinevirtual | 
| 
 | inlinevirtual | 
get pointer to given plane of output pixel data
| plane | number of the plane to be retrieved (0..2) | 
Implements DiColorOutputPixel.
References Data, DiColorOutputPixel::FrameSize, and isPlanar.
| 
 | inlinevirtual | 
get integer representation
Implements DiColorOutputPixel.
References DiPixelRepresentationTemplate< T >::getRepresentation().
| 
 | inlinevirtual | 
write pixel data of selected frame to PPM/ASCII file
| stream | open C file stream | 
Implements DiColorOutputPixel.
References Data, and DiColorOutputPixel::FrameSize.
| 
 | inlinevirtual | 
write pixel data of selected frame to PPM/ASCII file
| stream | open C++ output stream | 
Implements DiColorOutputPixel.
References Data, and DiColorOutputPixel::FrameSize.