#include <UserInterface.h>
Collaboration diagram for UserInterface:
Public Member Functions | |
UserInterface (StateControl *st) | |
~UserInterface () | |
osg::Node * | createHud () |
osg::AutoTransform * | createHUDObject (string text, bool pickable, int xpos, int ypos) |
void | setHUDText (string t) |
void | rmHUDText (string rt) |
bool | buttonAction (string buttonName) |
bool | selectionAction (osg::Node *selected) |
void | updateClock () |
Private Attributes | |
StateControl * | s |
osg::Node * | hud |
osg::CameraNode * | hudCam |
osgText::Text * | clock |
Friends | |
bool | UserEventHandler::handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us) |
This class handles the user interface, keyboard and mouse callbacks and the menu/hud layouts.
Definition at line 117 of file UserInterface.h.
|
Constructor.
Definition at line 103 of file UserInterface.cpp. |
|
Definition at line 125 of file UserInterface.h. |
|
Button event handler.
Definition at line 289 of file UserInterface.cpp. References StateControl::adjustTimeFlow(), StateControl::pause(), and s. Referenced by UserEventHandler::pick(). Here is the call graph for this function: ![]() |
|
Sets up the HUD and camera for the hud.
Definition at line 111 of file UserInterface.cpp. References clock, createHUDObject(), StateControl::getTime(), StateControl::getTimeFlow(), hud, hudCam, and s. Referenced by go(). Here is the call graph for this function: ![]() |
|
Creates text on the hud.
Definition at line 211 of file UserInterface.cpp. References FONTSIZE_HUD, and s. Referenced by createHud(), and setHUDText(). |
|
Removes text from the HUD.
Definition at line 267 of file UserInterface.cpp. References hudCam. Referenced by StateControl::clearSelection(), StateControl::deselectObject(), and StateControl::updateHudText(). |
|
Selection event handler.
Definition at line 313 of file UserInterface.cpp. References StateControl::clearSelection(), StateControl::deselectObject(), TraplasObject::isSelected(), s, and StateControl::selectObject(). Referenced by UserEventHandler::pick(). Here is the call graph for this function: ![]() |
|
Sets text in the HUD.
Definition at line 262 of file UserInterface.cpp. References createHUDObject(), and hudCam. Referenced by StateControl::selectObject(), and StateControl::updateHudText(). Here is the call graph for this function: ![]() |
|
Updates the clock on the Heads up display. Definition at line 331 of file UserInterface.cpp. References clock, StateControl::getTime(), StateControl::getTimeFlow(), and s. Referenced by UserEventHandler::handle(). Here is the call graph for this function: ![]() |
|
|
|
Definition at line 172 of file UserInterface.h. Referenced by createHud(), updateClock(), and UserInterface(). |
|
Definition at line 170 of file UserInterface.h. Referenced by createHud(), and UserInterface(). |
|
Definition at line 171 of file UserInterface.h. Referenced by createHud(), rmHUDText(), setHUDText(), and UserInterface(). |
|
Definition at line 169 of file UserInterface.h. Referenced by buttonAction(), createHud(), createHUDObject(), UserEventHandler::handle(), selectionAction(), updateClock(), and UserInterface(). |