TransformationManagerImpl
public interface TransformationManager
Modifier and Type | Method | Description |
---|---|---|
void |
addListener(TransformationManagerListener listener) |
Add a listener.
|
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.
|
Transformation |
getInverseWindowTransformation() |
Return the inverse of window transformation.
|
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.
|
void addListener(TransformationManagerListener listener)
listener
- added.void removeListener(TransformationManagerListener listener)
listener
- removed.TransformationStack getModelViewStack()
TransformationStack getProjectionStack()
Transformation getTransformation()
Transformation getInverseWindowTransformation()
Transformation getWindowTransformation()
Transformation getCanvasProjection()
Transformation getG2DProjection()
Transformation getG2DSingleProjection()
Transformation getG2DWindowProjection()
void reset()
void useWindowCoordinate()
void useSceneCoordinate()
boolean isUsingSceneCoordinate()