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_11083,
                               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
        public static int getClassStackIndex()
        Deprecated.
        As of Open Inventor 9300. replaced by SoElement.getClassStackIndex(Class)
        Returns the stack id for this element. ] *
      • set

        public static void set​(SoState state,
                               float name_11086,
                               float name_11087,
                               float name_11088)
        Sets the current offset in the state.
      • push

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