Added support for a single color in a ColorRange

This commit is contained in:
Robert Osfield
2004-06-03 10:10:41 +00:00
parent 1526281793
commit 5d97f7ec92
2 changed files with 26 additions and 19 deletions

View File

@@ -32,12 +32,18 @@ class OSGSIM_EXPORT ColorRange: public ScalarsToColors
{
public:
/** Constructor for a ColorRange with a default list of colors set to Red-Yellow-Green-Blue-Cyan
@param min minimum scalar value
@param max maximum scalar value
*/
ColorRange(float min, float max);
/** Constructor for a ColorRange
@param min minimum scalar value
@param max maximum scalar value
@param colors optional range of colors, defaulting to Red-Yellow-Green-Blue-Cyan
@param colors optional range of colors,
*/
ColorRange(float min, float max, const std::vector<osg::Vec4>& colors = std::vector<osg::Vec4>());
ColorRange(float min, float max, const std::vector<osg::Vec4>& colors);
/** Set the range of colors. */
void setColors(const std::vector<osg::Vec4>& colors);