Property node that defines a color mapping with interpolated color in each interval. More...
#include <MeshVizXLM/mapping/nodes/MoLinearColorMapping.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
MoLinearColorMapping () | |
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 defines a linear color mapping defined by a set of scalar values and their corresponding colors. For a given value v, Vk <= v <= Vk+1, the associated color c is determined by a linear interpolation between (Vk,Ck) and (Vk+1,Ck+1). Where Vk,Ck is pair number k of the colormap.
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, MoLevelColorMapping, MoPredefinedColorMapping
MoLinearColorMapping::MoLinearColorMapping | ( | ) |
Constructor.
Initially the color mapping is empty and has no effect.
static SoType MoLinearColorMapping::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from MoColorMapping.
virtual SoType MoLinearColorMapping::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from MoColorMapping.
Contains a set of N colors defining the color at each scalar value.
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.