Inheritance diagram for osgSim::ColorRange:
Public Member Functions | |
ColorRange (float min, float max) | |
ColorRange (float min, float max, const std::vector< osg::Vec4 > &colors) | |
void | setColors (const std::vector< osg::Vec4 > &colors) |
osg::Vec4 | getColor (float scalar) const |
osgSim::ColorRange::ColorRange | ( | float | min, | |
float | max | |||
) |
Constructor for a ColorRange with a default list of colors set to Red-Yellow-Green-Blue-Cyan
min | minimum scalar value | |
max | maximum scalar value |
osgSim::ColorRange::ColorRange | ( | float | min, | |
float | max, | |||
const std::vector< osg::Vec4 > & | colors | |||
) |
Constructor for a ColorRange
min | minimum scalar value | |
max | maximum scalar value | |
colors | optional range of colors, |
osg::Vec4 osgSim::ColorRange::getColor | ( | float | scalar | ) | const [virtual] |
Get the color for a given scalar value.
Reimplemented from osgSim::ScalarsToColors.
void osgSim::ColorRange::setColors | ( | const std::vector< osg::Vec4 > & | colors | ) |
Set the range of colors.