Updraft  1.0
Open source glider flight visualisation tool.
Updraft::Core::MapManipulator Class Reference

Earth manipulator supporting custom settings and keybindings. More...

#include <mapmanipulator.h>

Collaboration diagram for Updraft::Core::MapManipulator:

List of all members.

Public Member Functions

 MapManipulator ()
 ~MapManipulator ()
void resetNorth (double duration)
 Runs the animation that resets this manipulator to the north.
void untilt (double duration)
 Runs the untilt animation on this manipulator.
void updateCameraProjection ()
 Updates the camera projection according to whether it should be 2D orthographic or 3D perspective.

Private Slots

void mouseZoomSensitivityChanged ()
 Handles the mouse zoom sensitivity setting change.

Private Member Functions

void bindKeyboardEvents (Settings *settings)
 Binds the osg keyboard events to the manipulator actions.
void bindMouseEvents (Settings *settings)
 Binds the osg mouse events to the manipulator actions.

Private Attributes

SettingInterfacemouseZoomSensitivity
 The mouse zoom sensitivity setting.

Detailed Description

Earth manipulator supporting custom settings and keybindings.


Constructor & Destructor Documentation


Member Function Documentation

void Updraft::Core::MapManipulator::bindKeyboardEvents ( Settings *  settings) [private]

Binds the osg keyboard events to the manipulator actions.

Parameters:
settingsThe osg settings of this map manipulator.
void Updraft::Core::MapManipulator::bindMouseEvents ( Settings *  settings) [private]

Binds the osg mouse events to the manipulator actions.

Parameters:
settingsThe osg settings of this map manipulator.

Handles the mouse zoom sensitivity setting change.

void Updraft::Core::MapManipulator::resetNorth ( double  duration)

Runs the animation that resets this manipulator to the north.

Parameters:
durationThe requested duration of the animation
void Updraft::Core::MapManipulator::untilt ( double  duration)

Runs the untilt animation on this manipulator.

Parameters:
durationThe requested duration of the animation

Updates the camera projection according to whether it should be 2D orthographic or 3D perspective.


Member Data Documentation

The mouse zoom sensitivity setting.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines