25 #ifndef LPZHELPHANDLER_H
26 #define LPZHELPHANDLER_H
28 #include <osgViewer/ViewerEventHandlers>
52 bool handle(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa);
55 virtual void getUsage(osg::ApplicationUsage& usage)
const;
61 void setUpScene(osgViewer::ViewerBase* viewer);
const osg::ApplicationUsage * getApplicationUsage() const
Definition: lpzhelphandler.h:42
Event handler for adding on screen help to Viewers.
Definition: lpzhelphandler.h:34
int _keyEventTogglesOnScreenHelp
Definition: lpzhelphandler.h:65
osg::ref_ptr< osg::ApplicationUsage > _applicationUsage
Definition: lpzhelphandler.h:63
void setApplicationUsage(osg::ApplicationUsage *au)
Definition: lpzhelphandler.h:40
osg::ref_ptr< osg::Camera > _camera
Definition: lpzhelphandler.h:70
void reset()
Definition: lpzhelphandler.cpp:69
void setUpScene(osgViewer::ViewerBase *viewer)
Definition: lpzhelphandler.cpp:146
const osg::Camera * getCamera() const
Definition: lpzhelphandler.h:50
bool _initialized
Definition: lpzhelphandler.h:69
bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
Definition: lpzhelphandler.cpp:75
int getKeyEventTogglesOnScreenHelp() const
Definition: lpzhelphandler.h:45
bool _helpEnabled
Definition: lpzhelphandler.h:67
virtual void getUsage(osg::ApplicationUsage &usage) const
Get the keyboard and mouse usage of this manipulator.
Definition: lpzhelphandler.cpp:243
osg::ApplicationUsage * getApplicationUsage()
Definition: lpzhelphandler.h:41
LpzHelpHandler(osg::ApplicationUsage *au=0)
Definition: lpzhelphandler.cpp:57
void setKeyEventTogglesOnScreenHelp(int key)
Definition: lpzhelphandler.h:44
osg::ref_ptr< osg::Switch > _switch
Definition: lpzhelphandler.h:71
osg::Camera * getCamera()
Definition: lpzhelphandler.h:49
void setUpHUDCamera(osgViewer::ViewerBase *viewer)
Definition: lpzhelphandler.cpp:117