.. role:: clio-inherited
   :class: clio-flag clio-flag-inherited


######################
ScalarMapperContinuous
######################

.. js:class:: cee.ScalarMapperContinuous

   Maps scalar values to texture coordinates/colors using a filled contours style color map with levels of uniform size.
   
   To show a color legend in the view representing this mapper, use the :js:meth:`Overlay.addCustomColorLegendForScalarMapper <cee.Overlay.addCustomColorLegendForScalarMapper>` function.
   
   
   Index
   =====
   
   .. rubric:: Constructors
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:func:`~cee.ScalarMapperContinuous.constructor`
   
   .. rubric:: Accessors
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:func:`~cee.ScalarMapperContinuous.aboveRangeColor`
   * :js:func:`~cee.ScalarMapperContinuous.belowRangeColor`
   * :js:func:`~cee.ScalarMapperContinuous.logarithmic`
   * :js:func:`~cee.ScalarMapperContinuous.rangeMaximum`
   * :js:func:`~cee.ScalarMapperContinuous.rangeMinimum`
   * :js:func:`~cee.ScalarMapperContinuous.undefinedColor`
   
   .. rubric:: Methods
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:meth:`~cee.ScalarMapperContinuous.createTexture`
   * :js:meth:`~cee.ScalarMapperContinuous.domainValue`
   * :js:meth:`~cee.ScalarMapperContinuous.mapToColor`
   * :js:meth:`~cee.ScalarMapperContinuous.mapToTextureCoordinate`
   * :js:meth:`~cee.ScalarMapperContinuous.normalizedValue`
   * :js:meth:`~cee.ScalarMapperContinuous.setColors`
   * :js:meth:`~cee.ScalarMapperContinuous.setColorsAtValues`
   * :js:meth:`~cee.ScalarMapperContinuous.setColorsFromColorTable`
   * :js:meth:`~cee.ScalarMapperContinuous.setRange`
   * :js:meth:`~cee.ScalarMapperContinuous.setRangeLogarithmic`
   * :js:meth:`~cee.ScalarMapperContinuous.tickValuesHint`
   * :js:meth:`~cee.ScalarMapperContinuous.version`
   
   



.. rst-class:: kind-group kind-constructors

.. rubric:: Constructors
   :class: kind-group-title


.. js:method:: cee.ScalarMapperContinuous.constructor

      .. rst-class:: sig-pretty-signature
      
         | ScalarMapperContinuous(): :js:class:`ScalarMapperContinuous <cee.ScalarMapperContinuous>`
      
      **Returns**\ : :js:class:`ScalarMapperContinuous <cee.ScalarMapperContinuous>`
      



.. rst-class:: kind-group kind-accessors

.. rubric:: Accessors
   :class: kind-group-title


.. js:method:: cee.ScalarMapperContinuous.aboveRangeColor

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | *get* aboveRangeColor(): :js:class:`Color4Like <cee.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**\ : :js:class:`Color4Like <cee.Color4Like>`
      
      .. rst-class:: sig-pretty-signature
      
         | *set* aboveRangeColor(**color**\ : :js:class:`Color4Like <cee.Color4Like>`\ ): *void*
      
      **Parameters**
      
      
         **color**\ : :js:class:`Color4Like <cee.Color4Like>`
      
      
      **Returns**\ : *void*
      



.. js:method:: cee.ScalarMapperContinuous.belowRangeColor

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | *get* belowRangeColor(): :js:class:`Color4Like <cee.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**\ : :js:class:`Color4Like <cee.Color4Like>`
      
      .. rst-class:: sig-pretty-signature
      
         | *set* belowRangeColor(**color**\ : :js:class:`Color4Like <cee.Color4Like>`\ ): *void*
      
      **Parameters**
      
      
         **color**\ : :js:class:`Color4Like <cee.Color4Like>`
      
      
      **Returns**\ : *void*
      



.. js:method:: cee.ScalarMapperContinuous.logarithmic

      .. rst-class:: sig-pretty-signature
      
         | *get* logarithmic(): *boolean*
      
      True if the mapper is setup to logarithmic mapping
      
      **Returns**\ : *boolean*
      



.. js:method:: cee.ScalarMapperContinuous.rangeMaximum

      .. rst-class:: sig-pretty-signature
      
         | *get* rangeMaximum(): *number*
      
      The maximum range of the mapper
      
      **Returns**\ : *number*
      



.. js:method:: cee.ScalarMapperContinuous.rangeMinimum

      .. rst-class:: sig-pretty-signature
      
         | *get* rangeMinimum(): *number*
      
      The minimum range of the mapper
      
      **Returns**\ : *number*
      



.. js:method:: cee.ScalarMapperContinuous.undefinedColor

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | *get* undefinedColor(): :js:class:`Color4Like <cee.Color4Like>`
      
      The color used for undefined values.
      
      **Returns**\ : :js:class:`Color4Like <cee.Color4Like>`
      
      .. rst-class:: sig-pretty-signature
      
         | *set* undefinedColor(**color**\ : :js:class:`Color4Like <cee.Color4Like>`\ ): *void*
      
      **Parameters**
      
      
         **color**\ : :js:class:`Color4Like <cee.Color4Like>`
      
      
      **Returns**\ : *void*
      



.. rst-class:: kind-group kind-methods

.. rubric:: Methods
   :class: kind-group-title


.. js:method:: cee.ScalarMapperContinuous.createTexture

      .. rst-class:: sig-pretty-signature
      
         | createTexture(): :js:class:`Texture <cee.Texture>`
      
      Creates and returns texture for this scalar mapper
      
      **Returns**\ : :js:class:`Texture <cee.Texture>`
      



.. js:method:: cee.ScalarMapperContinuous.domainValue

      .. rst-class:: sig-pretty-signature
      
         | domainValue(**normalizedPosition**\ : *number*\ ): *number*
      
      Map normalized value (0 -> 1) into a domain value (range_min -> range_max)
      
      **Parameters**
      
      
         **normalizedPosition**\ : *number*
      
      
      **Returns**\ : *number*
      



.. js:method:: cee.ScalarMapperContinuous.mapToColor

      .. rst-class:: sig-pretty-signature
      
         | mapToColor(**scalarValue**\ : *number*\ ): :js:class:`Color4Like <cee.Color4Like>`
      
      Maps the given domain value to a color using the current range and color array.
      
      **Parameters**
      
      
         **scalarValue**\ : *number*
      
      
      **Returns**\ : :js:class:`Color4Like <cee.Color4Like>`
      



.. js:method:: cee.ScalarMapperContinuous.mapToTextureCoordinate

      .. rst-class:: sig-pretty-signature
      
         | mapToTextureCoordinate(**scalarValue**\ : *number*\ ): :js:class:`Vec2Like <cee.Vec2Like>`
      
      Maps the given domain value to a color using the current range and color array.
      
      **Parameters**
      
      
         **scalarValue**\ : *number*
      
      
      **Returns**\ : :js:class:`Vec2Like <cee.Vec2Like>`
      



.. js:method:: cee.ScalarMapperContinuous.normalizedValue

      .. rst-class:: sig-pretty-signature
      
         | normalizedValue(**domainValue**\ : *number*\ ): *number*
      
      Map domain value (range_min -> range_max) into a normalized value (0 -> 1)
      
      **Parameters**
      
      
         **domainValue**\ : *number*
      
      
      **Returns**\ : *number*
      



.. js:method:: cee.ScalarMapperContinuous.setColors

      .. rst-class:: sig-pretty-signature
      
         | setColors(**colors**\ : :js:class:`Color4Like <cee.Color4Like>`\ []): *void*
      
      **Parameters**
      
      
         **colors**\ : :js:class:`Color4Like <cee.Color4Like>`\ []
      
      
      **Returns**\ : *void*
      



.. js:method:: cee.ScalarMapperContinuous.setColorsAtValues

      .. rst-class:: sig-pretty-signature
      
         | setColorsAtValues(**colorArr**\ : *ArrayLike*\ , **valueArr**\ : *ArrayLike*\ ): *void*
      
      **Parameters**
      
      
         **colorArr**\ : *ArrayLike*
      
         **valueArr**\ : *ArrayLike*
      
      
      **Returns**\ : *void*
      



.. js:method:: cee.ScalarMapperContinuous.setColorsFromColorTable

      .. rst-class:: sig-pretty-signature
      
         | setColorsFromColorTable(**colorTable**\ : :js:data:`ColorTable <cee.ColorTable>`\ ): *void*
      
      **Parameters**
      
      
         **colorTable**\ : :js:data:`ColorTable <cee.ColorTable>`
      
      
      **Returns**\ : *void*
      



.. js:method:: cee.ScalarMapperContinuous.setRange

      .. rst-class:: sig-pretty-signature
      
         | setRange(**min**\ : *number*\ , **max**\ : *number*\ ): *void*
      
      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.
      
      **Parameters**
      
      
         **min**\ : *number*
      
         **max**\ : *number*
      
      
      **Returns**\ : *void*
      



.. js:method:: cee.ScalarMapperContinuous.setRangeLogarithmic

      .. rst-class:: sig-pretty-signature
      
         | setRangeLogarithmic(**min**\ : *number*\ , **max**\ : *number*\ ): *void*
      
      Sets a logarithmic range of the mapper.
      
      **Parameters**
      
      
         **min**\ : *number*
      
         **max**\ : *number*
      
      
      **Returns**\ : *void*
      



.. js:method:: cee.ScalarMapperContinuous.tickValuesHint

      .. rst-class:: sig-pretty-signature
      
         | tickValuesHint(): *ArrayLike*
      
      **Returns**\ : *ArrayLike*
      



.. js:method:: cee.ScalarMapperContinuous.version

      .. rst-class:: sig-pretty-signature
      
         | version(): *number*
      
      **Returns**\ : *number*
      




