osgProducer::EventAdapter Class Reference

Inheritance diagram for osgProducer::EventAdapter:

osgGA::GUIEventAdapter osg::Referenced List of all members.

Public Member Functions

 EventAdapter ()
virtual ~EventAdapter ()
virtual EventType getEventType () const
virtual int getKey () const
virtual int getButton () const
virtual float getXmin () const
virtual float getXmax () const
virtual float getYmin () const
virtual float getYmax () const
virtual float getX () const
virtual float getY () const
virtual unsigned int getButtonMask () const
virtual double time () const
virtual unsigned int getModKeyMask () const
void adaptResize (double t, float Xmin, float Ymin, float Xmax, float Ymax)
void adaptMouseScroll (double t, Producer::KeyboardMouseCallback::ScrollingMotion sm)
void adaptMouseMotion (double t, float x, float y)
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)
void adaptKeyRelease (double t, Producer::KeySymbol key)
void adaptFrame (double t)
void copyStaticVariables ()

Static Public Member Functions

static void setWindowSize (float Xmin, float Ymin, float Xmax, float Ymax)
static void setButtonMask (unsigned int buttonMask)

Static Public Attributes

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

Protected Attributes

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

Detailed Description

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


Constructor & Destructor Documentation

osgProducer::EventAdapter::EventAdapter  ) 
 

virtual osgProducer::EventAdapter::~EventAdapter  )  [inline, virtual]
 


Member Function Documentation

void osgProducer::EventAdapter::adaptButtonPress double  t,
float  x,
float  y,
unsigned int  button
 

void osgProducer::EventAdapter::adaptButtonRelease double  t,
float  x,
float  y,
unsigned int  button
 

void osgProducer::EventAdapter::adaptFrame double  t  ) 
 

method for adapting frame events, i.e. idle/display callback.

void osgProducer::EventAdapter::adaptKeyPress double  t,
Producer::KeySymbol  key
 

method for adapting keyboard events.

void osgProducer::EventAdapter::adaptKeyRelease double  t,
Producer::KeySymbol  key
 

void osgProducer::EventAdapter::adaptMouseMotion double  t,
float  x,
float  y
 

method for adapting mouse motion events whilst mouse buttons are pressed.

void osgProducer::EventAdapter::adaptMouseScroll double  t,
Producer::KeyboardMouseCallback::ScrollingMotion  sm
 

method for adapting mouse scroll wheel events.

void osgProducer::EventAdapter::adaptResize double  t,
float  Xmin,
float  Ymin,
float  Xmax,
float  Ymax
 

method for adapting resize events.

void osgProducer::EventAdapter::copyStaticVariables  ) 
 

virtual int osgProducer::EventAdapter::getButton  )  const [inline, virtual]
 

button pressed/released, return -1 if inappropriate for this event.

Implements osgGA::GUIEventAdapter.

virtual unsigned int osgProducer::EventAdapter::getButtonMask  )  const [inline, virtual]
 

current mouse button state

Implements osgGA::GUIEventAdapter.

virtual EventType osgProducer::EventAdapter::getEventType  )  const [inline, virtual]
 

Get the EventType of the GUI event.

Implements osgGA::GUIEventAdapter.

virtual int osgProducer::EventAdapter::getKey  )  const [inline, virtual]
 

key pressed, return -1 if inappropriate for this event.

Implements osgGA::GUIEventAdapter.

virtual unsigned int osgProducer::EventAdapter::getModKeyMask  )  const [inline, virtual]
 

current modkey state

Implements osgGA::GUIEventAdapter.

virtual float osgProducer::EventAdapter::getX  )  const [inline, virtual]
 

current mouse x position.

Implements osgGA::GUIEventAdapter.

virtual float osgProducer::EventAdapter::getXmax  )  const [inline, virtual]
 

window maximum x.

Implements osgGA::GUIEventAdapter.

virtual float osgProducer::EventAdapter::getXmin  )  const [inline, virtual]
 

window minimum x.

Implements osgGA::GUIEventAdapter.

virtual float osgProducer::EventAdapter::getY  )  const [inline, virtual]
 

current mouse y position.

Implements osgGA::GUIEventAdapter.

virtual float osgProducer::EventAdapter::getYmax  )  const [inline, virtual]
 

window maximum y.

Implements osgGA::GUIEventAdapter.

virtual float osgProducer::EventAdapter::getYmin  )  const [inline, virtual]
 

window minimum y.

Implements osgGA::GUIEventAdapter.

static void osgProducer::EventAdapter::setButtonMask unsigned int  buttonMask  )  [static]
 

static method for setting button state.

static void osgProducer::EventAdapter::setWindowSize float  Xmin,
float  Ymin,
float  Xmax,
float  Ymax
[static]
 

static method for setting window dimensions.

virtual double osgProducer::EventAdapter::time  )  const [inline, virtual]
 

time in seconds of event.

Implements osgGA::GUIEventAdapter.


Member Data Documentation

int osgProducer::EventAdapter::_button [protected]
 

unsigned int osgProducer::EventAdapter::_buttonMask [protected]
 

EventType osgProducer::EventAdapter::_eventType [protected]
 

int osgProducer::EventAdapter::_key [protected]
 

unsigned int osgProducer::EventAdapter::_modKeyMask [protected]
 

float osgProducer::EventAdapter::_mx [protected]
 

float osgProducer::EventAdapter::_my [protected]
 

unsigned int osgProducer::EventAdapter::_s_accumulatedButtonMask [static]
 

int osgProducer::EventAdapter::_s_button [static]
 

int osgProducer::EventAdapter::_s_modKeyMask [static]
 

float osgProducer::EventAdapter::_s_mx [static]
 

float osgProducer::EventAdapter::_s_my [static]
 

float osgProducer::EventAdapter::_s_Xmax [static]
 

float osgProducer::EventAdapter::_s_Xmin [static]
 

float osgProducer::EventAdapter::_s_Ymax [static]
 

float osgProducer::EventAdapter::_s_Ymin [static]
 

double osgProducer::EventAdapter::_time [protected]
 

float osgProducer::EventAdapter::_Xmax [protected]
 

float osgProducer::EventAdapter::_Xmin [protected]
 

float osgProducer::EventAdapter::_Ymax [protected]
 

float osgProducer::EventAdapter::_Ymin [protected]
 


The documentation for this class was generated from the following file:
Generated on Mon Feb 6 16:33:37 2006 for openscenegraph by  doxygen 1.4.6