Package com.openinventor.meshviz.data
Class PbDefinedValue
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.meshviz.data.PbDefinedValue
-
public class PbDefinedValue extends Inventor
Class used to manage "defined" and "undefined" values. This class manages "defined" and "undefined" values. By default, it assumes that all mesh nodes are "defined" and that the value used to indicate an "undefined" value is 0.0.In order to change this default behavior, this class must be subclassed by overriding operator()() and/or
getUndef()
.Undefined values are used when applying a "data mapping". See
PbDataMapping
andPbDataMapping.setMinThreshold()
orPbDataMapping.setMaxThreshold()
.
-
-
Nested Class Summary
-
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
Constructors Constructor Description PbDefinedValue()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getUndef(int set_index)
The default instance ofPbDefinedValue
always returns 0.0, the default float value used to indicate an "undefined" value.-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
getUndef
public float getUndef(int set_index)
The default instance ofPbDefinedValue
always returns 0.0, the default float value used to indicate an "undefined" value. This float value is used by MeshViz to set a node's value to something that means "undefined". This method should be overridden (by subclassing) if the application wants a value other than 0.0 to indicate an "undefined" value.
-
-