ScalarsToColors
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#ifndef OSGSIM_SCALARSTCOLORS
#define OSGSIM_SCALARSTCOLORS 1
#include <osgSim/Export>
#include <osg/Vec4>
#include <osg/Referenced>
namespace osgSim
{
class OSGSIM_EXPORT ScalarsToColors: public osg::Referenced
{
public:
ScalarsToColors(float scalarMin, float scalarMax);
virtual ~ScalarsToColors() {}
virtual osg::Vec4 getColor(float scalar) const;
float getMin() const;
float getMax() const;
private:
float _min, _max;
};
}
#endif
Referenced
Vec4
osgSim::ScalarsToColors::~ScalarsToColors
virtual ~ScalarsToColors()
Definition ScalarsToColors:35
osgSim::ScalarsToColors::getMin
float getMin() const
osgSim::ScalarsToColors::getMax
float getMax() const
osgSim::ScalarsToColors::ScalarsToColors
ScalarsToColors(float scalarMin, float scalarMax)
osgSim::ScalarsToColors::getColor
virtual osg::Vec4 getColor(float scalar) const
osg::Referenced
Definition Referenced:44
osgSim
Definition BlinkSequence:27
osg::Vec4
Vec4f Vec4
Definition Vec4:21
Export
OSGSIM_EXPORT
#define OSGSIM_EXPORT
Definition osgSim/Export:38