Interface TransformationStack
- All Known Implementing Classes:
TransformationStackImpl
public interface TransformationStack
- Author:
- Pierre Lando
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumEnum of possible transformation stack event. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(TransformationStackListener listener) Add a listener.voidclear()Pop all matrix on the stack except identity.peek()Return the top transformation.pop()Pop one matrix on the stack.voidpush(Transformation transformation) Push the given transformation on the stack.voidpushLeftMultiply(Transformation transformation) Push the given transformation left time the peek on the stack.voidpushRightMultiply(Transformation transformation) Push the given transformation right time the peek on the stack.voidremoveListener(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.
-