|
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) |
| | Set events.
|
| bool | takeEvents (Events &events) |
| | Take the entire event queue leaving the EventQueue' event queue empty.
|
| bool | copyEvents (Events &events) const |
| | Take a copy the entire event queue leaving the EventQueue' event queue intact.
|
| void | appendEvents (Events &events) |
| | Add events to end of event queue.
|
| void | addEvent (GUIEventAdapter *event) |
| | Add an event to the end of the event queue.
|
| void | setUseFixedMouseInputRange (bool useFixedMouseInputRange) |
| | Specify if mouse coordinates should be transformed into a pre defined input range, or whether they should be simply based on as local coordinates to the window that generated the mouse events.
|
| bool | getUseFixedMouseInputRange () |
| | Get whether the mouse coordinates should be transformed into a pre defined input range.
|
| void | setMouseInputRange (float xMin, float yMin, float xMax, float yMax) |
| | Set the mouse input range.
|
| void | windowResize (int x, int y, int width, int height) |
| | Method for adapting window resize event, placing this event on the back of the event queue.
|
| void | windowResize (int x, int y, int width, int height, double time) |
| | Method for adapting window resize event, placing this event on the back of the event queue, with specified time.
|
| void | mouseScroll (GUIEventAdapter::ScrollingMotion sm) |
| | Method for adapting mouse scroll wheel events, placing this event on the back of the event queue.
|
| void | mouseScroll (GUIEventAdapter::ScrollingMotion sm, double time) |
| | Method for adapting mouse scroll wheel events, placing this event on the back of the event queue, with specified time.
|
| void | mouseScroll2D (float x, float y) |
| | Method for adapting mouse scroll wheel events, placing this event on the back of the event queue.
|
| void | mouseScroll2D (float x, float y, double time) |
| | Method for adapting mouse scroll wheel events, placing this event on the back of the event queue.
|
| void | penPressure (float pressure) |
| | Method for adapting pen pressure events, placing this event on the back of the event queue.
|
| void | penPressure (float pressure, double time) |
| | Method for adapting pen pressure events, placing this event on the back of the event queue, with specified time.
|
| void | penProximity (GUIEventAdapter::TabletPointerType pt, bool isEntering) |
| | Method for adapting pen proximity events, placing this event on the back of the event queue.
|
| void | penProximity (GUIEventAdapter::TabletPointerType pt, bool isEntering, double time) |
| | Method for adapting pen proximity events, placing this event on the back of the event queue, with specified time.
|
| void | mouseWarped (float x, float y) |
| | Method for updating in response to a mouse warp.
|
| void | mouseMotion (float x, float y) |
| | Method for adapting mouse motion events, placing this event on the back of the event queue.
|
| void | mouseMotion (float x, float y, double time) |
| | Method for adapting mouse motion events, placing this event on the back of the event queue, with specified time.
|
| void | mouseButtonPress (float x, float y, unsigned int button) |
| | Method for adapting mouse button pressed events, placing this event on the back of the event queue.
|
| void | mouseButtonPress (float x, float y, unsigned int button, double time) |
| | Method for adapting mouse button pressed events, placing this event on the back of the event queue, with specified time.
|
| void | mouseDoubleButtonPress (float x, float y, unsigned int button) |
| | Method for adapting mouse button pressed events, placing this event on the back of the event queue.
|
| void | mouseDoubleButtonPress (float x, float y, unsigned int button, double time) |
| | Method for adapting mouse button pressed events, placing this event on the back of the event queue, with specified time.
|
| void | mouseButtonRelease (float x, float y, unsigned int button) |
| | Method for adapting mouse button release events, placing this event on the back of the event queue.
|
| void | mouseButtonRelease (float x, float y, unsigned int button, double time) |
| | Method for adapting mouse button release events, placing this event on the back of the event queue, with specified time.
|
| void | keyPress (int key) |
| | Method for adapting keyboard press events.
|
| void | keyPress (int key, double time) |
| | Method for adapting keyboard press events.
|
| void | keyRelease (int key) |
| | Method for adapting keyboard press events.
|
| void | keyRelease (int key, double time) |
| | Method for adapting keyboard press events.
|
| void | closeWindow () |
| | Method for adapting close window events.
|
| void | closeWindow (double time) |
| | Method for adapting close window event with specified event time.
|
| void | quitApplication () |
| | Method for adapting application quit events.
|
| void | quitApplication (double time) |
| | Method for adapting application quit events with specified event time.
|
| void | frame (double time) |
| | Method for adapting frame events.
|
| void | setStartTick (osg::Timer_t tick) |
| osg::Timer_t | getStartTick () const |
| double | getTime () const |
| GUIEventAdapter * | createEvent () |
| | convinience method for create an event ready to fill in.
|
| GUIEventAdapter * | getCurrentEventState () |
| const GUIEventAdapter * | getCurrentEventState () const |
| void | userEvent (osg::Referenced *userEventData) |
| | Method for adapting user defined events.
|
| void | userEvent (osg::Referenced *userEventData, double time) |
| | Method for adapting user defined events with specified event time.
|
Protected Member Functions |
| virtual | ~EventQueue () |
| EventQueue & | operator= (const EventQueue &) |
| | Prevent unwanted copy operator.
|
Protected Attributes |
| osg::ref_ptr< GUIEventAdapter > | _accumulateEventState |
| bool | _useFixedMouseInputRange |
| osg::Timer_t | _startTick |
| OpenThreads::Mutex | _eventQueueMutex |
| Events | _eventQueue |