## class OSGSIM_EXPORT osgSim::ScalarsToColors

> ScalarsToColors defines the interface to map a scalar value to a color, and provides a default implementation of the mapping functionaltity, with colors ranging from black to white across the min - max scalar range

## Inheritance:

### Public Methods

ScalarsToColors(float scalarMin, float scalarMax)
virtual ~ScalarsToColors()
virtual osg::Vec4 getColor(float scalar) const
  Get the color for a given scalar value.
float getMin() const
  Get the minimum scalar value.
float getMax() const
  Get the maximum scalar value.

## Documentation

> ScalarsToColors defines the interface to map a scalar value to a color, and provides a default implementation of the mapping functionaltity, with colors ranging from black to white across the min - max scalar range

`ScalarsToColors(float scalarMin, float scalarMax)`

`virtual ~ScalarsToColors()`

`virtual osg::Vec4 getColor(float scalar) const`
  Get the color for a given scalar value.

`float getMin() const`
  Get the minimum scalar value.

`float getMax() const`
  Get the maximum scalar value.

Direct child classes:
  ColorRange

Alphabetic index HTML hierarchy of classes or Java

This page was generated with the help of DOC++.