OpenSceneGraph
3.0.1
|
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. More...
Public Member Functions | |
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. |
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.
osgSim::ScalarsToColors::ScalarsToColors | ( | float | scalarMin, |
float | scalarMax | ||
) |
virtual osgSim::ScalarsToColors::~ScalarsToColors | ( | ) | [inline, virtual] |
virtual osg::Vec4 osgSim::ScalarsToColors::getColor | ( | float | scalar | ) | const [virtual] |
Get the color for a given scalar value.
Reimplemented in osgSim::ColorRange.
float osgSim::ScalarsToColors::getMax | ( | ) | const |
Get the maximum scalar value.
float osgSim::ScalarsToColors::getMin | ( | ) | const |
Get the minimum scalar value.
![]() | Generated at Thu Sep 27 2012 12:20:44 for the OpenSceneGraph by doxygen 1.7.6.1. |