Class SoDepthOffsetElement


public class SoDepthOffsetElement extends SoFloatElement
Manage SoDepthOffset nodes accumulation in state. This element stores SoDepthOffset nodes encountered during traversal at any given time. Requesting for current offset at a given time (throught get() method) returns the global accumulated offset, computed from all previously SoDepthOffset nodes encountered in current path traversal.
  • Method Details

    • set

      public static void set(SoState state, float offset)
      Sets the current offset in the state.
    • set

      public static void set(SoState state, SoNode name_10810, float offset)
      Sets the current offset in the state.
    • getMaxOffset

      public static float getMaxOffset(SoState state)
      Returns current accumulated offset from the state.
    • getClassStackIndex

      @Deprecated(since="9.3.0.0") public static int getClassStackIndex()
      Deprecated.
      As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)
      Returns the stack id for this element. ] *
    • set

      public static void set(SoState state, float name_10813, float name_10814, float name_10815)
      Sets the current offset in the state.
    • push

      public void push(SoState name_10833)
      Push the element into the state.
      Overrides:
      push in class SoElement
    • setMaxOffset

      public static void setMaxOffset(SoState state, float offset)
      Sets the current offset in the state.
    • pop

      public void pop(SoState name_10834, SoElement name_10835)
      Pop the element from the state.
      Overrides:
      pop in class SoElement
    • get

      public static float get(SoState state)
      Returns current accumulated offset from the state.