MeVisLab Toolbox Reference
View2DLut Class 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 MLuint8getUint8Data () const
 Get the uint8 lut data (32bit RGBA). More...
 
const MLuint16getUint16Data () const
 Get the uint16 lut data (64bit RGBA). More...
 
const ml::LUTDataIdgetFullId () 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
 

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.

◆ getUint16Data()

const MLuint16* View2DLut::getUint16Data ( ) const
inline

Get the uint16 lut data (64bit RGBA).

Definition at line 35 of file View2DLut.h.

◆ getUint8Data()

const MLuint8* View2DLut::getUint8Data ( ) const
inline

Get the uint8 lut data (32bit RGBA).

Definition at line 32 of file View2DLut.h.

◆ getWidth()

int View2DLut::getWidth ( ) const
inline

Get the width of the lut.

Definition at line 41 of file View2DLut.h.

◆ 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()

static void View2DLut::setShouldUseHighColorDepth ( bool  flag)
inlinestatic

Sets if high color depth should be used.

Definition at line 50 of file View2DLut.h.

◆ shouldUseHighColorDepth()

static bool View2DLut::shouldUseHighColorDepth ( )
inlinestatic

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

Definition at line 47 of file View2DLut.h.

Member Data Documentation

◆ _lut16

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

Definition at line 54 of file View2DLut.h.

◆ _lut8

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

Definition at line 53 of file View2DLut.h.

◆ _useHighColorDepth

bool View2DLut::_useHighColorDepth
staticprotected

Definition at line 56 of file View2DLut.h.


The documentation for this class was generated from the following file: