14#ifndef OSGSIM_COLORRANGE
15#define OSGSIM_COLORRANGE 1
46 ColorRange(
float min,
float max,
const std::vector<osg::Vec4>& colors);
49 void setColors(
const std::vector<osg::Vec4>& colors);
52 const std::vector<osg::Vec4>&
getColors()
const {
return _colors; }
61 std::vector<osg::Vec4> _colors;
Vec4f Vec4
Definition Vec4:21
The osgSim library is a NodeKit that extends the core scene graph to support nodes and drawables that...
Definition BlinkSequence:27
ColorRange(float min, float max, const std::vector< osg::Vec4 > &colors)
Constructor for a ColorRange.
const std::vector< osg::Vec4 > & getColors() const
Get the range of colors.
Definition ColorRange:52
ColorRange(float min, float max)
Constructor for a ColorRange with a default list of colors set to Red-Yellow-Green-Blue-Cyan.
osg::Vec4 getColor(float scalar) const
Get the color for a given scalar value.
void setColors(const std::vector< osg::Vec4 > &colors)
Set the range of colors.
ScalarsToColors(float scalarMin, float scalarMax)
#define OSGSIM_EXPORT
Definition Export:38