Property node that defines a color mapping with constant color in each interval. More...
#include <MeshVizXLM/mapping/nodes/MoLevelColorMapping.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
MoLevelColorMapping () | |
const MbLevelColorMapping < double, SbColorRGBA > & | getColorMapper () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoMFFloat | values |
SoMFVec4f | colors |
SoSFBool | minThresholdEnable |
SoSFFloat | minThresholdValue |
SoSFVec4f | minThresholdColor |
SoSFBool | maxThresholdEnable |
SoSFFloat | maxThresholdValue |
SoSFVec4f | maxThresholdColor |
This node specifies a color mapping defined by a set of N scalar values (thus N-1 intervals) and N-1 colors representing the constant color used for values located in each interval. Thus, for a given value v, Vk <= v < Vk+1, the associated color is Ck.
Notes:
values | 0 |
colors | 0,0,0,0 |
minThresholdEnable | FALSE |
minThresholdValue | 0 |
minThresholdColor | 0,0,0,0 |
maxThresholdEnable | FALSE |
maxThresholdValue | 0 |
maxThresholdColor | 0,0,0,0 |
MoCombineColorMapping, MoCustomColorMapping, MoLinearColorMapping, MoPredefinedColorMapping
MoLevelColorMapping::MoLevelColorMapping | ( | ) |
Constructor.
Initially the color mapping is empty and has no effect.
static SoType MoLevelColorMapping::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from MoColorMapping.
const MbLevelColorMapping<double,SbColorRGBA>& MoLevelColorMapping::getColorMapper | ( | ) | const [inline] |
Returns the internal MbLevelColorMapping color mapper.
virtual SoType MoLevelColorMapping::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from MoColorMapping.
Contains a set of N-1 color values defining the constant color of each level.
Each color consists of R, G, B and A values in the range 0..1. Default is empty.
Max Threshold color (R, G, B and A values in the range 0..1).
Default is transparent black (0,0,0,0).
Max Threshold enable flag.
When TRUE, values higher than maxThresholdValue are displayed using the maxThresholdColor. Default is FALSE.
Max Threshold value.
Default is 0.
Min Threshold color (R, G, B and A values in the range 0..1).
Default is transparent black (0,0,0,0).
Min Threshold enable flag.
When TRUE, values lower than minThresholdValue are displayed using the minThresholdColor. Default is FALSE.
Min Threshold value.
Default is 0.
Contains a set of N scalar values defining the levels of the colormap.
Default is empty.