FlightGear next
GUIMgr Class Reference

#include <gui_mgr.hxx>

Inherits SGSubsystem.

Public Member Functions

 GUIMgr ()
 
void init () override
 
void shutdown () override
 
void update (double dt) override
 
simgear::canvas::WindowPtr createWindow (const std::string &name="")
 
simgear::canvas::GroupPtr getDesktop ()
 Get simgear::canvas::Group containing all windows.
 
void setInputFocus (const simgear::canvas::WindowPtr &window)
 Set the input (keyboard) focus to the given window.
 
bool grabPointer (const simgear::canvas::WindowPtr &window)
 Grabs the pointer so that all events are passed to this window until the pointer is ungrabbed with ungrabPointer().
 
void ungrabPointer (const simgear::canvas::WindowPtr &window)
 Releases the grab acquired for this window with grabPointer().
 
void setGUIViewAndCamera (osgViewer::View *view, osg::Camera *cam)
 specify the osgViewer::View and Camera
 

Static Public Member Functions

static const char * staticSubsystemClassId ()
 

Protected Member Functions

simgear::canvas::Placements addWindowPlacement (SGPropertyNode *placement, simgear::canvas::CanvasPtr canvas)
 

Protected Attributes

simgear::canvas::GroupPtr _desktop
 
osg::ref_ptr< GUIEventHandler_event_handler
 
osg::ref_ptr< osgViewer::View > _viewerView
 
osg::ref_ptr< osg::Camera > _camera
 

Detailed Description

Definition at line 40 of file gui_mgr.hxx.

Constructor & Destructor Documentation

◆ GUIMgr()

GUIMgr::GUIMgr ( )

Definition at line 644 of file gui_mgr.cxx.

Member Function Documentation

◆ addWindowPlacement()

sc::Placements GUIMgr::addWindowPlacement ( SGPropertyNode * placement,
simgear::canvas::CanvasPtr canvas )
protected

Definition at line 764 of file gui_mgr.cxx.

◆ createWindow()

sc::WindowPtr GUIMgr::createWindow ( const std::string & name = "")

Definition at line 657 of file gui_mgr.cxx.

◆ getDesktop()

sc::GroupPtr GUIMgr::getDesktop ( )

Get simgear::canvas::Group containing all windows.

Definition at line 739 of file gui_mgr.cxx.

◆ grabPointer()

bool GUIMgr::grabPointer ( const simgear::canvas::WindowPtr & window)

Grabs the pointer so that all events are passed to this window until the pointer is ungrabbed with ungrabPointer().

Definition at line 751 of file gui_mgr.cxx.

◆ init()

void GUIMgr::init ( )
override

Definition at line 666 of file gui_mgr.cxx.

◆ setGUIViewAndCamera()

void GUIMgr::setGUIViewAndCamera ( osgViewer::View * view,
osg::Camera * cam )

specify the osgViewer::View and Camera

Definition at line 650 of file gui_mgr.cxx.

◆ setInputFocus()

void GUIMgr::setInputFocus ( const simgear::canvas::WindowPtr & window)

Set the input (keyboard) focus to the given window.

Definition at line 745 of file gui_mgr.cxx.

◆ shutdown()

void GUIMgr::shutdown ( )
override

Definition at line 705 of file gui_mgr.cxx.

◆ staticSubsystemClassId()

static const char * GUIMgr::staticSubsystemClassId ( )
inlinestatic

Definition at line 51 of file gui_mgr.hxx.

◆ ungrabPointer()

void GUIMgr::ungrabPointer ( const simgear::canvas::WindowPtr & window)

Releases the grab acquired for this window with grabPointer().

Definition at line 757 of file gui_mgr.cxx.

◆ update()

void GUIMgr::update ( double dt)
override

Definition at line 733 of file gui_mgr.cxx.

Member Data Documentation

◆ _camera

osg::ref_ptr<osg::Camera> GUIMgr::_camera
protected

Definition at line 84 of file gui_mgr.hxx.

◆ _desktop

simgear::canvas::GroupPtr GUIMgr::_desktop
protected

Definition at line 81 of file gui_mgr.hxx.

◆ _event_handler

osg::ref_ptr<GUIEventHandler> GUIMgr::_event_handler
protected

Definition at line 82 of file gui_mgr.hxx.

◆ _viewerView

osg::ref_ptr<osgViewer::View> GUIMgr::_viewerView
protected

Definition at line 83 of file gui_mgr.hxx.


The documentation for this class was generated from the following files: