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 number of level colors ([[colorArray]]) and the range ([[setRange]]).
To show a color legend in the view representing this mapper, use the
Overlay.addCustomColorLegendForScalarMapper
function.
Constructors
Methods
Constructors
constructor
- cee.ScalarMapperFilledContours.constructor()
- Return type
cee.ScalarMapperFilledContours
Accessors
- cee.ScalarMapperFilledContours.aboveRangeColor
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.
- cee.ScalarMapperFilledContours.belowRangeColor
The color to assign values that are below the given range.
Default is undefined, which indicates that the first color in the color array will be used.
- cee.ScalarMapperFilledContours.rangeMaximum
The maximum range of the mapper
- cee.ScalarMapperFilledContours.rangeMinimum
The minimum range of the mapper
- cee.ScalarMapperFilledContours.undefinedColor
The color used for undefined values.
Default is undefined, which indicates that the last color in the color array will be used.
Methods
createTexture
- cee.ScalarMapperFilledContours.createTexture()
Creates and returns texture for this scalar mapper
- Return type
cee.Texture
domainValue
- cee.ScalarMapperFilledContours.domainValue(normalizedPosition)
Map normalized value (0 -> 1) into a domain value (range_min -> range_max)
- Arguments
normalizedPosition (
number
) –
- Return type
number
mapToColor
- cee.ScalarMapperFilledContours.mapToColor(scalarValue)
Maps the given domain value to a color using the current range and color array.
- Arguments
scalarValue (
number
) –
- Return type
cee.Color4Like
mapToTextureCoordinate
- cee.ScalarMapperFilledContours.mapToTextureCoordinate(scalarValue)
Maps the given domain value to a color using the current range and color array.
- Arguments
scalarValue (
number
) –
- Return type
cee.Vec2Like
normalizedValue
- cee.ScalarMapperFilledContours.normalizedValue(domainValue)
Map domain value (range_min -> range_max) into a normalized value (0 -> 1)
- Arguments
domainValue (
number
) –
- Return type
number
setColorsAtValues
- cee.ScalarMapperFilledContours.setColorsAtValues(colorArr, valueArr)
Sets the scalar mapper level colors from an array of colors at the given values
- Arguments
colorArr (
ArrayLike[cee.Color4Like]
) –valueArr (
ArrayLike[number]
) –
- Return type
void
tickValuesHint
- cee.ScalarMapperFilledContours.tickValuesHint()
Returns the suggest tick values (the values of the color changes)
- Return type
ArrayLike[number]
version
- cee.ScalarMapperFilledContours.version()
Returns the version of the scalar mapper. Version is increased whenever the mapper is changed.
- Return type
number