proland::ViewManager Class Reference
[ui]

Provides access to a SceneManager, to a TerrainViewController and to the screen to world transformation. More...

#include <BasicViewHandler.h>

List of all members.

Public Member Functions

virtual ptr< SceneManager > getScene ()=0
 Returns the SceneManager.
virtual ptr
< TerrainViewController
getViewController ()=0
 Returns the TerrainViewController.
virtual vec3d getWorldCoordinates (int x, int y)=0
 Converts screen coordinates to world space coordinates.

Detailed Description

Provides access to a SceneManager, to a TerrainViewController and to the screen to world transformation.

Intended to be used with a BasicViewHandler.

Authors:
Eric Bruneton, Antoine Begault, Guillaume Piolat

Member Function Documentation

virtual ptr<SceneManager> proland::ViewManager::getScene (  )  [pure virtual]

Returns the SceneManager.

Used to find the light SceneNode controlled by a BasicViewHandler.

virtual ptr<TerrainViewController> proland::ViewManager::getViewController (  )  [pure virtual]

Returns the TerrainViewController.

Used by a BasicViewHandler to control the view.

virtual vec3d proland::ViewManager::getWorldCoordinates ( int  x,
int  y 
) [pure virtual]

Converts screen coordinates to world space coordinates.

Used by a BasicViewHandler to find the location of mouse clics.

Parameters:
x a screen x coordinate.
y a screen y coordinate.
Returns:
the world space point corresponding to (x,y) on screen.

Generated on Sat May 12 09:41:39 2012 for proland by  doxygen 1.6.1