public class MoMaterialElement extends SoReplacedElement
MoMaterial
Modifier and Type | Class and Description |
---|---|
static class |
MoMaterialElement.Material
Utility class to store colors and coloring options.
|
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
static MoMaterialElement.Material |
getDefault()
Returns default colors and coloring options.
|
static MoMaterialElement.Material |
getMaterial(SoState state)
Returns current colors and coloring options from the specified traversal
state.
|
static void |
set(SoState state,
SoNode node,
MoMaterial.ColoringType coloring,
SbColor color,
MoMaterial.ColoringType lineColoring,
SbColor lineColor,
MoMaterial.ColoringType markerColoring,
SbColor markerColor,
float transparency)
Sets the current colors and coloring options for the specified traversal
state and node.
|
getClassStackIndex
getClassStackIndex, pop, push
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public static MoMaterialElement.Material getDefault()
Material
object containing default colors and coloring
optionspublic static void set(SoState state, SoNode node, MoMaterial.ColoringType coloring, SbColor color, MoMaterial.ColoringType lineColoring, SbColor lineColor, MoMaterial.ColoringType markerColoring, SbColor markerColor, float transparency)
state
- traversal statenode
- material nodecoloring
- coloring method for facescolor
- color used for faceslineColoring
- coloring method for lineslineColor
- color used for linesmarkerColoring
- coloring method for pointsmarkerColor
- color used for pointstransparency
- transparency value used to display surfacespublic static MoMaterialElement.Material getMaterial(SoState state)
state
- traversal stateMaterial
object containing current colors and coloring
optionsGenerated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com