class OSGGA_EXPORT osgGA::GUIEventAdapter

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

Inheritance:


Public Classes

[more]enum MouseButtonMask
[more]enum EventType
[more]enum KeySymbol
[more]enum ModKeyMask
[more]enum MouseYOrientation

Public Methods

[more]virtual EventType getEventType() const
Get the EventType of the GUI event
[more]virtual int getKey() const
key pressed, return -1 if inappr opriate for this event.
[more]virtual int getButton() const
button pressed/released, return -1 if inappropriate for this event
[more]void setMouseYOrientation(MouseYOrientation myo)
[more]MouseYOrientation getMouseYOrientation() const
[more]virtual float getXmin() const
manimum x mouse position.
[more]virtual float getXmax() const
maximum x mouse position.
[more]virtual float getYmin() const
minimum y mouse position.
[more]virtual float getYmax() const
maximum y mouse position.
[more]virtual float getX() const
current mouse x position
[more]virtual float getY() const
current mouse y position
[more]virtual unsigned int getButtonMask() const
current mouse button state
[more]virtual unsigned int getModKeyMask() const
current modkey state
[more]virtual double time() const
time in seconds of event.
[more]inline float getXnormalized() const
return the getX() value normalised to the range of -1 to 1.
[more]inline float getYnormalized() const
return the getY() value normalised to the range of -1 to 1.

Protected Fields

[more]MouseYOrientation _mouseYOrientation

Protected Methods

[more] GUIEventAdapter(MouseYOrientation myo=Y_INCREASING_DOWNWARDS)
[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 NONE

o PUSH

o RELEASE

o DOUBLECLICK

o DRAG

o MOVE

o KEYDOWN

o KEYUP

o FRAME

o RESIZE

o SCROLLUP

o SCROLLDOWN

o SCROLLLEFT

o SCROLLRIGHT

oenum KeySymbol

o KEY_Space

o KEY_BackSpace

o KEY_Tab

o KEY_Linefeed

o KEY_Clear

o KEY_Return

o KEY_Pause

o KEY_Scroll_Lock

o KEY_Sys_Req

o KEY_Escape

o KEY_Delete

o KEY_Home

o KEY_Left

o KEY_Up

o KEY_Right

o KEY_Down

o KEY_Prior

o KEY_Page_Up

o KEY_Next

o KEY_Page_Down

o KEY_End

o KEY_Begin

o KEY_Select

o KEY_Print

o KEY_Execute

o KEY_Insert

o KEY_Undo

o KEY_Redo

o KEY_Menu

o KEY_Find

o KEY_Cancel

o KEY_Help

o KEY_Break

o KEY_Mode_switch

o KEY_Script_switch

o KEY_Num_Lock

o KEY_KP_Space

o KEY_KP_Tab

o KEY_KP_Enter

o KEY_KP_F1

o KEY_KP_F2

o KEY_KP_F3

o KEY_KP_F4

o KEY_KP_Home

o KEY_KP_Left

o KEY_KP_Up

o KEY_KP_Right

o KEY_KP_Down

o KEY_KP_Prior

o KEY_KP_Page_Up

o KEY_KP_Next

o KEY_KP_Page_Down

o KEY_KP_End

o KEY_KP_Begin

o KEY_KP_Insert

o KEY_KP_Delete

o KEY_KP_Equal

o KEY_KP_Multiply

o KEY_KP_Add

o KEY_KP_Separator

o KEY_KP_Subtract

o KEY_KP_Decimal

o KEY_KP_Divide

o KEY_KP_0

o KEY_KP_1

o KEY_KP_2

o KEY_KP_3

o KEY_KP_4

o KEY_KP_5

o KEY_KP_6

o KEY_KP_7

o KEY_KP_8

o KEY_KP_9

o KEY_F1

o KEY_F2

o KEY_F3

o KEY_F4

o KEY_F5

o KEY_F6

o KEY_F7

o KEY_F8

o KEY_F9

o KEY_F10

o KEY_F11

o KEY_F12

o KEY_F13

o KEY_F14

o KEY_F15

o KEY_F16

o KEY_F17

o KEY_F18

o KEY_F19

o KEY_F20

o KEY_F21

o KEY_F22

o KEY_F23

o KEY_F24

o KEY_F25

o KEY_F26

o KEY_F27

o KEY_F28

o KEY_F29

o KEY_F30

o KEY_F31

o KEY_F32

o KEY_F33

o KEY_F34

o KEY_F35

o KEY_Shift_L

o KEY_Shift_R

o KEY_Control_L

o KEY_Control_R

o KEY_Caps_Lock

o KEY_Shift_Lock

o KEY_Meta_L

o KEY_Meta_R

o KEY_Alt_L

o KEY_Alt_R

o KEY_Super_L

o KEY_Super_R

o KEY_Hyper_L

o KEY_Hyper_R

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
Get the EventType of the GUI event

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

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

oenum MouseYOrientation

o Y_INCREASING_UPWARDS

o Y_INCREASING_DOWNWARDS

ovoid setMouseYOrientation(MouseYOrientation myo)

oMouseYOrientation getMouseYOrientation() const

ovirtual float getXmin() const
manimum x mouse position.

ovirtual float getXmax() const
maximum x mouse position.

ovirtual float getYmin() const
minimum y mouse position.

ovirtual float getYmax() const
maximum y mouse position.

ovirtual float getX() const
current mouse x position

ovirtual float getY() const
current mouse y position

ovirtual unsigned int getButtonMask() const
current mouse button state

ovirtual unsigned int getModKeyMask() const
current modkey state

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

oinline float getXnormalized() const
return the getX() value normalised to the range of -1 to 1. -1 would be the left hand side of the window. 0.0 would be the middle of the window. +1 would be the right hand side of the window.

oinline float getYnormalized() const
return the getY() value normalised to the range of -1 to 1. -1 would be the bottom of the window. 0.0 would be the middle of the window. +1 would be the top of the window.

o GUIEventAdapter(MouseYOrientation myo=Y_INCREASING_DOWNWARDS)

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

oMouseYOrientation _mouseYOrientation


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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