Package com.openinventor.meshviz.graph
Class PbLinearDataMapping
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.meshviz.graph.PbBase
com.openinventor.meshviz.graph.PbDataMapping
com.openinventor.meshviz.graph.PbLinearDataMapping
- All Implemented Interfaces:
Cloneable
Class to define linear data mapping.
This class is used to define linear data mapping. This object 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 (v1 and v2), two associated transparencies(t1,t2) and two associated colors (c1 and c2) define these functions. For a given value vi, its color ci is determined by linear interpolation between (v1,c1) and (v2,c2). Idem for the transparencies. By default v1=0, v2=0, c1=(0,0,0) (black), c2=(1,1,1) (white), t1=t2=0.0 (opaque).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).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.PbLinearDataMapping
(PbLinearDataMapping linearDataMap) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Gets the current values v1,v2, the associated transparecny t1,t2, and the associated HLS colors c1, c2.Gets the current values v1,v2 and the associated HLS colors c1, c2.Gets the current values v1,v2, the associated transparecny t1,t2, and the associated RGB colors c1, c2.Gets the current values v1,v2 and the associated RGB colors c1, c2.void
setValues
(float v1, float[] c1, float v2, float[] c2) Sets values v1,v2 and the associated HLS colors c1, c2.void
setValues
(float v1, float[] c1, float t1, float v2, float[] c2, float t2) Sets values v1,v2, the associated transparecny t1,t2, and the associated HLS colors c1, c2.void
Sets values v1,v2, the associated transparecny t1,t2, and the associated RGB colors c1, c2.void
Sets values v1,v2 and the associated RGB colors c1, c2.Methods inherited from class com.openinventor.meshviz.graph.PbDataMapping
enableThresholds, enableTransparency, getHLSColor, getTransparencyValueDeletedParts, isTransparencyEnabled, setMaxThreshold, setMaxThreshold, setMaxThreshold, setMaxThreshold, setMaxThreshold, setMinThreshold, setMinThreshold, setMinThreshold, setMinThreshold, setMinThreshold, setTransparencyValueDeletedParts, thresholdsEnabled
Methods inherited from class com.openinventor.meshviz.graph.PbBase
enableConnection, isConnectionEnabled, touch
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Constructor Details
-
PbLinearDataMapping
Copy constructor. -
PbLinearDataMapping
public PbLinearDataMapping()Default constructor.
-
-
Method Details
-
clone
-
getHLSAValues
Gets the current values v1,v2, the associated transparecny t1,t2, and the associated HLS colors c1, c2. -
setValues
public void setValues(float v1, float[] c1, float t1, float v2, float[] c2, float t2) Sets values v1,v2, the associated transparecny t1,t2, and the associated HLS colors c1, c2. -
getRGBAValues
Gets the current values v1,v2, the associated transparecny t1,t2, and the associated RGB colors c1, c2. -
setValues
Sets values v1,v2, the associated transparecny t1,t2, and the associated RGB colors c1, c2. -
getRGBValues
Gets the current values v1,v2 and the associated RGB colors c1, c2. -
setValues
public void setValues(float v1, float[] c1, float v2, float[] c2) Sets values v1,v2 and the associated HLS colors c1, c2. -
getHLSValues
Gets the current values v1,v2 and the associated HLS colors c1, c2. -
setValues
Sets values v1,v2 and the associated RGB colors c1, c2.
-