Class SoElement

    • Method Detail

      • getClassStackIndex

        public static <E extends SoElement> int getClassStackIndex​(java.lang.Class<E> elementClass)
        Returns the stack id for the element type.
        Parameters:
        elementClass - Type of element. The type must not be an abstract type.
        Returns:
        The stack id for the element type.
        Throws:
        java.lang.IllegalArgumentException - if the specified type is an abstract type.
      • push

        public void push​(SoState state)
        Pushes element. Allows for side effects to occur. Default methods do nothing.
      • pop

        public void pop​(SoState state,
                        SoElement prevTopElement)
        Pops element. Allows for side effects to occur. Default methods do nothing.