Provides access to a SceneManager, to a TerrainViewController and to the screen to world transformation. More...
#include <BasicViewHandler.h>
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. |
Provides access to a SceneManager, to a TerrainViewController and to the screen to world transformation.
Intended to be used with a BasicViewHandler.
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.
x | a screen x coordinate. | |
y | a screen y coordinate. |