public interface TransformationStack
Modifier and Type | Interface and Description |
---|---|
static class |
TransformationStack.TransformationStackEvent
Enum of possible transformation stack event.
|
Modifier and Type | Method and 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.
|
void addListener(TransformationStackListener listener)
listener
- added listener.void removeListener(TransformationStackListener listener)
listener
- removed listener.Transformation peek()
void push(Transformation transformation)
transformation
- the given transformation.void pushRightMultiply(Transformation transformation)
transformation
- the given transformation.void pushLeftMultiply(Transformation transformation)
transformation
- the given transformation.Transformation pop()
void clear()