# cee::vis::ScalarMapperFilledContours

class `ScalarMapperFilledContours` : public ScalarMapperContinuousDomain

  Maps scalar values to texture coordinates/colors using a filled contours style with user defined contour/color-change values.

  You setup the mapper by providing an array of contour/level values, and an array of the color of the level using the setColorsAtValues() method. The first value in the values array will be the minimum value of the mapper, and the last value in the array will be the maximum value. The number of colors specified must be one less than the number of values.

  Note that there is no way to set the min/max value of this mapper.

  Public Functions

  `ScalarMapperFilledContours`()

    Constructs an empty object.

  double `rangeMinimum`() const

    Returns the minimum range value.

  double `rangeMaximum`() const

    Returns the maximum range value.

  void `setColorsAtValues`(const std::vector<Color3f> &colorArray, std::vector<double> values)

    Sets the scalar mapper level colors from an array of colors.

  virtual Vec2f `mapToTextureCoordinate`(double scalarValue) const

    Maps scalar value to texture coordinate.

  virtual Color3f `mapToColor`(double scalarValue) const

    Maps scalar value to color.

  virtual bool `updateTexture`(Image *image) const

    Updates texture image.

  virtual double `normalizedValue`(double domainValue) const

    Maps domain value (range_min -> range_max) into a normalized value (0 -> 1)

  virtual double `domainValue`(double normalizedPosition) const

    Maps normalized value (0 -> 1) into a domain value (range_min -> range_max)

  virtual unsigned int `version`() const

    Returns the version number of the mapper. Version is increased whenever the mapper is modified.

  virtual std::vector<double> `tickValuesHint`() const

    Returns the tick value hints.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Desktop in your own language, or choose a sample question below to start a conversation:

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...