class OSGWX_EXPORT osgWX::WXEventAdapter

Class for adapting WX events so that they can be used as input to osgUtil::CameraManipulators

Inheritance:


Public Methods

[more] WXEventAdapter()
[more]virtual ~WXEventAdapter()
[more]virtual EventType getEventType() const
Get the EventType of the GUI event
[more]virtual int getKey() const
key pressed, return -1 if inapropriate for this event.
[more]virtual int getButton() const
button pressed/released, return -1 if inappropriate for this event
[more]virtual int getXmin() const
window minimum x.
[more]virtual int getXmax() const
window maximum x.
[more]virtual int getYmin() const
window minimum y.
[more]virtual int getYmax() const
window maximum y.
[more]virtual int getX() const
current mouse x position
[more]virtual int getY() const
current mouse y position
[more]virtual unsigned int getButtonMask() const
current mouse button state
[more]virtual float time() const
time in seconds of event.
[more]static void setWindowSize(int Xmin, int Ymin, int Xmax, int Ymax)
static method for setting window dimensions
[more]static void setButtonMask(unsigned int buttonMask)
static method for setting button state
[more]void adaptResize(float t, int Xmin, int Ymin, int Xmax, int Ymax)
method for adapting resize events.
[more]void adaptMouseMotion(float t, int x, int y)
method for adapting mouse motion events whilst mouse buttons are pressed
[more]void adaptMousePassiveMotion(float t, int x, int y)
method for adapting mouse motion events whilst no mouse button are pressed
[more]void adaptMouse(float t, class wxMouseEvent* event)
method for adapting mouse button pressed/released events
[more]void adaptKeyboard(float t, unsigned char key, int x, int y )
method for adapting keyboard events
[more]void adaptFrame(float t)
method for adapting frame events, ie.
[more]void copyStaticVariables()

Protected Fields

[more]EventType _eventType
[more]int _key
[more]int _button
[more]int _Xmin
[more]int _Xmax
[more]int _Ymin
[more]int _Ymax
[more]int _mx
[more]int _my
[more]unsigned int _buttonMask
[more]float _time
[more]static unsigned int _s_accumulatedButtonMask
[more]static int _s_Xmin
[more]static int _s_Xmax
[more]static int _s_Ymin
[more]static int _s_Ymax
[more]static int _s_mx
[more]static int _s_my


Documentation

Class for adapting WX events so that they can be used as input to osgUtil::CameraManipulators
o WXEventAdapter()

ovirtual ~WXEventAdapter()

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

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

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

ovirtual int getXmin() const
window minimum x.

ovirtual int getXmax() const
window maximum x.

ovirtual int getYmin() const
window minimum y.

ovirtual int getYmax() const
window maximum y.

ovirtual int getX() const
current mouse x position

ovirtual int getY() const
current mouse y position

ovirtual unsigned int getButtonMask() const
current mouse button state

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

ostatic void setWindowSize(int Xmin, int Ymin, int Xmax, int Ymax)
static method for setting window dimensions

ostatic void setButtonMask(unsigned int buttonMask)
static method for setting button state

ovoid adaptResize(float t, int Xmin, int Ymin, int Xmax, int Ymax)
method for adapting resize events.

ovoid adaptMouseMotion(float t, int x, int y)
method for adapting mouse motion events whilst mouse buttons are pressed

ovoid adaptMousePassiveMotion(float t, int x, int y)
method for adapting mouse motion events whilst no mouse button are pressed

ovoid adaptMouse(float t, class wxMouseEvent* event)
method for adapting mouse button pressed/released events

ovoid adaptKeyboard(float t, unsigned char key, int x, int y )
method for adapting keyboard events

ovoid adaptFrame(float t)
method for adapting frame events, ie. iddle/display callback.

ovoid copyStaticVariables()

oEventType _eventType

oint _key

oint _button

oint _Xmin

oint _Xmax

oint _Ymin

oint _Ymax

oint _mx

oint _my

ounsigned int _buttonMask

ofloat _time

ostatic unsigned int _s_accumulatedButtonMask

ostatic int _s_Xmin

ostatic int _s_Xmax

ostatic int _s_Ymin

ostatic int _s_Ymax

ostatic int _s_mx

ostatic int _s_my


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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