public class PbDataMapping extends PbBase
Whichever data mapping, two threshold values can be defined, threshold_min and threshold_max. One color (cmin) and one transparency (transp_min) are associated to threshold_min . As well, cmax and transp_max are associated to threshold_max. For a given value vi <= threshold_min, the associated color ci is cmin and the associated transparency ti is transp_min. As well, for a given value vi >= threshold_max, the associated color ci is cmax and the associated transparency ti is transp_max.
By default min and max thresholds are disabled, threshold_min = 0 and threshold_max = 1 and no color is associated to threshold_min and threshold_max. Each part of primitive of which transparency is greater or equal 0.95 is deleted. This default value can be changed by the method setTransparencyValueDeletedParts()
.
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
void |
enableThresholds(boolean min,
boolean max)
Enable/Disable the taking into account of threshold values.
|
void |
enableTransparency(boolean flag)
Enable/Disable the taking into account of transparency.
|
float[] |
getHLSColor(float value)
Gets HLS color associated with a value.
|
float |
getTransparencyValueDeletedParts()
Gets a value that defines the following property : each primitive part of which transparency >= value, is deleted.
|
boolean |
isTransparencyEnabled()
Returns true if transparency is enabled, otherwise false.
|
void |
setMaxThreshold(float threshold_max)
Sets a maximum threshold.
|
void |
setMaxThreshold(float threshold_max,
float[] cmax)
Calls setMaxThreshold(threshold_max, cmax, (float)0.0).
|
void |
setMaxThreshold(float threshold_max,
float[] cmax,
float transp_max)
Sets a maximum threshold, associated to a HLS color and a transparency value.
|
void |
setMaxThreshold(float threshold_max,
SbColor cmax)
Calls setMaxThreshold(threshold_max, cmax, (float)0.0).
|
void |
setMaxThreshold(float threshold_max,
SbColor cmax,
float transp_max)
Sets a maximum threshold, associated to a RGB color and a transparency value.
|
void |
setMinThreshold(float threshold_min)
Sets a minimum threshold.
|
void |
setMinThreshold(float threshold_min,
float[] cmin)
Calls setMinThreshold(threshold_min, cmin, (float)0.0).
|
void |
setMinThreshold(float threshold_min,
float[] cmin,
float transp_min)
Sets a minimum threshold, associated to a HLS color and a transparency value.
|
void |
setMinThreshold(float threshold_min,
SbColor cmin)
Calls setMinThreshold(threshold_min, cmin, (float)0.0).
|
void |
setMinThreshold(float threshold_min,
SbColor cmin,
float transp_min)
Sets a minimum threshold, associated to a RGB color and a transparency value.
|
void |
setTransparencyValueDeletedParts(float value)
Sets a value that defines the following property : each primitive part of which transparency >= value, is deleted.
|
boolean[] |
thresholdsEnabled()
Returns min=true if the minimum threshold is enabled, otherwise false.
|
enableConnection, isConnectionEnabled, touch
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public void setMinThreshold(float threshold_min, float[] cmin)
public void setMinThreshold(float threshold_min, SbColor cmin)
public void setMaxThreshold(float threshold_max, SbColor cmax)
public void setMaxThreshold(float threshold_max, float[] cmax)
public void setMinThreshold(float threshold_min, SbColor cmin, float transp_min)
public void setMinThreshold(float threshold_min, float[] cmin, float transp_min)
public void setMaxThreshold(float threshold_max, float[] cmax, float transp_max)
public void setMaxThreshold(float threshold_max, SbColor cmax, float transp_max)
public void setMaxThreshold(float threshold_max)
public void setMinThreshold(float threshold_min)
public float[] getHLSColor(float value)
public boolean[] thresholdsEnabled()
public void enableTransparency(boolean flag)
public void enableThresholds(boolean min, boolean max)
public float getTransparencyValueDeletedParts()
public boolean isTransparencyEnabled()
public void setTransparencyValueDeletedParts(float value)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com