openscenegraph
|
#include <ScalarsToColors>
Public Member Functions | |
ScalarsToColors (float scalarMin, float scalarMax) | |
virtual | ~ScalarsToColors () |
virtual osg::Vec4 | getColor (float scalar) const |
float | getMin () const |
float | getMax () const |
![]() | |
Referenced () | |
Referenced (bool threadSafeRefUnref) | |
Referenced (const Referenced &) | |
Referenced & | operator= (const Referenced &) |
virtual void | setThreadSafeRefUnref (bool) |
bool | getThreadSafeRefUnref () const |
OpenThreads::Mutex * | getRefMutex () const |
int | ref () const |
int | unref () const |
int | unref_nodelete () const |
int | referenceCount () const |
ObserverSet * | getObserverSet () const |
ObserverSet * | getOrCreateObserverSet () const |
void | addObserver (Observer *observer) const |
void | removeObserver (Observer *observer) const |
Additional Inherited Members | |
![]() | |
static OpenThreads::Mutex * | getGlobalReferencedMutex () |
static void | setDeleteHandler (DeleteHandler *handler) |
static DeleteHandler * | getDeleteHandler () |
![]() | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
![]() | |
OpenThreads::AtomicPtr | _observerSet |
OpenThreads::Atomic | _refCount |
ScalarsToColors defines the interface to map a scalar value to a color, and provides a default implementation of the mapping functionaltity, with colors ranging from black to white across the min - max scalar range.
osgSim::ScalarsToColors::ScalarsToColors | ( | float | scalarMin, |
float | scalarMax | ||
) |
|
inlinevirtual |
|
virtual |
Get the color for a given scalar value.
Reimplemented in osgSim::ColorRange.
float osgSim::ScalarsToColors::getMax | ( | ) | const |
Get the maximum scalar value.
float osgSim::ScalarsToColors::getMin | ( | ) | const |
Get the minimum scalar value.