MeVisLab Toolbox Reference
View2DLut Class Reference

#include <View2DLut.h>

Public Member Functions

 View2DLut ()
 ~View2DLut ()
void invalidate ()
 Invalidate the lut data (changes the id to 0).
const MLuint8getUint8Data () const
 Get the uint8 lut data (32bit RGBA).
const MLuint16getUint16Data () const
 Get the uint16 lut data (64bit RGBA).
const ml::LUTDataIdgetFullId () const
 Get the full id of the lut data.
int getWidth () const
 Get the width of the lut.
bool render (ml::LUTFunction *lut, int lutWidth, double range, double min, double max)
 Render the lut from given function.

Static Public Member Functions

static bool shouldUseHighColorDepth ()
 Returns true if high bit depth (float16) should be used.
static void setShouldUseHighColorDepth (bool flag)
 Sets if high color depth should be used.

Protected Attributes

ml::LUTData< MLuint8_lut8
ml::LUTData< MLuint16_lut16

Static Protected Attributes

static bool _useHighColorDepth

Detailed Description

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.

Constructor & Destructor Documentation

◆ View2DLut()

View2DLut::View2DLut ( )

◆ ~View2DLut()

View2DLut::~View2DLut ( )

Member Function Documentation

◆ getFullId()

const ml::LUTDataId & View2DLut::getFullId ( ) const
inline

Get the full id of the lut data.

Definition at line 38 of file View2DLut.h.

References _lut8.

◆ getUint16Data()

const MLuint16 * View2DLut::getUint16Data ( ) const
inline

Get the uint16 lut data (64bit RGBA).

Definition at line 35 of file View2DLut.h.

References _lut16.

◆ getUint8Data()

const MLuint8 * View2DLut::getUint8Data ( ) const
inline

Get the uint8 lut data (32bit RGBA).

Definition at line 32 of file View2DLut.h.

References _lut8.

◆ getWidth()

int View2DLut::getWidth ( ) const
inline

Get the width of the lut.

Definition at line 41 of file View2DLut.h.

References _lut8.

◆ invalidate()

void View2DLut::invalidate ( )

Invalidate the lut data (changes the id to 0).

◆ render()

bool View2DLut::render ( ml::LUTFunction * lut,
int lutWidth,
double range,
double min,
double max )

Render the lut from given function.

◆ setShouldUseHighColorDepth()

void View2DLut::setShouldUseHighColorDepth ( bool flag)
inlinestatic

Sets if high color depth should be used.

Definition at line 50 of file View2DLut.h.

References _useHighColorDepth.

◆ shouldUseHighColorDepth()

bool View2DLut::shouldUseHighColorDepth ( )
inlinestatic

Returns true if high bit depth (float16) should be used.

Definition at line 47 of file View2DLut.h.

References _useHighColorDepth.

Member Data Documentation

◆ _lut16

ml::LUTData<MLuint16> View2DLut::_lut16
protected

Definition at line 54 of file View2DLut.h.

Referenced by getUint16Data().

◆ _lut8

ml::LUTData<MLuint8> View2DLut::_lut8
protected

Definition at line 53 of file View2DLut.h.

Referenced by getFullId(), getUint8Data(), and getWidth().

◆ _useHighColorDepth

bool View2DLut::_useHighColorDepth
staticprotected

Definition at line 56 of file View2DLut.h.

Referenced by setShouldUseHighColorDepth(), and shouldUseHighColorDepth().


The documentation for this class was generated from the following file:
  • MeVisLab/Standard/Sources/Inventor/SoView2D/View2DLut.h