|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.scilab.forge.scirenderer.tranformations.TransformationManagerImpl
public class TransformationManagerImpl
Default TransformationManager implementation.
| Constructor Summary | |
|---|---|
TransformationManagerImpl(Canvas canvas)
Standard constructor. |
|
| Method Summary | |
|---|---|
void |
addListener(TransformationManagerListener listener)
Add a listener. |
protected void |
fireTransformationChanged()
Notify listeners the top transformation have changed. |
Transformation |
getCanvasProjection()
Return the canvas projection matrix. |
Transformation |
getG2DProjection()
Return the canvas projection matrix for Graphics2D. |
Transformation |
getG2DSingleProjection()
Return the projection matrix (no modelView). |
Transformation |
getG2DWindowProjection()
Return the window projection matrix for Graphics2D. |
TransformationStack |
getModelViewStack()
Return the model view matrix stack. |
TransformationStack |
getProjectionStack()
Return the projection matrix stack. |
Transformation |
getTransformation()
Return the top scene transformation. |
Transformation |
getWindowTransformation()
Return the window transformation. |
boolean |
isUsingSceneCoordinate()
Return true if is using scene coordinate. |
void |
removeListener(TransformationManagerListener listener)
Remove a listener. |
void |
reset()
Clear all stack. |
void |
useSceneCoordinate()
Switch to scene coordinate. |
void |
useWindowCoordinate()
Switch to window coordinate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransformationManagerImpl(Canvas canvas)
canvas - the canvas.| Method Detail |
|---|
public void addListener(TransformationManagerListener listener)
TransformationManager
addListener in interface TransformationManagerlistener - added.public void removeListener(TransformationManagerListener listener)
TransformationManager
removeListener in interface TransformationManagerlistener - removed.public TransformationStack getModelViewStack()
TransformationManager
getModelViewStack in interface TransformationManagerpublic TransformationStack getProjectionStack()
TransformationManager
getProjectionStack in interface TransformationManagerpublic Transformation getTransformation()
TransformationManager
getTransformation in interface TransformationManagerpublic Transformation getWindowTransformation()
TransformationManager
getWindowTransformation in interface TransformationManagerpublic Transformation getCanvasProjection()
TransformationManager
getCanvasProjection in interface TransformationManagerpublic Transformation getG2DProjection()
TransformationManager
getG2DProjection in interface TransformationManagerpublic Transformation getG2DSingleProjection()
TransformationManager
getG2DSingleProjection in interface TransformationManagerpublic Transformation getG2DWindowProjection()
TransformationManager
getG2DWindowProjection in interface TransformationManagerpublic void reset()
TransformationManager
reset in interface TransformationManagerpublic void useWindowCoordinate()
TransformationManager
useWindowCoordinate in interface TransformationManagerpublic void useSceneCoordinate()
TransformationManager
useSceneCoordinate in interface TransformationManagerpublic boolean isUsingSceneCoordinate()
TransformationManager
isUsingSceneCoordinate in interface TransformationManagerprotected void fireTransformationChanged()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||