# cee::vis::ScalarMapper

class `ScalarMapper` : public RefCountedObject

  Abstract base class for scalar mappers.

  The scalar mapper offers two services:

  - Map from a scalar value (domain value) to a texture coordinate or a color
  - Create a texture from the scalar mapper that can be used for rendering and corresponds with the texture coordinates produced.

  Subclassed by ScalarMapperContinuousDomain

  Public Functions

  virtual Vec2f `mapToTextureCoordinate`(double scalarValue) const = 0

    Maps scalar value to texture coordinate.

  virtual Color3f `mapToColor`(double scalarValue) const = 0

    Maps scalar value to color.

  virtual bool `updateTexture`(Image *image) const = 0

    Updates texture image based on the settings in the scalar mapper.

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