Interface TransformationStack

All Known Implementing Classes:
TransformationStackImpl

public interface TransformationStack
Author:
Pierre Lando
  • Method Details

    • addListener

      void addListener(TransformationStackListener listener)
      Add a listener.
      Parameters:
      listener - added listener.
    • removeListener

      void removeListener(TransformationStackListener listener)
      Remove a listener.
      Parameters:
      listener - removed listener.
    • 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

      Pop one matrix on the stack.
      Returns:
      the popped matrix.
    • clear

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