#include <mlLUTIterator.h>

Public Types | |
| enum | { L = 0, A_LA = 1, R = 0, G = 1, B = 2, A_RGBA = 3, MAX_CHANNELS = 4 } |
| Channel pointer access constants. More... | |
Public Member Functions | |
| virtual | ~LUTIteratorBase () |
| Destructor (declared here to make it virtual). | |
| bool | isValid (void) const |
| Is iterator valid? | |
| LUTVisualType | getSourceType (void) const |
| Get visual type used for rendering (source type). | |
| LUTVisualType | getTargetType (void) const |
| Get visual type used for storing (target type). | |
| bool | alphaNeedsInit (void) const |
| Alpha channel needs initialization. | |
| int | getWidth (void) const |
| Get LUT width. | |
| int | operator() (void) const |
| Get current index (zero based). | |
| int | getRow (void) const |
| Get current row. | |
| int | getLayer (void) const |
| Get current layer. | |
| bool | atEnd (void) const |
| End of index range reached? | |
| int | getNumChannels (void) const |
| Get number of (source) channels. | |
Protected Types | |
| enum | ConvMethod { CONV_NONE = 0, CONV_L_TO_RGB, CONV_RGB_TO_L } |
| Conversion method id. More... | |
Protected Member Functions | |
| LUTIteratorBase (LUTVisualType vtFrom, LUTVisualType vtTo, int width, int row, int layer) | |
| Constructor (protected, class can only be used by derived classes). | |
Protected Attributes | |
| bool | _valid |
| Iterator valid flag. | |
| LUTVisualType | _vtFrom |
| Source visual type, used by the LUT being rendered. | |
| LUTVisualType | _vtTo |
| Target visual type, used by the LUTData object storing the rendered LUT. | |
| enum ml::LUTIteratorBase::ConvMethod | _convMethodId |
| Conversion method id. | |
| int | _incMethodId |
| Pointer increment method id (= number of channel pointers to increment). | |
| bool | _initAlpha |
| Alpha channel needs initialization. | |
| int | _width |
| Width of LUTData object. | |
| int | _index |
| Current index. | |
| int | _row |
| Current row and layer. | |
| int | _layer |
Definition at line 33 of file mlLUTIterator.h.
| anonymous enum |
Channel pointer access constants.
| L | Luminance channel. |
| A_LA | Alpha channel (source type = LA). |
| R | Red channel. |
| G | Green channel. |
| B | Blue channel. |
| A_RGBA | Alpha channel (source type = RGBA). |
| MAX_CHANNELS | Number of channels. |
Definition at line 48 of file mlLUTIterator.h.
enum ml::LUTIteratorBase::ConvMethod [protected] |
| ml::LUTIteratorBase::LUTIteratorBase | ( | LUTVisualType | vtFrom, | |
| LUTVisualType | vtTo, | |||
| int | width, | |||
| int | row, | |||
| int | layer | |||
| ) | [protected] |
Constructor (protected, class can only be used by derived classes).
| virtual ml::LUTIteratorBase::~LUTIteratorBase | ( | ) | [inline, virtual] |
| bool ml::LUTIteratorBase::alphaNeedsInit | ( | void | ) | const [inline] |
| bool ml::LUTIteratorBase::atEnd | ( | void | ) | const [inline] |
| int ml::LUTIteratorBase::getLayer | ( | void | ) | const [inline] |
| int ml::LUTIteratorBase::getNumChannels | ( | void | ) | const [inline] |
Get number of (source) channels.
Definition at line 88 of file mlLUTIterator.h.
References ml::LUTNumberOfChannels().
| int ml::LUTIteratorBase::getRow | ( | void | ) | const [inline] |
| LUTVisualType ml::LUTIteratorBase::getSourceType | ( | void | ) | const [inline] |
Get visual type used for rendering (source type).
Definition at line 64 of file mlLUTIterator.h.
Referenced by ml::LUTIterator< T >::init().
| LUTVisualType ml::LUTIteratorBase::getTargetType | ( | void | ) | const [inline] |
Get visual type used for storing (target type).
Definition at line 67 of file mlLUTIterator.h.
Referenced by ml::LUTIterator< T >::init().
| int ml::LUTIteratorBase::getWidth | ( | void | ) | const [inline] |
| bool ml::LUTIteratorBase::isValid | ( | void | ) | const [inline] |
| int ml::LUTIteratorBase::operator() | ( | void | ) | const [inline] |
enum ml::LUTIteratorBase::ConvMethod ml::LUTIteratorBase::_convMethodId [protected] |
int ml::LUTIteratorBase::_incMethodId [protected] |
Pointer increment method id (= number of channel pointers to increment).
Definition at line 106 of file mlLUTIterator.h.
Referenced by ml::LUTIterator< T >::init().
int ml::LUTIteratorBase::_index [protected] |
bool ml::LUTIteratorBase::_initAlpha [protected] |
int ml::LUTIteratorBase::_layer [protected] |
int ml::LUTIteratorBase::_row [protected] |
Current row and layer.
Definition at line 118 of file mlLUTIterator.h.
Referenced by ml::LUTIterator< T >::init().
bool ml::LUTIteratorBase::_valid [protected] |
Iterator valid flag.
Definition at line 94 of file mlLUTIterator.h.
Referenced by ml::LUTIterator< T >::init().
LUTVisualType ml::LUTIteratorBase::_vtFrom [protected] |
LUTVisualType ml::LUTIteratorBase::_vtTo [protected] |
Target visual type, used by the LUTData object storing the rendered LUT.
Definition at line 100 of file mlLUTIterator.h.
Referenced by ml::LUTIterator< T >::init().
int ml::LUTIteratorBase::_width [protected] |
1.5.8