Interface TransformationStack
-
- All Known Implementing Classes:
TransformationStackImpl
public interface TransformationStack
- Author:
- Pierre Lando
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TransformationStack.TransformationStackEvent
Enum of possible transformation stack event.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(TransformationStackListener listener)
Add a listener.void
clear()
Pop all matrix on the stack except identity.Transformation
peek()
Return the top transformation.Transformation
pop()
Pop one matrix on the stack.void
push(Transformation transformation)
Push the given transformation on the stack.void
pushLeftMultiply(Transformation transformation)
Push the given transformation left time the peek on the stack.void
pushRightMultiply(Transformation transformation)
Push the given transformation right time the peek on the stack.void
removeListener(TransformationStackListener listener)
Remove a listener.
-
-
-
Method Detail
-
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
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.
-
-