Interface TransformationStack
- All Known Implementing Classes:
TransformationStackImpl
public interface TransformationStack
- Author:
- Pierre Lando
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Enum of possible transformation stack event. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(TransformationStackListener listener) Add a listener.void
clear()
Pop all matrix on the stack except identity.peek()
Return the top 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 Details
-
addListener
Add a listener.- Parameters:
listener
- added listener.
-
removeListener
Remove a listener.- Parameters:
listener
- removed listener.
-
peek
Transformation peek()Return the top transformation.- Returns:
- the top transformation.
-
push
Push the given transformation on the stack.- Parameters:
transformation
- the given transformation.
-
pushRightMultiply
Push the given transformation right time the peek on the stack.- Parameters:
transformation
- the given transformation.
-
pushLeftMultiply
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.
-