Class PoDataMapping
- All Implemented Interfaces:
SafeDisposable
- Direct Known Subclasses:
PoLinearDataMapping,PoNonLinearDataMapping,PoNonLinearDataMapping2
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.
File format/default:
| 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 |
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModesNested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SoSFFloatMaximum threshold value.final SoSFColorColor associated to values >= maxThreshold.final SoSFBoolDefines if the maximum threshold is enabled.final SoSFFloatTransparency associated to values >= maxThreshold.final SoSFFloatMinimum threshold value.final SoSFColorColor associated to values <= minThreshold.final SoSFBoolDefines if the minimum threshold is enabled.final SoSFFloatTransparency associated to values <= minThreshold.final SoSFBoolEnable/Disable the taking into account of transparency.final SoSFFloatEach primitive part of which transparency >= transparencyValueDeletedParts, is deleted.Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Method Summary
Methods inherited from class com.openinventor.meshviz.nodes.PoNode
callback, doAction, getBoundingBox, getMatrix, getPrimitiveCount, GLRender, handleEvent, pick, search, writeMethods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, copy, copy, distribute, getAlternateRep, getByName, getRenderEngineMode, getRenderUnitID, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, isBoundingBoxIgnoring, isOverride, rayPick, setOverride, touchMethods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsMethods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizableMethods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Field Details
-
minThresholdEnabled
Defines if the minimum threshold is enabled. Default is false. -
minThreshold
Minimum threshold value. Default is 0. -
minThresholdColor
Color associated to values <= minThreshold. Default is 0,0,0. -
minThresholdTransparency
Transparency associated to values <= minThreshold. Default is 0. -
maxThresholdEnabled
Defines if the maximum threshold is enabled. Default is false. -
maxThreshold
Maximum threshold value. Default is 0. -
maxThresholdColor
Color associated to values >= maxThreshold. Default is 0,0,0. -
maxThresholdTransparency
Transparency associated to values >= maxThreshold. Default is 0. -
transparencyEnabled
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.
-
transparencyValueDeletedParts
Each primitive part of which transparency >= transparencyValueDeletedParts, is deleted. Default is 0.95.
-