34 return _lut8.getData();
40 return _lut16.getData();
46 return _lut8.getFullId();
52 return _lut8.getWidth();
61 return _useHighColorDepth;
67 _useHighColorDepth =
flag;
#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.
ml::LUTData< MLuint8 > _lut8
const ml::LUTDataId & getFullId() const
Get the full id of the lut data.
int getWidth() const
Get the width of the lut.
const MLuint16 * getUint16Data() const
Get the uint16 lut data (64bit RGBA).
static bool _useHighColorDepth
ml::LUTData< MLuint16 > _lut16
static bool shouldUseHighColorDepth()
Returns true if high bit depth (float16) should be used.
const MLuint8 * getUint8Data() const
Get the uint8 lut data (32bit RGBA).
void invalidate()
Invalidate the lut data (changes the id to 0).
A LUTData object stores an instance of a LUT, rendered for a specified visual type,...
Common base class for lookup tables.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.