class OSGGLUT_EXPORT osgGLUT::GLUTEventAdapter

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

Inheritance:


Public Methods

[more] GLUTEventAdapter()
[more]virtual ~GLUTEventAdapter()
[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 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 double 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(double t, int Xmin, int Ymin, int Xmax, int Ymax)
method for adapting resize events.
[more]void adaptMouseMotion(double t, int x, int y)
method for adapting mouse motion events whilst mouse buttons are pressed
[more]void adaptMousePassiveMotion(double t, int x, int y)
method for adapting mouse motion events whilst no mouse button are pressed
[more]void adaptMouse(double t, int button, int state, int x, int y)
method for adapting mouse button pressed/released events
[more]void adaptKeyboard(double t, unsigned char key, int x, int y )
method for adapting keyboard events
[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]int _Xmin
[more]int _Xmax
[more]int _Ymin
[more]int _Ymax
[more]int _mx
[more]int _my
[more]unsigned int _buttonMask
[more]double _time
[more]static unsigned int _s_accumulatedButtonMask
[more]static int _s_button
[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 GLUT events so that they can be used as input to osgGA::CameraManipulators
o GLUTEventAdapter()

ovirtual ~GLUTEventAdapter()

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 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 double 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(double t, int Xmin, int Ymin, int Xmax, int Ymax)
method for adapting resize events.

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

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

ovoid adaptMouse(double t, int button, int state, int x, int y)
method for adapting mouse button pressed/released events

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

ovoid adaptFrame(double t)
method for adapting frame events, ie. idle/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

odouble _time

ostatic unsigned int _s_accumulatedButtonMask

ostatic int _s_button

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++.