Inheritance diagram for osgGA::EventQueue:
Public Types | |
typedef std::list< osg::ref_ptr< GUIEventAdapter > > | Events |
Public Member Functions | |
EventQueue (GUIEventAdapter::MouseYOrientation mouseYOrientation=GUIEventAdapter::Y_INCREASING_DOWNWARDS) | |
void | setEvents (Events &events) |
bool | takeEvents (Events &events) |
bool | copyEvents (Events &events) const |
void | appendEvents (Events &events) |
void | addEvent (GUIEventAdapter *event) |
void | windowResize (float Xmin, float Ymin, float Xmax, float Ymax) |
void | mouseScroll (GUIEventAdapter::ScrollingMotion sm) |
void | mouseScroll2D (float x, float y) |
void | penPressure (float pressure) |
void | penProximity (GUIEventAdapter::TabletPointerType pt, bool isEntering) |
void | mouseWarp (float x, float y) |
void | mouseMotion (float x, float y) |
void | mouseButtonPress (float x, float y, unsigned int button) |
void | mouseDoubleButtonPress (float x, float y, unsigned int button) |
void | mouseButtonRelease (float x, float y, unsigned int button) |
void | keyPress (GUIEventAdapter::KeySymbol key) |
void | keyRelease (GUIEventAdapter::KeySymbol key) |
void | frame (double t) |
void | setStartTick (osg::Timer_t tick) |
osg::Timer_t | getStartTick () const |
double | getTime () const |
GUIEventAdapter * | createEvent () |
GUIEventAdapter * | getCurrentEventState () |
const GUIEventAdapter * | getCurrentEventState () const |
Protected Member Functions | |
virtual | ~EventQueue () |
EventQueue & | operator= (const EventQueue &) |
Protected Attributes | |
osg::ref_ptr< GUIEventAdapter > | _accumulateEventState |
osg::Timer_t | _startTick |
OpenThreads::Mutex | _eventQueueMutex |
Events | _eventQueue |
|
|
|
|
|
|
|
Add an event to the end of the event queue. |
|
Add events to end of event queue. |
|
Take a copy the entire event queue leaving the EventQueue' event queue intact. |
|
convinience method for create an event ready to fill in. Clones the getCurrentEventState() to produce a up to date event state. |
|
Method for adapting frame events. |
|
|
|
|
|
|
|
|
|
Method for adapting keyboard press events. |
|
Method for adapting keyboard press events. |
|
Method for adapting mouse button pressed events, placing this event on the back of the event queue. Button numbering is 1 for left mouse button, 2 for middle, 3 for right. |
|
Method for adapting mouse button release events, placing this event on the back of the event queue. Button numbering is 1 for left mouse button, 2 for middle, 3 for right. |
|
Method for adapting mouse button pressed events, placing this event on the back of the event queue. Button numbering is 1 for left mouse button, 2 for middle, 3 for right. |
|
Method for adapting mouse motion events whilst mouse buttons are pressed, placing this event on the back of the event queue. |
|
Method for adapting mouse scroll wheel events, placing this event on the back of the event queue. |
|
Method for adapting mouse scroll wheel events, placing this event on the back of the event queue. |
|
Method for updating in response to a mouse warp. Note, just moves the mouse position without creating a new event for it. |
|
Prevent unwanted copy operator. |
|
Method for adapting pen pressure events, placing this event on the back og the event queue. |
|
Method for adapting pen proximity events, placing this event on the back og the event queue. |
|
Set events. |
|
|
|
Take the entire event queue leaving the EventQueue' event queue empty. |
|
Method for adapting window resize event, placing this event on the back of the event queue. |
|
|
|
|
|
|
|
|