Class TransformationManagerImpl
java.lang.Object
org.scilab.forge.scirenderer.tranformations.TransformationManagerImpl
- All Implemented Interfaces:
TransformationManager
Default
TransformationManager implementation.- Author:
- Pierre Lando
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(TransformationManagerListener listener) Add a listener.protected voidNotify listeners the top transformation have changed.Return the canvas projection matrix.Return the canvas projection matrix for Graphics2D.Return the projection matrix (no modelView).Return the window projection matrix for Graphics2D.Return the inverse of window transformation.Return the model view matrix stack.Return the projection matrix stack.Return the top scene transformation.Return the window transformation.booleanReturn true if is using scene coordinate.voidremoveListener(TransformationManagerListener listener) Remove a listener.voidreset()Clear all stack.voidSwitch to scene coordinate.voidSwitch to window coordinate.
-
Constructor Details
-
TransformationManagerImpl
Standard constructor.- Parameters:
canvas- the canvas.
-
-
Method Details
-
addListener
Description copied from interface:TransformationManagerAdd a listener.- Specified by:
addListenerin interfaceTransformationManager- Parameters:
listener- added.
-
removeListener
Description copied from interface:TransformationManagerRemove a listener.- Specified by:
removeListenerin interfaceTransformationManager- Parameters:
listener- removed.
-
getModelViewStack
Description copied from interface:TransformationManagerReturn the model view matrix stack.- Specified by:
getModelViewStackin interfaceTransformationManager- Returns:
- the model view matrix stack.
-
getProjectionStack
Description copied from interface:TransformationManagerReturn the projection matrix stack.- Specified by:
getProjectionStackin interfaceTransformationManager- Returns:
- the projection matrix stack.
-
getTransformation
Description copied from interface:TransformationManagerReturn the top scene transformation.- Specified by:
getTransformationin interfaceTransformationManager- Returns:
- the top scene transformation.
-
getWindowTransformation
Description copied from interface:TransformationManagerReturn the window transformation.- Specified by:
getWindowTransformationin interfaceTransformationManager- Returns:
- the window transformation.
-
getInverseWindowTransformation
Description copied from interface:TransformationManagerReturn the inverse of window transformation.- Specified by:
getInverseWindowTransformationin interfaceTransformationManager- Returns:
- the inverse window transformation.
-
getCanvasProjection
Description copied from interface:TransformationManagerReturn the canvas projection matrix.- Specified by:
getCanvasProjectionin interfaceTransformationManager- Returns:
- the canvas projection matrix.
-
getG2DProjection
Description copied from interface:TransformationManagerReturn the canvas projection matrix for Graphics2D.- Specified by:
getG2DProjectionin interfaceTransformationManager- Returns:
- the canvas projection matrix.
-
getG2DSingleProjection
Description copied from interface:TransformationManagerReturn the projection matrix (no modelView).- Specified by:
getG2DSingleProjectionin interfaceTransformationManager- Returns:
- the projection matrix.
-
getG2DWindowProjection
Description copied from interface:TransformationManagerReturn the window projection matrix for Graphics2D.- Specified by:
getG2DWindowProjectionin interfaceTransformationManager- Returns:
- the window projection matrix.
-
reset
public void reset()Description copied from interface:TransformationManagerClear all stack.- Specified by:
resetin interfaceTransformationManager
-
useWindowCoordinate
public void useWindowCoordinate()Description copied from interface:TransformationManagerSwitch to window coordinate.- Specified by:
useWindowCoordinatein interfaceTransformationManager
-
useSceneCoordinate
public void useSceneCoordinate()Description copied from interface:TransformationManagerSwitch to scene coordinate.- Specified by:
useSceneCoordinatein interfaceTransformationManager
-
isUsingSceneCoordinate
public boolean isUsingSceneCoordinate()Description copied from interface:TransformationManagerReturn true if is using scene coordinate.- Specified by:
isUsingSceneCoordinatein interfaceTransformationManager- Returns:
- true if is using scene coordinate.
-
fireTransformationChanged
protected void fireTransformationChanged()Notify listeners the top transformation have changed.
-