#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. | |
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.
| ml::LUTIterator< T >::LUTIterator | ( | LUTVisualType | visualType, | |
| LUTData< T > & | lutData | |||
| ) | [inline] |
Constructor for addressing a 1D-LUT visualType is the type of the LUT being rendered, lutData is the object storing the rendered LUT.
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 | |||
| ) | [inline] |
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.
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 | |||
| ) | [inline] |
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.
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] |
| void ml::LUTIterator< T >::clear | ( | void | ) | [inline, protected] |
Clean up.
Definition at line 338 of file mlLUTIterator.h.
References ml::LUTIterator< T >::_dummy, and ml::LUTIterator< T >::chn.
Referenced by ml::LUTIterator< T >::init().
| void ml::LUTIterator< T >::convertAndInc | ( | void | ) | [inline, protected] |
| 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] |
| 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 | ) | [inline, protected] |
Initialize.
Definition at line 241 of file mlLUTIterator.h.
References ml::LUTIteratorBase::_convMethodId, ml::LUTIterator< T >::_dpLut, ml::LUTIterator< T >::_dummy, ml::LUTIterator< T >::_inc, ml::LUTIterator< T >::_incConvert, ml::LUTIteratorBase::_incMethodId, ml::LUTIterator< T >::_incPointers, ml::LUTIteratorBase::_layer, ml::LUTIteratorBase::_row, ml::LUTIteratorBase::_valid, ml::LUTIteratorBase::_vtTo, ml::LUTIteratorBase::B, ml::LUTIterator< T >::chn, ml::LUTIterator< T >::clear(), ml::LUTIteratorBase::CONV_L_TO_RGB, ml::LUTIteratorBase::CONV_NONE, ml::LUTIteratorBase::CONV_RGB_TO_L, ml::LUTIteratorBase::G, ml::LUTData< T >::getEntriesAt(), ml::LUTDataBase::getMinIndex(), ml::LUTIteratorBase::getSourceType(), ml::LUTDataBase::getStride(), ml::LUTIteratorBase::getTargetType(), ml::LUTDataBase::getVisualType(), ml::LUTIteratorBase::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(), ml::LUTIteratorBase::MAX_CHANNELS, ml::LUTIteratorBase::R, and T.
Referenced by ml::LUTIterator< T >::LUTIterator().
| void ml::LUTIterator< T >::operator++ | ( | void | ) | [inline] |
int ml::LUTIterator< T >::_dpLut [protected] |
Pointer increment.
Definition at line 202 of file mlLUTIterator.h.
Referenced by ml::LUTIterator< T >::init().
T* ml::LUTIterator< T >::_dummy [protected] |
Dummy channel entries.
Definition at line 199 of file mlLUTIterator.h.
Referenced by ml::LUTIterator< T >::clear(), and ml::LUTIterator< T >::init().
IncrementFnc ml::LUTIterator< T >::_inc [protected] |
Increment method pointers.
Definition at line 196 of file mlLUTIterator.h.
Referenced by ml::LUTIterator< T >::init().
IncrementFnc ml::LUTIterator< T >::_incConvert [protected] |
IncrementFnc ml::LUTIterator< T >::_incPointers [protected] |
| T** ml::LUTIterator< T >::chn |
Channel pointer array.
Definition at line 162 of file mlLUTIterator.h.
Referenced by ml::LUTIterator< T >::clear(), and ml::LUTIterator< T >::init().
1.5.8