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.addCustomColorLegendForScalarMapperfunction.
Constructors
Methods
Accessors
-
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.
Return type: Color4Like
-
ScalarMapperFilledContours.aboveRangeColor(color) Arguments: - color (
Color4Like) – None
Return type: void
- color (
-
ScalarMapperFilledContours.belowRangeColor() 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.
Return type: Color4Like
-
ScalarMapperFilledContours.belowRangeColor(color) Arguments: - color (
Color4Like) – None
Return type: void
- color (
-
ScalarMapperFilledContours.rangeMaximum() The maximum range of the mapper
Return type: number
-
ScalarMapperFilledContours.rangeMinimum() The minimum range of the mapper
Return type: number
-
ScalarMapperFilledContours.undefinedColor() The color used for undefined values.
Return type: Color4Like
-
ScalarMapperFilledContours.undefinedColor(color) Arguments: - color (
Color4Like) – None
Return type: void
- color (
Methods
createTexture
-
ScalarMapperFilledContours.createTexture() Creates and returns texture for this scalar mapper
Return type: Texture
domainValue
-
ScalarMapperFilledContours.domainValue(normalizedPosition) Arguments: - normalizedPosition (
number) – None
Map normalized value (0 -> 1) into a domain value (range_min -> range_max)
Return type: number - normalizedPosition (
mapToColor
-
ScalarMapperFilledContours.mapToColor(scalarValue) Arguments: - scalarValue (
number) – None
Maps the given domain value to a color using the current range and color array.
Return type: Color4Like - scalarValue (
mapToTextureCoordinate
-
ScalarMapperFilledContours.mapToTextureCoordinate(scalarValue) Arguments: - scalarValue (
number) – None
Maps the given domain value to a color using the current range and color array.
Return type: Vec2Like - scalarValue (
normalizedValue
-
ScalarMapperFilledContours.normalizedValue(domainValue) Arguments: - domainValue (
number) – None
Map domain value (range_min -> range_max) into a normalized value (0 -> 1)
Return type: number - domainValue (