lookupTable2D

geo.webgl. lookupTable2D

new lookupTable2D(arg) → {geo.webgl.lookupTable2D}

Description:
  • Create a new instance of class webgl_lookupTable2D.

Source:
Parameters:
Name Type Description
arg object

Options object.

Properties
Name Type Attributes Description
maxWidth number <optional>

Maximum width to use for the texture. If the number of colors set is less than this, the texture is 1D. If greater, it will be a rectangle of maxWidth x whatever height is necessary.

colorTable Array.<number> <optional>

Initial color table for the texture. This is of the form RGBARGBA... where each value is an integer on the scale [0,255].

Returns:
Type
geo.webgl.lookupTable2D

Extends

  • vgl.texture

Methods

colorTable(valopt) → {Array.<number>|this}

Description:
  • Get/set color table.

Source:
Parameters:
Name Type Attributes Description
val Array.<number> <optional>

An array of RGBARGBA... integers on a scale of [0, 255]. undefined to get the current value.

Returns:
Type
Array.<number> | this

maxWidth() → {number}

Description:
  • Get maxWidth value.

Source:
Returns:

The maxWidth of the texture used.

Type
number

setup(renderState)

Description:
  • Create lookup table, initialize parameters, and bind data to it.

Source:
Parameters:
Name Type Description
renderState vgl.renderState

An object that contains the context used for drawing.