Class MoPredefinedColorMapping
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.nodes.SoNode
-
- com.openinventor.meshvizxlm.mapping.nodes.MoActionNode
-
- com.openinventor.meshvizxlm.mapping.nodes.MoColorMapping
-
- com.openinventor.meshvizxlm.mapping.nodes.MoPredefinedColorMapping
-
- All Implemented Interfaces:
SafeDisposable
public class MoPredefinedColorMapping extends MoColorMapping
Property node that selects a predefined color mapping.The range of the scalar values must be given to adjust the color map to the scalar set. If a value is less than
minValue
, the first color in the map is used. If a value is greater thanmaxValue
, the last color in the map is used. If a value is betweenminValue
andmaxValue
, linear interpolation is used to determine the color.- See Also:
MoColorMappingElement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MoPredefinedColorMapping.PredefColorMapping
Predefined colormaps.-
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 SoSFFloat
maxValue
The max value defining the range of scalar values.
The default value is 1.SoSFFloat
minValue
The min value defining the range of scalar values.
The default value is 0.SoSFEnum<MoPredefinedColorMapping.PredefColorMapping>
predefColorMap
Use this field to specify a predefined color map.-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description MoPredefinedColorMapping()
Constructs a property node with initial color map set toNONE
(node has no effect).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doAction(SoAction action)
MiColorMapping<java.lang.Double,java.awt.Color>
getColorMapping()
Retrieves the interface to the color mapping object.-
Methods inherited from class com.openinventor.meshvizxlm.mapping.nodes.MoActionNode
callback, distribute, getBoundingBox, getMatrix, getPrimitiveCount, getRenderEngineMode, GLRender, handleEvent, pick, rayPick
-
Methods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, copy, copy, getAlternateRep, getByName, getRenderUnitID, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, isBoundingBoxIgnoring, isOverride, search, setOverride, touch, write
-
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
-
minValue
public SoSFFloat minValue
The min value defining the range of scalar values.
The default value is 0.
-
maxValue
public SoSFFloat maxValue
The max value defining the range of scalar values.
The default value is 1.
-
predefColorMap
public SoSFEnum<MoPredefinedColorMapping.PredefColorMapping> predefColorMap
Use this field to specify a predefined color map.NONE Default (node is ignored) GREY or GRAY TEMPERATURE PHYSICS STANDARD GLOW BLUE_RED SEISMIC BLUE_WHITE_RED INTENSITY RAINBOW_TURBO Note: The checkerboard pattern shows through where the color map alpha (opacity) value is less than 1.0.
-
-
Method Detail
-
getColorMapping
public MiColorMapping<java.lang.Double,java.awt.Color> getColorMapping()
Retrieves the interface to the color mapping object.- Returns:
- color mapping interface
-
doAction
public void doAction(SoAction action)
- Overrides:
doAction
in classMoColorMapping
-
-