Class MoDrawStyleElement


public class MoDrawStyleElement extends SoReplacedElement
Element that stores the current draw style.
See Also:
  • Method Details

    • set

      public static void set(SoState state, MoDrawStyle ds)
      Sets the current draw style for the specified traversal state and node.
      Parameters:
      state - traversal state
      ds - 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 DrawStyle object 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 DrawStyle object containing default draw style settings