class OSGGA_EXPORT osgGA::GUIEventAdapter

Pure virtual base class for adapting platform specific events into generic keyboard and mouse events.

Inheritance:


Public Methods

[more]virtual EventType getEventType() const = 0
Get the EventType of the GUI event
[more]virtual int getKey() const = 0
key pressed, return -1 if inappr opriate for this event.
[more]virtual int getButton() const = 0
button pressed/released, return -1 if inappropriate for this event
[more]virtual int getXmin() const = 0
window minimum x.
[more]virtual int getXmax() const = 0
window maximum x.
[more]virtual int getYmin() const = 0
window minimum y.
[more]virtual int getYmax() const = 0
window maximum y.
[more]virtual int getX() const = 0
current mouse x position
[more]virtual int getY() const = 0
current mouse y position
[more]virtual unsigned int getButtonMask() const = 0
current mouse button state
[more]virtual unsigned int getModKeyMask() const = 0
current modkey state
[more]virtual double time() const = 0
time in seconds of event.

Public Members

[more]enum MouseButtonMask
[more]enum EventType
[more]enum ModKeyMask

Protected Methods

[more] GUIEventAdapter()
[more]virtual ~GUIEventAdapter()
Force users to create on heap, so that multiple referencing is safe


Documentation

Pure virtual base class for adapting platform specific events into generic keyboard and mouse events.

Used as GUI toolkit-independent input into GUIEventAdapters. Viewer writers should subclass this base class to implement the functionality to translate one of their GUI events, e.g. a Qt Event or an MFC Event, as appropriate.

oenum MouseButtonMask

o LEFT_MOUSE_BUTTON

o MIDDLE_MOUSE_BUTTON

o RIGHT_MOUSE_BUTTON

oenum EventType

o PUSH

o RELEASE

o DOUBLECLICK

o DRAG

o MOVE

o KEYDOWN

o KEYUP

o FRAME

o RESIZE

o NONE

oenum ModKeyMask

o MODKEY_LEFT_SHIFT

o MODKEY_RIGHT_SHIFT

o MODKEY_LEFT_CTRL

o MODKEY_RIGHT_CTRL

o MODKEY_LEFT_ALT

o MODKEY_RIGHT_ALT

o MODKEY_LEFT_META

o MODKEY_RIGHT_META

o MODKEY_NUM_LOCK

o MODKEY_CAPS_LOCK

o MODKEY_CTRL

o MODKEY_SHIFT

o MODKEY_ALT

o MODKEY_META

ovirtual EventType getEventType() const = 0
Get the EventType of the GUI event

ovirtual int getKey() const = 0
key pressed, return -1 if inappr opriate for this event.

ovirtual int getButton() const = 0
button pressed/released, return -1 if inappropriate for this event

ovirtual int getXmin() const = 0
window minimum x.

ovirtual int getXmax() const = 0
window maximum x.

ovirtual int getYmin() const = 0
window minimum y.

ovirtual int getYmax() const = 0
window maximum y.

ovirtual int getX() const = 0
current mouse x position

ovirtual int getY() const = 0
current mouse y position

ovirtual unsigned int getButtonMask() const = 0
current mouse button state

ovirtual unsigned int getModKeyMask() const = 0
current modkey state

ovirtual double time() const = 0
time in seconds of event.

o GUIEventAdapter()

ovirtual ~GUIEventAdapter()
Force users to create on heap, so that multiple referencing is safe


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.