Abstract base class for all data mapping nodes. More...
#include <MeshViz/nodes/PoDataMapping.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SbColor * | getColor (float value)=0 |
virtual const SbColor * | getColor (float value, float &transparency)=0 |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFBool | minThresholdEnabled |
SoSFFloat | minThreshold |
SoSFColor | minThresholdColor |
SoSFFloat | minThresholdTransparency |
SoSFBool | maxThresholdEnabled |
SoSFFloat | maxThreshold |
SoSFColor | maxThresholdColor |
SoSFFloat | maxThresholdTransparency |
SoSFBool | transparencyEnabled |
SoSFFloat | transparencyValueDeletedParts |
This node is the abstract base class for all data mapping nodes. Data mapping defines an association between colors, transparencies and floating-point values. Giving transparencies is not compulsory. When they are not given, they are supposed to be equal to 0 , i.e. each color is opaque.
Whatever data mapping, two threshold values can be defined, minThreshold and maxThreshold. One color (minThresholdColor) and one transparency (minThresholdTransparency) are associated to minThreshold. As well, maxThresholdColor and maxThresholdTransparency are associated to maxThreshold. For a given value vi <= minThreshold, the associated color ci is minThresholdColor and the associated transparency ti is minThresholdTransparency. As well, for a given value vi >= maxThreshold, the associated color ci is maxThresholdColor and the associated transparency ti is maxThresholdTransparency.
minThresholdEnabled | FALSE |
minThreshold | 0 |
minThresholdColor | 0 0 0 |
minThresholdTransparency | 0.0 |
maxThresholdEnabled | FALSE |
maxThreshold | 1 |
maxThresholdColor | 0 0 0 |
maxThresholdTransparency | 0.0 |
transparencyEnabled | FALSE |
transparencyValueDeletedParts | 0.95 |
static SoType PoDataMapping::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoNode.
Reimplemented in PoLinearDataMapping, PoNonLinearDataMapping, and PoNonLinearDataMapping2.
virtual const SbColor* PoDataMapping::getColor | ( | float | value, | |
float & | transparency | |||
) | [pure virtual] |
Returns the color and the transparency associated to a value.
Implemented in PoLinearDataMapping, PoNonLinearDataMapping, and PoNonLinearDataMapping2.
virtual const SbColor* PoDataMapping::getColor | ( | float | value | ) | [pure virtual] |
Returns the color associated to a value.
Implemented in PoLinearDataMapping, PoNonLinearDataMapping, and PoNonLinearDataMapping2.
virtual SoType PoDataMapping::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoNode.
Reimplemented in PoLinearDataMapping, PoNonLinearDataMapping, and PoNonLinearDataMapping2.
Maximum threshold value.
Default is 0.
Color associated to values >= maxThreshold.
Default is 0,0,0.
Defines if the maximum threshold is enabled.
Default is false.
Transparency associated to values >= maxThreshold.
Default is 0.
Minimum threshold value.
Default is 0.
Color associated to values <= minThreshold.
Default is 0,0,0.
Defines if the minimum threshold is enabled.
Default is false.
Transparency associated to values <= minThreshold.
Default is 0.
Enable/Disable the taking into account of transparency.
If it is disabled, the different shape are always opaque. Default is false.
Note: DataMapping does not support data PER_CELL binding when transparencyEnabled is set to TRUE and transparencyValueDeletedParts <= 1.0.
Each primitive part of which transparency >= transparencyValueDeletedParts, is deleted.
Default is 0.95.