MeVisLabToolboxReference
|
The LUTIterator class template is used by a LUTFunction object for rendering into a LUTData object. More...
#include <mlLUTIterator.h>
Public Member Functions | |
LUTIterator (LUTVisualType visualType, LUTData< T > &lutData) | |
Constructor for addressing a 1D-LUT visualType is the type of the LUT being rendered, lutData is the object storing the rendered LUT. | |
LUTIterator (LUTVisualType visualType, LUTData< T > &lutData, int row) | |
Constructor for addressing a single row in a 2D-LUT visualType is the type of the LUT being rendered, lutData is the object storing the rendered LUT, row identifies the LUT row. | |
LUTIterator (LUTVisualType visualType, LUTData< T > &lutData, int row, int layer) | |
Constructor for addressing a single row in a 3D-LUT visualType is the type of the LUT being rendered, lutData is the object storing the rendered LUT, row and layer identify the LUT row. | |
virtual | ~LUTIterator () |
Destructor. | |
void | operator++ (void) |
Increment operator. | |
Public Attributes | |
T ** | chn |
Channel pointer array. | |
Protected Types | |
typedef void(LUTIterator< T >::* | IncrementFnc )(void) |
Increment method pointer type definition. | |
Protected Member Functions | |
void | init (LUTData< T > &lutData) |
Initialize. | |
void | clear (void) |
Clean up. | |
void | inc1 (void) |
! Increment methods | |
void | inc2 (void) |
void | inc3 (void) |
void | inc4 (void) |
void | inc5 (void) |
void | convertLtoRGB (void) |
Convert Luminance to RGB. | |
void | convertRGBtoL (void) |
Convert RGB to Luminance. | |
void | convertAndInc (void) |
Increment method including conversion. | |
Protected Attributes | |
IncrementFnc | _inc |
Increment method pointers. | |
IncrementFnc | _incConvert |
IncrementFnc | _incPointers |
T * | _dummy |
Dummy channel entries. | |
int | _dpLut |
Pointer increment. |
The LUTIterator class template is used by a LUTFunction object for rendering into a LUTData object.
For each lookup index, the LUT uses the channel pointers chn to store the LUT entry values, and calls the LUTIterator's increment operator to convert the entry values into the type of the LUTData object (if necessary) and to increment the channel data pointers.
Definition at line 131 of file mlLUTIterator.h.
typedef void(LUTIterator<T>::* ml::LUTIterator< T >::IncrementFnc)(void) [protected] |
Increment method pointer type definition.
Definition at line 193 of file mlLUTIterator.h.
ml::LUTIterator< T >::LUTIterator | ( | LUTVisualType | visualType, |
LUTData< T > & | lutData | ||
) |
Constructor for addressing a 1D-LUT visualType is the type of the LUT being rendered, lutData is the object storing the rendered LUT.
Definition at line 211 of file mlLUTIterator.h.
References ml::LUTIterator< T >::init().
ml::LUTIterator< T >::LUTIterator | ( | LUTVisualType | visualType, |
LUTData< T > & | lutData, | ||
int | row | ||
) |
Constructor for addressing a single row in a 2D-LUT visualType is the type of the LUT being rendered, lutData is the object storing the rendered LUT, row identifies the LUT row.
Definition at line 222 of file mlLUTIterator.h.
References ml::LUTIterator< T >::init().
ml::LUTIterator< T >::LUTIterator | ( | LUTVisualType | visualType, |
LUTData< T > & | lutData, | ||
int | row, | ||
int | layer | ||
) |
Constructor for addressing a single row in a 3D-LUT visualType is the type of the LUT being rendered, lutData is the object storing the rendered LUT, row and layer identify the LUT row.
Definition at line 233 of file mlLUTIterator.h.
References ml::LUTIterator< T >::init().
virtual ml::LUTIterator< T >::~LUTIterator | ( | ) | [inline, virtual] |
Destructor.
Definition at line 154 of file mlLUTIterator.h.
void ml::LUTIterator< T >::clear | ( | void | ) | [protected] |
Clean up.
Definition at line 338 of file mlLUTIterator.h.
void ml::LUTIterator< T >::convertAndInc | ( | void | ) | [inline, protected] |
Increment method including conversion.
Definition at line 189 of file mlLUTIterator.h.
void ml::LUTIterator< T >::convertLtoRGB | ( | void | ) | [inline, protected] |
void ml::LUTIterator< T >::convertRGBtoL | ( | void | ) | [inline, protected] |
Convert RGB to Luminance.
Definition at line 184 of file mlLUTIterator.h.
References B, G, L, ml::LUTConvertRGBtoL(), and R.
void ml::LUTIterator< T >::inc1 | ( | void | ) | [inline, protected] |
! Increment methods
Definition at line 174 of file mlLUTIterator.h.
void ml::LUTIterator< T >::inc2 | ( | void | ) | [inline, protected] |
Definition at line 175 of file mlLUTIterator.h.
void ml::LUTIterator< T >::inc3 | ( | void | ) | [inline, protected] |
Definition at line 176 of file mlLUTIterator.h.
void ml::LUTIterator< T >::inc4 | ( | void | ) | [inline, protected] |
Definition at line 177 of file mlLUTIterator.h.
void ml::LUTIterator< T >::inc5 | ( | void | ) | [inline, protected] |
Definition at line 178 of file mlLUTIterator.h.
void ml::LUTIterator< T >::init | ( | LUTData< T > & | lutData | ) | [protected] |
Initialize.
Definition at line 241 of file mlLUTIterator.h.
References B, G, ml::LUTData< T >::getEntriesAt(), ml::LUTDataBase::getMinIndex(), ml::LUTDataBase::getStride(), ml::LUTDataBase::getVisualType(), L, ml::LUT_ABGR, ml::LUT_BGR, ml::LUT_L, ml::LUT_LA, ml::LUT_RGB, ml::LUT_RGBA, ml::LUTAlphaChannelIndex(), ml::LUTNumberOfChannels(), ml::LUTReducedVisualType(), R, and T.
Referenced by ml::LUTIterator< T >::LUTIterator().
void ml::LUTIterator< T >::operator++ | ( | void | ) | [inline] |
Increment operator.
Definition at line 158 of file mlLUTIterator.h.
int ml::LUTIterator< T >::_dpLut [protected] |
Pointer increment.
Definition at line 202 of file mlLUTIterator.h.
T* ml::LUTIterator< T >::_dummy [protected] |
Dummy channel entries.
Definition at line 199 of file mlLUTIterator.h.
IncrementFnc ml::LUTIterator< T >::_inc [protected] |
Increment method pointers.
Definition at line 196 of file mlLUTIterator.h.
IncrementFnc ml::LUTIterator< T >::_incConvert [protected] |
Definition at line 196 of file mlLUTIterator.h.
IncrementFnc ml::LUTIterator< T >::_incPointers [protected] |
Definition at line 196 of file mlLUTIterator.h.
T** ml::LUTIterator< T >::chn |
Channel pointer array.
Definition at line 162 of file mlLUTIterator.h.