Interface TransformationStack

  • All Known Implementing Classes:
    TransformationStackImpl

    public interface TransformationStack
    Author:
    Pierre Lando
    • Method Detail

      • removeListener

        void removeListener​(TransformationStackListener listener)
        Remove a listener.
        Parameters:
        listener - removed listener.
      • peek

        Transformation peek()
        Return the top transformation.
        Returns:
        the top transformation.
      • push

        void push​(Transformation transformation)
        Push the given transformation on the stack.
        Parameters:
        transformation - the given transformation.
      • pushRightMultiply

        void pushRightMultiply​(Transformation transformation)
        Push the given transformation right time the peek on the stack.
        Parameters:
        transformation - the given transformation.
      • pushLeftMultiply

        void pushLeftMultiply​(Transformation transformation)
        Push the given transformation left time the peek on the stack.
        Parameters:
        transformation - the given transformation.
      • pop

        Transformation pop()
        Pop one matrix on the stack.
        Returns:
        the popped matrix.
      • clear

        void clear()
        Pop all matrix on the stack except identity.