Class for adapting Producer events so that they can be used as input to osgGA::CameraManipulators
Inheritance:
Public Fields
-
static unsigned int _s_accumulatedButtonMask
-
static int _s_button
-
static float _s_Xmin
-
static float _s_Xmax
-
static float _s_Ymin
-
static float _s_Ymax
-
static float _s_mx
-
static float _s_my
-
static int _s_modKeyMask
Public Methods
-
EventAdapter()
-
virtual ~EventAdapter()
-
virtual EventType getEventType() const
- Get the EventType of the GUI event
-
virtual int getKey() const
- key pressed, return -1 if inappropriate for this event.
-
virtual int getButton() const
- button pressed/released, return -1 if inappropriate for this event
-
virtual float getXmin() const
- window minimum x.
-
virtual float getXmax() const
- window maximum x.
-
virtual float getYmin() const
- window minimum y.
-
virtual float getYmax() const
- window maximum y.
-
virtual float getX() const
- current mouse x position
-
virtual float getY() const
- current mouse y position
-
virtual unsigned int getButtonMask() const
- current mouse button state
-
virtual double time() const
- time in seconds of event.
-
virtual unsigned int getModKeyMask() const
-
static void setWindowSize(float Xmin, float Ymin, float Xmax, float Ymax)
- static method for setting window dimensions
-
static void setButtonMask(unsigned int buttonMask)
- static method for setting button state
-
void adaptResize(double t, float Xmin, float Ymin, float Xmax, float Ymax)
- method for adapting resize events.
-
void adaptMouseScroll(double t, Producer::KeyboardMouseCallback::ScrollingMotion sm)
- method for adapting mouse scroll wheel events.
-
void adaptMouseMotion(double t, float x, float y)
- method for adapting mouse motion events whilst mouse buttons are pressed
-
void adaptButtonPress(double t, float x, float y, unsigned int button)
-
void adaptButtonRelease(double t, float x, float y, unsigned int button)
-
void adaptKeyPress( double t, Producer::KeySymbol key)
- method for adapting keyboard events
-
void adaptKeyRelease( double t, Producer::KeySymbol key)
-
void adaptFrame(double t)
- method for adapting frame events, ie.
-
void copyStaticVariables()
Protected Fields
-
EventType _eventType
-
int _key
-
int _button
-
float _Xmin
-
float _Xmax
-
float _Ymin
-
float _Ymax
-
float _mx
-
float _my
-
unsigned int _buttonMask
-
unsigned int _modKeyMask
-
double _time
Documentation
Class for adapting Producer events so that they can be used as input to osgGA::CameraManipulators
EventAdapter()
virtual ~EventAdapter()
virtual EventType getEventType() const
- Get the EventType of the GUI event
virtual int getKey() const
- key pressed, return -1 if inappropriate for this event.
virtual int getButton() const
- button pressed/released, return -1 if inappropriate for this event
virtual float getXmin() const
- window minimum x.
virtual float getXmax() const
- window maximum x.
virtual float getYmin() const
- window minimum y.
virtual float getYmax() const
- window maximum y.
virtual float getX() const
- current mouse x position
virtual float getY() const
- current mouse y position
virtual unsigned int getButtonMask() const
- current mouse button state
virtual double time() const
- time in seconds of event.
virtual unsigned int getModKeyMask() const
static void setWindowSize(float Xmin, float Ymin, float Xmax, float Ymax)
- static method for setting window dimensions
static void setButtonMask(unsigned int buttonMask)
- static method for setting button state
void adaptResize(double t, float Xmin, float Ymin, float Xmax, float Ymax)
- method for adapting resize events.
void adaptMouseScroll(double t, Producer::KeyboardMouseCallback::ScrollingMotion sm)
- method for adapting mouse scroll wheel events.
void adaptMouseMotion(double t, float x, float y)
- method for adapting mouse motion events whilst mouse buttons are pressed
void adaptButtonPress(double t, float x, float y, unsigned int button)
void adaptButtonRelease(double t, float x, float y, unsigned int button)
void adaptKeyPress( double t, Producer::KeySymbol key)
- method for adapting keyboard events
void adaptKeyRelease( double t, Producer::KeySymbol key)
void adaptFrame(double t)
- method for adapting frame events, ie. idle/display callback.
void copyStaticVariables()
EventType _eventType
int _key
int _button
float _Xmin
float _Xmax
float _Ymin
float _Ymax
float _mx
float _my
unsigned int _buttonMask
unsigned int _modKeyMask
double _time
static unsigned int _s_accumulatedButtonMask
static int _s_button
static float _s_Xmin
static float _s_Xmax
static float _s_Ymin
static float _s_Ymax
static float _s_mx
static float _s_my
static 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++.