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


#################################
ScalarMapperFilledContoursUniform
#################################

.. js: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 (:js:func:`colorArray <cee.ScalarMapperFilledContoursUniform.colorArray>`\ ) and the range (:js:meth:`setRange <cee.ScalarMapperFilledContoursUniform.setRange>`\ ).
   
   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.ScalarMapperFilledContoursUniform.constructor`
   
   .. rubric:: Accessors
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:func:`~cee.ScalarMapperFilledContoursUniform.aboveRangeColor`
   * :js:func:`~cee.ScalarMapperFilledContoursUniform.belowRangeColor`
   * :js:func:`~cee.ScalarMapperFilledContoursUniform.colorArray`
   * :js:func:`~cee.ScalarMapperFilledContoursUniform.rangeMaximum`
   * :js:func:`~cee.ScalarMapperFilledContoursUniform.rangeMinimum`
   * :js:func:`~cee.ScalarMapperFilledContoursUniform.undefinedColor`
   
   .. rubric:: Methods
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:meth:`~cee.ScalarMapperFilledContoursUniform.createTexture`
   * :js:meth:`~cee.ScalarMapperFilledContoursUniform.domainValue`
   * :js:meth:`~cee.ScalarMapperFilledContoursUniform.mapToColor`
   * :js:meth:`~cee.ScalarMapperFilledContoursUniform.mapToTextureCoordinate`
   * :js:meth:`~cee.ScalarMapperFilledContoursUniform.normalizedValue`
   * :js:meth:`~cee.ScalarMapperFilledContoursUniform.setRange`
   * :js:meth:`~cee.ScalarMapperFilledContoursUniform.setRangeLogarithmic`
   * :js:meth:`~cee.ScalarMapperFilledContoursUniform.tickValuesHint`
   * :js:meth:`~cee.ScalarMapperFilledContoursUniform.version`
   
   



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

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


.. js:method:: cee.ScalarMapperFilledContoursUniform.constructor

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



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

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


.. js:method:: cee.ScalarMapperFilledContoursUniform.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.ScalarMapperFilledContoursUniform.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.ScalarMapperFilledContoursUniform.colorArray

      .. rst-class:: sig-pretty-signature
      
         | *get* colorArray(): *ArrayLike*
      
      The colors to use for the mapper.
      
      **Returns**\ : *ArrayLike*
      
      .. rst-class:: sig-pretty-signature
      
         | *set* colorArray(**colors**\ : *ArrayLike*\ ): *void*
      
      **Parameters**
      
      
         **colors**\ : *ArrayLike*
      
      
      **Returns**\ : *void*
      



.. js:method:: cee.ScalarMapperFilledContoursUniform.rangeMaximum

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



.. js:method:: cee.ScalarMapperFilledContoursUniform.rangeMinimum

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



.. js:method:: cee.ScalarMapperFilledContoursUniform.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.ScalarMapperFilledContoursUniform.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.ScalarMapperFilledContoursUniform.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.ScalarMapperFilledContoursUniform.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.ScalarMapperFilledContoursUniform.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.ScalarMapperFilledContoursUniform.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.ScalarMapperFilledContoursUniform.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.ScalarMapperFilledContoursUniform.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.ScalarMapperFilledContoursUniform.tickValuesHint

      .. rst-class:: sig-pretty-signature
      
         | tickValuesHint(): *ArrayLike*
      
      Returns the suggest tick values (the values of the color changes)
      
      **Returns**\ : *ArrayLike*
      



.. js:method:: cee.ScalarMapperFilledContoursUniform.version

      .. rst-class:: sig-pretty-signature
      
         | version(): *number*
      
      Returns the version of the scalar mapper. Version is increased whenever the mapper is changed.
      
      **Returns**\ : *number*
      




