|
||||||||||
| 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]??.
| Method Summary | |
|---|---|
void |
addListener(TransformationManagerListener listener)
Add a listener. |
Transformation |
getCanvasProjection()
Return the canvas projection matrix. |
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 getWindowTransformation()
Transformation getCanvasProjection()
void reset()
void useWindowCoordinate()
void useSceneCoordinate()
boolean isUsingSceneCoordinate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||