Inheritance diagram for osgSim::ColorRange:
Public Member Functions | |
ColorRange (float min, float max) | |
Constructor for a ColorRange with a default list of colors set to Red-Yellow-Green-Blue-Cyan. | |
ColorRange (float min, float max, const std::vector< osg::Vec4 > &colors) | |
Constructor for a ColorRange. | |
void | setColors (const std::vector< osg::Vec4 > &colors) |
Set the range of colors. | |
osg::Vec4 | getColor (float scalar) const |
Get the color for a given scalar value. |
An optional vector of colors may be passed in at construction time. The range of colors will be mapped to the scalar range, and interpolation between the colors will be performed as necessary. By default, the color range will run Red-Yellow-Green-Cyan-Blue.
|
Constructor for a ColorRange with a default list of colors set to Red-Yellow-Green-Blue-Cyan.
|
|
Constructor for a ColorRange.
|
|
Get the color for a given scalar value.
Reimplemented from osgSim::ScalarsToColors. |
|
Set the range of colors.
|