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...
List of all members.
Detailed Description
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.
Constructor & Destructor Documentation
osgSim::ScalarsToColors::ScalarsToColors |
( |
float |
scalarMin, |
|
|
float |
scalarMax |
|
) |
| |
virtual osgSim::ScalarsToColors::~ScalarsToColors |
( |
| ) |
[inline, virtual] |
Member Function Documentation
virtual osg::Vec4 osgSim::ScalarsToColors::getColor |
( |
float |
scalar | ) |
const [virtual] |
float osgSim::ScalarsToColors::getMax |
( |
| ) |
const |
Get the maximum scalar value.
float osgSim::ScalarsToColors::getMin |
( |
| ) |
const |
Get the minimum scalar value.
The documentation for this class was generated from the following file: