Class PoDataMapping
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.nodes.SoNode
-
- com.openinventor.meshviz.nodes.PoNode
-
- com.openinventor.meshviz.nodes.PoDataMapping
-
- All Implemented Interfaces:
SafeDisposable
- Direct Known Subclasses:
PoLinearDataMapping
,PoNonLinearDataMapping
,PoNonLinearDataMapping2
public abstract class PoDataMapping extends PoNode
Abstract base class for all data mapping nodes. 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.
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.RenderModes
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description SoSFFloat
maxThreshold
Maximum threshold value.SoSFColor
maxThresholdColor
Color associated to values >= maxThreshold.SoSFBool
maxThresholdEnabled
Defines if the maximum threshold is enabled.SoSFFloat
maxThresholdTransparency
Transparency associated to values >= maxThreshold.SoSFFloat
minThreshold
Minimum threshold value.SoSFColor
minThresholdColor
Color associated to values <= minThreshold.SoSFBool
minThresholdEnabled
Defines if the minimum threshold is enabled.SoSFFloat
minThresholdTransparency
Transparency associated to values <= minThreshold.SoSFBool
transparencyEnabled
Enable/Disable the taking into account of transparency.SoSFFloat
transparencyValueDeletedParts
Each 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, write
-
Methods 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, touch
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Field Detail
-
minThresholdEnabled
public final SoSFBool minThresholdEnabled
Defines if the minimum threshold is enabled. Default is false.
-
minThreshold
public final SoSFFloat minThreshold
Minimum threshold value. Default is 0.
-
minThresholdColor
public final SoSFColor minThresholdColor
Color associated to values <= minThreshold. Default is 0,0,0.
-
minThresholdTransparency
public final SoSFFloat minThresholdTransparency
Transparency associated to values <= minThreshold. Default is 0.
-
maxThresholdEnabled
public final SoSFBool maxThresholdEnabled
Defines if the maximum threshold is enabled. Default is false.
-
maxThreshold
public final SoSFFloat maxThreshold
Maximum threshold value. Default is 0.
-
maxThresholdColor
public final SoSFColor maxThresholdColor
Color associated to values >= maxThreshold. Default is 0,0,0.
-
maxThresholdTransparency
public final SoSFFloat maxThresholdTransparency
Transparency associated to values >= maxThreshold. Default is 0.
-
transparencyEnabled
public final SoSFBool 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
public final SoSFFloat transparencyValueDeletedParts
Each primitive part of which transparency >= transparencyValueDeletedParts, is deleted. Default is 0.95.
-
-