ScalarMapperFilledContours

class cee.ScalarMapperFilledContours()

Maps scalar values to texture coordinates/colors using a filled contours style color map with levels of uniform size.

Configured by specifying the colors and their values with the method setColorsAtValues.

To show a color legend in the view representing this mapper, use the Overlay.addCustomColorLegendForScalarMapper function.

Constructors

cee.ScalarMapperFilledContours.constructor()
ScalarMapperFilledContours(): ScalarMapperFilledContours

Returns: ScalarMapperFilledContours

Accessors

cee.ScalarMapperFilledContours.aboveRangeColor()

inherited

get aboveRangeColor(): Color4Like

The color to assign values that are above the given range.

Default is undefined, which indicates that the last color in the color array will be used.

Returns: Color4Like

set aboveRangeColor(color: Color4Like): void

Parameters

color: Color4Like

Returns: void

cee.ScalarMapperFilledContours.belowRangeColor()

inherited

get belowRangeColor(): Color4Like

The color to assign values that are below the given range.

Default is null, which indicates that the first color in the color array will be used.

Returns: Color4Like

set belowRangeColor(color: Color4Like): void

Parameters

color: Color4Like

Returns: void

cee.ScalarMapperFilledContours.rangeMaximum()
get rangeMaximum(): number

The maximum range of the mapper

Returns: number

cee.ScalarMapperFilledContours.rangeMinimum()
get rangeMinimum(): number

The minimum range of the mapper

Returns: number

cee.ScalarMapperFilledContours.undefinedColor()

inherited

get undefinedColor(): Color4Like

The color used for undefined values.

Returns: Color4Like

set undefinedColor(color: Color4Like): void

Parameters

color: Color4Like

Returns: void

Methods

cee.ScalarMapperFilledContours.createTexture()
createTexture(): Texture

Creates and returns texture for this scalar mapper

Returns: Texture

cee.ScalarMapperFilledContours.domainValue()
domainValue(normalizedPosition: number): number

Map normalized value (0 -> 1) into a domain value (range_min -> range_max)

Parameters

normalizedPosition: number

Returns: number

cee.ScalarMapperFilledContours.mapToColor()
mapToColor(scalarValue: number): Color4Like

Maps the given domain value to a color using the current range and color array.

Parameters

scalarValue: number

Returns: Color4Like

cee.ScalarMapperFilledContours.mapToTextureCoordinate()
mapToTextureCoordinate(scalarValue: number): Vec2Like

Maps the given domain value to a color using the current range and color array.

Parameters

scalarValue: number

Returns: Vec2Like

cee.ScalarMapperFilledContours.normalizedValue()
normalizedValue(domainValue: number): number

Map domain value (range_min -> range_max) into a normalized value (0 -> 1)

Parameters

domainValue: number

Returns: number

cee.ScalarMapperFilledContours.setColorsAtValues()
setColorsAtValues(colorArr: ArrayLike, valueArr: ArrayLike): void

Sets the scalar mapper level colors from an array of colors at the given values

Parameters

colorArr: ArrayLike

valueArr: ArrayLike

Returns: void

cee.ScalarMapperFilledContours.tickValuesHint()
tickValuesHint(): ArrayLike

Returns the suggest tick values (the values of the color changes)

Returns: ArrayLike

cee.ScalarMapperFilledContours.version()
version(): number

Returns the version of the scalar mapper. Version is increased whenever the mapper is changed.

Returns: number