class osgUtil::GUIEventAdapter

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

Inheritance:


Public Methods

[more] GUIEventAdapter()
[more]virtual EventType getEventType() const = 0
Get the EventType of the GUI event
[more]virtual int getKey() const = 0
key pressed, return -1 if inappropriate 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 double time() const = 0
time in seconds of event.

Public Members

[more]enum MouseButtonMask
[more]enum EventType

Protected Methods

[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 the osgUtil::CameraManipualor's. For an example of how GUIEventAdapter is specialised for a particular GUI Toolkit see osgGLUT::GLUTEventAdapter.

o GUIEventAdapter()

oenum MouseButtonMask

o LEFT_MOUSE_BUTTON

o MIDDLE_MOUSE_BUTTON

o RIGHT_MOUSE_BUTTON

oenum EventType

o PUSH

o RELEASE

o DRAG

o MOVE

o KEYBOARD

o FRAME

o RESIZE

o NONE

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

ovirtual int getKey() const = 0
key pressed, return -1 if inappropriate 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 double time() const = 0
time in seconds of event.

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++.