|
MeVisLab Toolbox Reference
|
LUT iterator base class with type independent functionality and declarations. More...
#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 |
| 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 |
LUT iterator base class with type independent functionality and declarations.
Definition at line 29 of file mlLUTIterator.h.
| anonymous enum |
Channel pointer access constants.
| Enumerator | |
|---|---|
| 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 44 of file mlLUTIterator.h.
|
protected |
Conversion method id.
| Enumerator | |
|---|---|
| CONV_NONE | |
| CONV_L_TO_RGB | |
| CONV_RGB_TO_L | |
Definition at line 99 of file mlLUTIterator.h.
|
protected |
Constructor (protected, class can only be used by derived classes).
Referenced by ml::LUTIterator< T >::LUTIterator(), ml::LUTIterator< T >::LUTIterator(), and ml::LUTIterator< T >::LUTIterator().
|
inlinevirtual |
Destructor (declared here to make it virtual).
Definition at line 40 of file mlLUTIterator.h.
|
inline |
Alpha channel needs initialization.
Definition at line 66 of file mlLUTIterator.h.
References _initAlpha.
|
inline |
End of index range reached?
Definition at line 81 of file mlLUTIterator.h.
|
inline |
|
inline |
Get number of (source) channels.
Definition at line 84 of file mlLUTIterator.h.
References _vtFrom, and ml::LUTNumberOfChannels().
|
inline |
|
inline |
Get visual type used for rendering (source type).
Definition at line 60 of file mlLUTIterator.h.
References _vtFrom.
Referenced by ml::LUTIterator< T >::init().
|
inline |
Get visual type used for storing (target type).
Definition at line 63 of file mlLUTIterator.h.
References _vtTo.
Referenced by ml::LUTIterator< T >::init().
|
inline |
Get LUT width.
Definition at line 69 of file mlLUTIterator.h.
References _width.
Referenced by ml::LUTIterator< T >::LUTIterator(), ml::LUTIterator< T >::LUTIterator(), and ml::LUTIterator< T >::LUTIterator().
|
inline |
|
inline |
|
protected |
Referenced by ml::LUTIterator< T >::init().
|
protected |
Pointer increment method id (= number of channel pointers to increment).
Definition at line 102 of file mlLUTIterator.h.
Referenced by ml::LUTIterator< T >::init().
|
protected |
Current index.
Definition at line 111 of file mlLUTIterator.h.
Referenced by atEnd(), operator()(), and ml::LUTIterator< T >::operator++().
|
protected |
Alpha channel needs initialization.
Definition at line 105 of file mlLUTIterator.h.
Referenced by alphaNeedsInit().
|
protected |
Definition at line 114 of file mlLUTIterator.h.
Referenced by getLayer(), and ml::LUTIterator< T >::init().
|
protected |
Current row and layer.
Definition at line 114 of file mlLUTIterator.h.
Referenced by getRow(), and ml::LUTIterator< T >::init().
|
protected |
Iterator valid flag.
Definition at line 90 of file mlLUTIterator.h.
Referenced by ml::LUTIterator< T >::init(), and isValid().
|
protected |
Source visual type, used by the LUT being rendered.
Definition at line 93 of file mlLUTIterator.h.
Referenced by getNumChannels(), and getSourceType().
|
protected |
Target visual type, used by the LUTData object storing the rendered LUT.
Definition at line 96 of file mlLUTIterator.h.
Referenced by getTargetType(), and ml::LUTIterator< T >::init().
|
protected |
Width of LUTData object.
Definition at line 108 of file mlLUTIterator.h.
Referenced by atEnd(), and getWidth().