
|
Class for adapting GLUT events so that they can be used as input to osgGA::CameraManipulators
Inheritance:
Public Methods-
GLUTEventAdapter()
-
virtual ~GLUTEventAdapter()
-
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 int getXmin() const
- window minimum x.
-
virtual int getXmax() const
- window maximum x.
-
virtual int getYmin() const
- window minimum y.
-
virtual int getYmax() const
- window maximum y.
-
virtual int getX() const
- current mouse x position
-
virtual int getY() const
- current mouse y position
-
virtual unsigned int getButtonMask() const
- current mouse button state
-
virtual unsigned int getModKeyMask() const
- current modkey state
-
virtual double time() const
- time in seconds of event.
-
static void setWindowSize(int Xmin, int Ymin, int Xmax, int Ymax)
- static method for setting window dimensions
-
static void setButtonMask(unsigned int buttonMask)
- static method for setting button state
-
void adaptResize(double t, int Xmin, int Ymin, int Xmax, int Ymax)
- method for adapting resize events.
-
void adaptMouseMotion(double t, int x, int y)
- method for adapting mouse motion events whilst mouse buttons are pressed
-
void adaptMousePassiveMotion(double t, int x, int y)
- method for adapting mouse motion events whilst no mouse button are pressed
-
void adaptMouse(double t, int button, int state, int x, int y)
- method for adapting mouse button pressed/released events
-
void adaptKeyboard( double t, unsigned char key, int x, int y, bool keydown )
- method for adapting keyboard events
-
void adaptFrame(double t)
- method for adapting frame events, ie.
-
void copyStaticVariables()
Protected Fields-
EventType _eventType
-
int _key
-
int _button
-
int _Xmin
-
int _Xmax
-
int _Ymin
-
int _Ymax
-
int _mx
-
int _my
-
unsigned int _buttonMask
-
double _time
-
static unsigned int _s_accumulatedButtonMask
-
static int _s_button
-
static int _s_Xmin
-
static int _s_Xmax
-
static int _s_Ymin
-
static int _s_Ymax
-
static int _s_mx
-
static int _s_my
Documentation
Class for adapting GLUT events so that they can be used as input to osgGA::CameraManipulators
GLUTEventAdapter()
virtual ~GLUTEventAdapter()
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 int getXmin() const
- window minimum x.
virtual int getXmax() const
- window maximum x.
virtual int getYmin() const
- window minimum y.
virtual int getYmax() const
- window maximum y.
virtual int getX() const
- current mouse x position
virtual int getY() const
- current mouse y position
virtual unsigned int getButtonMask() const
- current mouse button state
virtual unsigned int getModKeyMask() const
- current modkey state
virtual double time() const
- time in seconds of event.
static void setWindowSize(int Xmin, int Ymin, int Xmax, int Ymax)
- static method for setting window dimensions
static void setButtonMask(unsigned int buttonMask)
- static method for setting button state
void adaptResize(double t, int Xmin, int Ymin, int Xmax, int Ymax)
- method for adapting resize events.
void adaptMouseMotion(double t, int x, int y)
- method for adapting mouse motion events whilst mouse buttons are pressed
void adaptMousePassiveMotion(double t, int x, int y)
- method for adapting mouse motion events whilst no mouse button are pressed
void adaptMouse(double t, int button, int state, int x, int y)
- method for adapting mouse button pressed/released events
void adaptKeyboard( double t, unsigned char key, int x, int y, bool keydown )
- method for adapting keyboard events
void adaptFrame(double t)
- method for adapting frame events, ie. idle/display callback.
void copyStaticVariables()
EventType _eventType
int _key
int _button
int _Xmin
int _Xmax
int _Ymin
int _Ymax
int _mx
int _my
unsigned int _buttonMask
double _time
static unsigned int _s_accumulatedButtonMask
static int _s_button
static int _s_Xmin
static int _s_Xmax
static int _s_Ymin
static int _s_Ymax
static int _s_mx
static 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++.
|