Property node that defines a custom color mapping. More...
#include <MeshVizXLM/mapping/nodes/MoCustomColorMapping.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
MoCustomColorMapping () | |
virtual void | setColorMapping (const MiColorMapping< double, SbColorRGBA > *colorMapping) |
virtual const MiColorMapping < double, SbColorRGBA > * | getColorMapping () |
Static Public Member Functions | |
static SoType | getClassTypeId () |
This node specifies a custom color mapping function defined by a custom MiColorMapping object provided by the application. Specifically an MiColorMapping object that maps a double value to an SbColorRGBA value.
MiColorMapping, MoCombineColorMapping MoLevelColorMapping, MoLinearColorMapping, MoPredefinedColorMapping
MoCustomColorMapping::MoCustomColorMapping | ( | ) |
Constructor.
Initially the color mapping is empty and has no effect.
static SoType MoCustomColorMapping::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from MoColorMapping.
virtual const MiColorMapping<double,SbColorRGBA>* MoCustomColorMapping::getColorMapping | ( | ) | [virtual] |
Gets the color mapping interface.
virtual SoType MoCustomColorMapping::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from MoColorMapping.
virtual void MoCustomColorMapping::setColorMapping | ( | const MiColorMapping< double, SbColorRGBA > * | colorMapping | ) | [virtual] |
Sets the color mapping interface.
Sets the node as modified by calling touch(). When setting a new color map, the MiColorMapping::getTimeStamp() must return a different value than previously to actually take into account the change of color map.