Class MoDrawStyleElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.SoReplacedElement
-
- com.openinventor.meshvizxlm.mapping.elements.MoDrawStyleElement
-
public class MoDrawStyleElement extends SoReplacedElement
Element that stores the current draw style.- See Also:
MoDrawStyle
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMoDrawStyleElement.DrawStyleUtility class to store draw style parameters.-
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
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MoDrawStyleElement.DrawStylegetDefault()Returns default draw style settings.static MoDrawStyleElement.DrawStylegetDrawStyle(SoState state)Returns the current draw style from the specified traversal state.static floatgetFadingThreshold(SoState state)Returns the current fading threshold from the specified traversal state.static voidset(SoState state, MoDrawStyle ds)Sets the current draw style for the specified traversal state and node.-
Methods inherited from class com.openinventor.inventor.elements.SoReplacedElement
getClassStackIndex
-
Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex, pop, push
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
set
public static void set(SoState state, MoDrawStyle ds)
Sets the current draw style for the specified traversal state and node.- Parameters:
state- traversal stateds- draw style node
-
getDrawStyle
public static MoDrawStyleElement.DrawStyle getDrawStyle(SoState state)
Returns the current draw style from the specified traversal state.- Parameters:
state- traversal state- Returns:
- a
DrawStyleobject containing current draw style settings
-
getFadingThreshold
public static float getFadingThreshold(SoState state)
Returns the current fading threshold from the specified traversal state.- Parameters:
state- traversal state- Returns:
- current fading threshold setting
-
getDefault
public static MoDrawStyleElement.DrawStyle getDefault()
Returns default draw style settings.- Returns:
- a
DrawStyleobject containing default draw style settings
-
-