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 Detail

      • 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_10806,
                               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_10809,
                               float name_10810,
                               float name_10811)
        Sets the current offset in the state.
      • push

        public void push​(SoState name_10829)
        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.
      • get

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