14#ifndef KEYEVENTHANDLER
15#define KEYEVENTHANDLER 1
The osgPresentation library is a NodeKit that extends the core scene graph to support 3D scene graph ...
Definition AnimationMaterial:26
Operation
Operations related to click to run/load/key events.
Definition SlideEventHandler:36
Definition ApplicationUsage:26
Visitor for type safe operations on osg::Nodes.
Definition NodeVisitor:82
Base class/standard interface for objects which require IO support, cloning and reference counting.
Definition Object:61
Definition GUIActionAdapter:62
Event class for storing Keyboard, mouse and window events.
Definition GUIEventAdapter:82
GUIEventHandler provides a basic interface for any class which wants to handle a GUI Events.
Definition GUIEventHandler:50
osgPresentation::Operation _operation
Definition KeyEventHandler:60
const std::string & getCommand() const
Definition KeyEventHandler:42
KeyEventHandler(int key, const std::string &str, osgPresentation::Operation operation, const JumpData &jumpData=JumpData())
JumpData _jumpData
Definition KeyEventHandler:62
osgPresentation::KeyPosition _keyPos
Definition KeyEventHandler:59
virtual bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa, osg::Object *object, osg::NodeVisitor *nv)
Handle events, return true if handled, false otherwise.
void setCommand(const std::string &str)
Definition KeyEventHandler:41
const osgPresentation::KeyPosition & getKeyPosition() const
Definition KeyEventHandler:45
void setOperation(osgPresentation::Operation operation)
Definition KeyEventHandler:38
void setKey(int key)
Definition KeyEventHandler:35
int _key
Definition KeyEventHandler:56
void setJumpData(const JumpData &jumpData)
Definition KeyEventHandler:47
KeyEventHandler(int key, const osgPresentation::KeyPosition &keyPos, const JumpData &jumpData=JumpData())
int getKey() const
Definition KeyEventHandler:36
std::string _command
Definition KeyEventHandler:58
osgPresentation::Operation getOperation() const
Definition KeyEventHandler:39
KeyEventHandler(int key, osgPresentation::Operation operation, const JumpData &jumpData=JumpData())
virtual void getUsage(osg::ApplicationUsage &usage) const
Get the user interface usage of this event handler, i.e.
const JumpData & getJumpData() const
Definition KeyEventHandler:48
void setKeyPosition(const osgPresentation::KeyPosition &keyPos)
Definition KeyEventHandler:44
Definition SlideEventHandler:46
Definition SlideEventHandler:161
#define OSGPRESENTATION_EXPORT
Definition Export:38