Class SoSwitchElement


  • public class SoSwitchElement
    extends SoInt32Element
    Stores the current switch index. This element stores the current switch index. This is set by several nodes and is used to allow SoSwitch nodes to inherit the index.

    See Also:
    SoArray, SoMultipleCopy, SoSwitch
    • Method Detail

      • 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. ] *
      • getDefault

        public static int getDefault()
        Returns the default switch index.
      • set

        public static void set​(SoState state,
                               int index)
        Sets the current switch index in the state.
      • get

        public static int get​(SoState state)
        Returns current switch index from the state.
      • set

        public static void set​(SoState state,
                               SoNode name_22309,
                               int index)
        Sets the current switch index in the state.