Class TransformationStackImpl
java.lang.Object
org.scilab.forge.scirenderer.tranformations.TransformationStackImpl
- All Implemented Interfaces:
TransformationStack
- Author:
- Pierre Lando
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.scilab.forge.scirenderer.tranformations.TransformationStack
TransformationStack.TransformationStackEvent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(TransformationStackListener listener) Add a listener.voidclear()Pop all matrix on the stack except identity.protected voidFire a change event.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.
-
Constructor Details
-
TransformationStackImpl
public TransformationStackImpl()
-
-
Method Details
-
addListener
Description copied from interface:TransformationStackAdd a listener.- Specified by:
addListenerin interfaceTransformationStack- Parameters:
listener- added listener.
-
removeListener
Description copied from interface:TransformationStackRemove a listener.- Specified by:
removeListenerin interfaceTransformationStack- Parameters:
listener- removed listener.
-
peek
Description copied from interface:TransformationStackReturn the top transformation.- Specified by:
peekin interfaceTransformationStack- Returns:
- the top transformation.
-
push
Description copied from interface:TransformationStackPush the given transformation on the stack.- Specified by:
pushin interfaceTransformationStack- Parameters:
transformation- the given transformation.
-
pushRightMultiply
Description copied from interface:TransformationStackPush the given transformation right time the peek on the stack.- Specified by:
pushRightMultiplyin interfaceTransformationStack- Parameters:
transformation- the given transformation.
-
pushLeftMultiply
Description copied from interface:TransformationStackPush the given transformation left time the peek on the stack.- Specified by:
pushLeftMultiplyin interfaceTransformationStack- Parameters:
transformation- the given transformation.
-
pop
Description copied from interface:TransformationStackPop one matrix on the stack.- Specified by:
popin interfaceTransformationStack- Returns:
- the popped matrix.
-
clear
public void clear()Description copied from interface:TransformationStackPop all matrix on the stack except identity.- Specified by:
clearin interfaceTransformationStack
-
fireChanged
Fire a change event.- Parameters:
event- the event.top- the new top transformation.
-