DiPalettePixelTemplate< T1, T2, T3 > Class Template Reference

Template class to handle Palette color pixel data. More...

Inheritance diagram for DiPalettePixelTemplate< T1, T2, T3 >:

DiColorPixelTemplate< T3 > DiColorPixel DiPixelRepresentationTemplate< T3 > DiPixel List of all members.

Public Member Functions

 DiPalettePixelTemplate (const DiDocument *docu, const DiInputPixel *pixel, DiLookupTable *palette[3], EI_Status &status)
 constructor
virtual ~DiPalettePixelTemplate ()
 destructor

Private Member Functions

void convert (const T1 *pixel, DiLookupTable *palette[3])
 convert input pixel data to intermediate representation

Detailed Description

template<class T1, class T2, class T3>
class DiPalettePixelTemplate< T1, T2, T3 >

Template class to handle Palette color pixel data.

Definition at line 47 of file dipalpxt.h.


Constructor & Destructor Documentation

template<class T1, class T2, class T3>
DiPalettePixelTemplate< T1, T2, T3 >::DiPalettePixelTemplate ( const DiDocument docu,
const DiInputPixel pixel,
DiLookupTable palette[3],
EI_Status &  status 
) [inline]

constructor

Parameters:
docu pointer to DICOM document
pixel pointer to input pixel representation
palette pointer to RGB color palette
status reference to status variable

Definition at line 60 of file dipalpxt.h.

References DiPalettePixelTemplate< T1, T2, T3 >::convert(), DiInputPixel::getData(), and DiInputPixel::getPixelStart().


Member Function Documentation

template<class T1, class T2, class T3>
void DiPalettePixelTemplate< T1, T2, T3 >::convert ( const T1 *  pixel,
DiLookupTable palette[3] 
) [inline, private]

convert input pixel data to intermediate representation

Parameters:
pixel pointer to input pixel data
palette pointer to RGB color palette

Definition at line 92 of file dipalpxt.h.

References DiPixel::Count, DiColorPixelTemplate< T3 >::Data, DiColorPixelTemplate< T3 >::Init(), and DiPixel::InputCount.

Referenced by DiPalettePixelTemplate< T1, T2, T3 >::DiPalettePixelTemplate().


The documentation for this class was generated from the following file:


Generated on 6 Jan 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.5.1