MeVisLab Toolbox Reference
|
A small wrapper class for the LUT data. More...
#include <View2DLut.h>
Public Member Functions | |
View2DLut () | |
~View2DLut () | |
void | invalidate () |
Invalidate the lut data (changes the id to 0). More... | |
const MLuint8 * | getUint8Data () const |
Get the uint8 lut data (32bit RGBA). More... | |
const MLuint16 * | getUint16Data () const |
Get the uint16 lut data (64bit RGBA). More... | |
const ml::LUTDataId & | getFullId () const |
Get the full id of the lut data. More... | |
int | getWidth () const |
Get the width of the lut. More... | |
bool | render (ml::LUTFunction *lut, int lutWidth, double range, double min, double max) |
Render the lut from given function. More... | |
Static Public Member Functions | |
static bool | shouldUseHighColorDepth () |
Returns true if high bit depth (float16) should be used. More... | |
static void | setShouldUseHighColorDepth (bool flag) |
Sets if high color depth should be used. More... | |
Protected Attributes | |
ml::LUTData< MLuint8 > | _lut8 |
ml::LUTData< MLuint16 > | _lut16 |
Static Protected Attributes | |
static bool | _useHighColorDepth |
A small wrapper class for the LUT data.
The lut data is always available as uint8 and uint16 RGBA data.
Definition at line 22 of file View2DLut.h.
View2DLut::View2DLut | ( | ) |
View2DLut::~View2DLut | ( | ) |
|
inline |
Get the full id of the lut data.
Definition at line 38 of file View2DLut.h.
|
inline |
Get the uint16 lut data (64bit RGBA).
Definition at line 35 of file View2DLut.h.
|
inline |
Get the uint8 lut data (32bit RGBA).
Definition at line 32 of file View2DLut.h.
|
inline |
Get the width of the lut.
Definition at line 41 of file View2DLut.h.
void View2DLut::invalidate | ( | ) |
Invalidate the lut data (changes the id to 0).
bool View2DLut::render | ( | ml::LUTFunction * | lut, |
int | lutWidth, | ||
double | range, | ||
double | min, | ||
double | max | ||
) |
Render the lut from given function.
|
inlinestatic |
Sets if high color depth should be used.
Definition at line 50 of file View2DLut.h.
|
inlinestatic |
Returns true if high bit depth (float16) should be used.
Definition at line 47 of file View2DLut.h.
|
protected |
Definition at line 54 of file View2DLut.h.
|
protected |
Definition at line 53 of file View2DLut.h.
|
staticprotected |
Definition at line 56 of file View2DLut.h.