org.scilab.forge.scirenderer.tranformations
Interface TransformationManager

All Known Implementing Classes:
TransformationManagerImpl

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.

Author:
Pierre Lando

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.
 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

addListener

void addListener(TransformationManagerListener listener)
Add a listener.

Parameters:
listener - added.

removeListener

void removeListener(TransformationManagerListener listener)
Remove a listener.

Parameters:
listener - removed.

getModelViewStack

TransformationStack getModelViewStack()
Return the model view matrix stack.

Returns:
the model view matrix stack.

getProjectionStack

TransformationStack getProjectionStack()
Return the projection matrix stack.

Returns:
the projection matrix stack.

getTransformation

Transformation getTransformation()
Return the top scene transformation.

Returns:
the top scene transformation.

getWindowTransformation

Transformation getWindowTransformation()
Return the window transformation.

Returns:
the window transformation.

getCanvasProjection

Transformation getCanvasProjection()
Return the canvas projection matrix.

Returns:
the canvas projection matrix.

getG2DProjection

Transformation getG2DProjection()
Return the canvas projection matrix for Graphics2D.

Returns:
the canvas projection matrix.

getG2DSingleProjection

Transformation getG2DSingleProjection()
Return the projection matrix (no modelView).

Returns:
the projection matrix.

getG2DWindowProjection

Transformation getG2DWindowProjection()
Return the window projection matrix for Graphics2D.

Returns:
the window projection matrix.

reset

void reset()
Clear all stack.


useWindowCoordinate

void useWindowCoordinate()
Switch to window coordinate.


useSceneCoordinate

void useSceneCoordinate()
Switch to scene coordinate.


isUsingSceneCoordinate

boolean isUsingSceneCoordinate()
Return true if is using scene coordinate.

Returns:
true if is using scene coordinate.