ScalarMapperFilledContoursUniform
- class cee.ScalarMapperFilledContoursUniform()
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.ScalarMapperFilledContoursUniform.constructor()
- Return type
cee.ScalarMapperFilledContoursUniform
Accessors
- cee.ScalarMapperFilledContoursUniform.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.ScalarMapperFilledContoursUniform.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.ScalarMapperFilledContoursUniform.colorArray
The colors to use for the mapper.
- cee.ScalarMapperFilledContoursUniform.rangeMaximum
The maximum range of the mapper
- cee.ScalarMapperFilledContoursUniform.rangeMinimum
The minimum range of the mapper
- cee.ScalarMapperFilledContoursUniform.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.ScalarMapperFilledContoursUniform.createTexture()
Creates and returns texture for this scalar mapper
- Return type
cee.Texture
domainValue
- cee.ScalarMapperFilledContoursUniform.domainValue(normalizedPosition)
Map normalized value (0 -> 1) into a domain value (range_min -> range_max)
- Arguments
normalizedPosition (
number
) –
- Return type
number
mapToColor
- cee.ScalarMapperFilledContoursUniform.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.ScalarMapperFilledContoursUniform.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.ScalarMapperFilledContoursUniform.normalizedValue(domainValue)
Map domain value (range_min -> range_max) into a normalized value (0 -> 1)
- Arguments
domainValue (
number
) –
- Return type
number
setRange
- cee.ScalarMapperFilledContoursUniform.setRange(min, max)
Sets the range of the mapper. The mapper will map domain values to colors based on an even distribution between the given min and max values.
- Arguments
min (
number
) –max (
number
) –
- Return type
void
setRangeLogarithmic
- cee.ScalarMapperFilledContoursUniform.setRangeLogarithmic(min, max)
Sets a logarithmic range of the mapper.
- Arguments
min (
number
) –max (
number
) –
- Return type
void
tickValuesHint
- cee.ScalarMapperFilledContoursUniform.tickValuesHint()
Returns the suggest tick values (the values of the color changes)
- Return type
ArrayLike[number]
version
- cee.ScalarMapperFilledContoursUniform.version()
Returns the version of the scalar mapper. Version is increased whenever the mapper is changed.
- Return type
number