class OSGPRODUCER_EXPORT osgProducer::EventAdapter

Class for adapting Producer events so that they can be used as input to osgGA::CameraManipulators

Inheritance:


Public Fields

[more]static unsigned int _s_accumulatedButtonMask
[more]static int _s_button
[more]static float _s_Xmin
[more]static float _s_Xmax
[more]static float _s_Ymin
[more]static float _s_Ymax
[more]static float _s_mx
[more]static float _s_my
[more]static int _s_modKeyMask

Public Methods

[more] EventAdapter()
[more]virtual ~EventAdapter()
[more]virtual EventType getEventType() const
Get the EventType of the GUI event
[more]virtual int getKey() const
key pressed, return -1 if inappropriate for this event.
[more]virtual int getButton() const
button pressed/released, return -1 if inappropriate for this event
[more]virtual float getXmin() const
window minimum x.
[more]virtual float getXmax() const
window maximum x.
[more]virtual float getYmin() const
window minimum y.
[more]virtual float getYmax() const
window maximum y.
[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 double time() const
time in seconds of event.
[more]virtual unsigned int getModKeyMask() const
[more]static void setWindowSize(float Xmin, float Ymin, float Xmax, float Ymax)
static method for setting window dimensions
[more]static void setButtonMask(unsigned int buttonMask)
static method for setting button state
[more]void adaptResize(double t, float Xmin, float Ymin, float Xmax, float Ymax)
method for adapting resize events.
[more]void adaptMouseScroll(double t, Producer::KeyboardMouseCallback::ScrollingMotion sm)
method for adapting mouse scroll wheel events.
[more]void adaptMouseMotion(double t, float x, float y)
method for adapting mouse motion events whilst mouse buttons are pressed
[more]void adaptButtonPress(double t, float x, float y, unsigned int button)
[more]void adaptButtonRelease(double t, float x, float y, unsigned int button)
[more]void adaptKeyPress( double t, Producer::KeySymbol key)
method for adapting keyboard events
[more]void adaptKeyRelease( double t, Producer::KeySymbol key)
[more]void adaptFrame(double t)
method for adapting frame events, ie.
[more]void copyStaticVariables()

Protected Fields

[more]EventType _eventType
[more]int _key
[more]int _button
[more]float _Xmin
[more]float _Xmax
[more]float _Ymin
[more]float _Ymax
[more]float _mx
[more]float _my
[more]unsigned int _buttonMask
[more]unsigned int _modKeyMask
[more]double _time


Documentation

Class for adapting Producer events so that they can be used as input to osgGA::CameraManipulators
o EventAdapter()

ovirtual ~EventAdapter()

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

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

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

ovirtual float getXmin() const
window minimum x.

ovirtual float getXmax() const
window maximum x.

ovirtual float getYmin() const
window minimum y.

ovirtual float getYmax() const
window maximum y.

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 double time() const
time in seconds of event.

ovirtual unsigned int getModKeyMask() const

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

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

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

ovoid adaptMouseScroll(double t, Producer::KeyboardMouseCallback::ScrollingMotion sm)
method for adapting mouse scroll wheel events.

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

ovoid adaptButtonPress(double t, float x, float y, unsigned int button)

ovoid adaptButtonRelease(double t, float x, float y, unsigned int button)

ovoid adaptKeyPress( double t, Producer::KeySymbol key)
method for adapting keyboard events

ovoid adaptKeyRelease( double t, Producer::KeySymbol key)

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

ovoid copyStaticVariables()

oEventType _eventType

oint _key

oint _button

ofloat _Xmin

ofloat _Xmax

ofloat _Ymin

ofloat _Ymax

ofloat _mx

ofloat _my

ounsigned int _buttonMask

ounsigned int _modKeyMask

odouble _time

ostatic unsigned int _s_accumulatedButtonMask

ostatic int _s_button

ostatic float _s_Xmin

ostatic float _s_Xmax

ostatic float _s_Ymin

ostatic float _s_Ymax

ostatic float _s_mx

ostatic float _s_my

ostatic int _s_modKeyMask


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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