public class PbLinearDataMapping extends PbDataMapping implements java.lang.Cloneable
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).
Modifier and Type | Class and Description |
---|---|
static class |
PbLinearDataMapping.HLSMapping |
static class |
PbLinearDataMapping.HLSTransparencyMapping |
static class |
PbLinearDataMapping.RGBMapping |
static class |
PbLinearDataMapping.RGBTransparencyMapping |
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
PbLinearDataMapping()
Default constructor.
|
PbLinearDataMapping(PbLinearDataMapping linearDataMap)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
PbLinearDataMapping.HLSTransparencyMapping |
getHLSAValues()
Gets the current values v1,v2, the associated transparecny t1,t2, and the associated HLS colors c1, c2.
|
PbLinearDataMapping.HLSMapping |
getHLSValues()
Gets the current values v1,v2 and the associated HLS colors c1, c2.
|
PbLinearDataMapping.RGBTransparencyMapping |
getRGBAValues()
Gets the current values v1,v2, the associated transparecny t1,t2, and the associated RGB colors c1, c2.
|
PbLinearDataMapping.RGBMapping |
getRGBValues()
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 |
setValues(float v1,
SbColor c1,
float t1,
float v2,
SbColor c2,
float t2)
Sets values v1,v2, the associated transparecny t1,t2, and the associated RGB colors c1, c2.
|
void |
setValues(float v1,
SbColor c1,
float v2,
SbColor c2)
Sets values v1,v2 and the associated RGB colors c1, c2.
|
enableThresholds, enableTransparency, getHLSColor, getTransparencyValueDeletedParts, isTransparencyEnabled, setMaxThreshold, setMaxThreshold, setMaxThreshold, setMaxThreshold, setMaxThreshold, setMinThreshold, setMinThreshold, setMinThreshold, setMinThreshold, setMinThreshold, setTransparencyValueDeletedParts, thresholdsEnabled
enableConnection, isConnectionEnabled, touch
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public PbLinearDataMapping(PbLinearDataMapping linearDataMap)
public PbLinearDataMapping()
public java.lang.Object clone()
clone
in class java.lang.Object
public void setValues(float v1, float[] c1, float v2, float[] c2)
public PbLinearDataMapping.RGBMapping getRGBValues()
public void setValues(float v1, SbColor c1, float t1, float v2, SbColor c2, float t2)
public void setValues(float v1, float[] c1, float t1, float v2, float[] c2, float t2)
public PbLinearDataMapping.RGBTransparencyMapping getRGBAValues()
public PbLinearDataMapping.HLSTransparencyMapping getHLSAValues()
public PbLinearDataMapping.HLSMapping getHLSValues()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com