Class vxlLookupTable

Contains a mapping between scalars and a color palette

Constructor

vxlLookupTable()

Methods

.getColor(val, min, max)
Gets the correspondent color. To obtain the right entry, the scale method should be called first.

Parameters:

Type Name Description
val

min

max

.getColors(s, max, min)

Parameters:

Type Name Description
s

array with scalar data

max

range

min

range

Returns:

unpacked colors translated through this lookup table
.load(ID, the)
Creates a lookup table

Parameters:

Type Name Description
String ID

the unique identifier of this lookup table in the system

JSON the

JSON object that contains the lookup table entries. This JSON should follow Voxelent's syntax