# cee::vis::ScalarMapperContinuousDomain

class `ScalarMapperContinuousDomain` : public ScalarMapper

  Base class for scalar mappers that implement normalizedValue / domainValue.

  Abstract base class for continuous domain mappers, that is mappers that support conversion between a domain value and a normalized value.

  The class also adds a versioning scheme as well as a way for the scalar mapper to give the color legend a hint for tick marks (useful for filled contour type legends).

  Subclassed by ScalarMapperContinuous, ScalarMapperContinuousPiecewise, ScalarMapperFilledContours, ScalarMapperFilledContoursUniform

  Public Functions

  virtual double `normalizedValue`(double domainValue) const = 0

    Returns the normalized value.

  virtual double `domainValue`(double normalizedPosition) const = 0

    Returns the domain value.

  virtual unsigned int `version`() const = 0

    Returns the version.

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

    Returns a suggestion for which tick marks to use. The base class returns an empty array.

  Color4f `undefinedColor`() const

    Returns the current undefined color.

  void `setUndefinedColor`(const Color4f &color)

    Sets the color to use for undefined values (cee::UNDEFINED_DOUBLE)

  bool `aboveRangeColor`(Color4f *color) const

    Returns true if an above range color is specified, and the color is set in the color parameter.

  void `setAboveRangeColor`(const Color4f &color)

    Sets the color to use for values that are above the range of the mapper.

    This feature is disabled by default, so all values above the range will get the same as max range

  void `clearAboveRangeColor`()

    Removes the currently specified above range color, going back to the default behavior with any value above the current max range gets the max range color.

  bool `belowRangeColor`(Color4f *color) const

    Returns true if a below range color is specified, and the color is set in the color parameter.

  void `setBelowRangeColor`(const Color4f &color)

    Sets the color to use for values that are below the range of the mapper.

    This feature is disabled by default, so all values below the range will get the same as min range

  void `clearBelowRangeColor`()

    Removes the currently specified below range color, going back to the default behavior with any value below the current max range gets the min range color.

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...