41 int getWidth()
const {
return _lut8.getWidth(); }
#define SOVIEW2D_API
File to resolve system dependencies in View2D library.
A small wrapper class for the LUT data.
static void setShouldUseHighColorDepth(bool flag)
Sets if high color depth should be used.
bool render(ml::LUTFunction *lut, int lutWidth, double range, double min, double max)
Render the lut from given function.
const ml::LUTDataId & getFullId() const
Get the full id of the lut data.
ml::LUTData< MLuint8 > _lut8
const MLuint8 * getUint8Data() const
Get the uint8 lut data (32bit RGBA).
const MLuint16 * getUint16Data() const
Get the uint16 lut data (64bit RGBA).
int getWidth() const
Get the width of the lut.
static bool _useHighColorDepth
ml::LUTData< MLuint16 > _lut16
static bool shouldUseHighColorDepth()
Returns true if high bit depth (float16) should be used.
void invalidate()
Invalidate the lut data (changes the id to 0).
Common base class for lookup tables.