Package com.openinventor.meshviz.nodes
Class PoLinearDataMapping
- java.lang.Object
-
- All Implemented Interfaces:
SafeDisposable
public class PoLinearDataMapping extends PoDataMapping
Node class to define a linear data mapping. This node defines the current data mapping for all subsequent MeshViz representations which use it. There is no data mapping until aPoDataMapping
node is traversed.This node defines a linear association between colors, transparencies and floating-point values. In other words, this association is defined by 2 functions F(c,v) and F(c,t):
F(c,v) and F(t,v) are linear, so only two values (value1 and value2), two associated transparencies (transparency1,transparency2) and two associated colors (color1 and color2) define these functions. For a given value vi, its color ci is determined by linear interpolation between (value1,color1) and (value2,color2). Idem for the transparencies.F(c,v)(V) = C (with c being a color and v being a value). F(t,v)(V) = T (with t being a transparency and v being a value). File format/default:
value1 0 color1 0 0 0 transparency1 0 value2 1 color2 1 1 1 transparency2 0 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 SoSFColor
color1
Defines the first color of the linear data mapping.SoSFColor
color2
Defines the second color of the linear data mapping.SoSFFloat
transparency1
Defines the first transparency of the linear data mapping.SoSFFloat
transparency2
Defines the second transparency of the linear data mapping.SoSFFloat
value1
Defines the first value of the linear data mapping.SoSFFloat
value2
Defines the second value of the linear data mapping.-
Fields inherited from class com.openinventor.meshviz.nodes.PoDataMapping
maxThreshold, maxThresholdColor, maxThresholdEnabled, maxThresholdTransparency, minThreshold, minThresholdColor, minThresholdEnabled, minThresholdTransparency, transparencyEnabled, transparencyValueDeletedParts
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description PoLinearDataMapping()
Constructor.
-
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
-
value1
public final SoSFFloat value1
Defines the first value of the linear data mapping.
-
color1
public final SoSFColor color1
Defines the first color of the linear data mapping.
-
transparency1
public final SoSFFloat transparency1
Defines the first transparency of the linear data mapping.
-
value2
public final SoSFFloat value2
Defines the second value of the linear data mapping.
-
color2
public final SoSFColor color2
Defines the second color of the linear data mapping.
-
transparency2
public final SoSFFloat transparency2
Defines the second transparency of the linear data mapping.
-
-