|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransformationManager
This is an interface for a transformation manager. The transformation manager is used to manage transformation applied to vertex data sent for drawing. Coordinate are in first multiplied by the matrix at the top of ModelView matrix stack. And then, the result is multiplied by the matrix at the top of Projection matrix stack. 'Projection' and 'ModelView' name refers to OpenGl 1.1. The rendered vertex are in the box [-1, 1]^3.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |