arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

QtGutzEvent.h File Reference

#include <eventGutz.h>

Go to the source code of this file.

Functions

unsigned int qt2GutzButton (QMouseEvent *e)
 Mouse Button mapper.

unsigned int qt2GutzDblButton (QMouseEvent *e)
 Double click mouse button mapper Takes a qt double button and mapps it to a gutz button.

unsigned int qt2GutzState (QMouseEvent *e)
 Shift/Alt/Ctrl mapper Takes a qt key modifier and mapps it to a Gutz state modifer.

unsigned int qt2GutzSpecialKey (QKeyEvent *e)
 Special Key Mapper Takes a qt special key and mapps it to a Gutz arrow key.

gutz::MouseEventSP qt2GutzMouse (QMouseEvent *e, gutz::CameraSP cam=0, gutz::ManipSP manip=0)
 Map a Qt mouse event to a gutz mouse event.


Function Documentation

unsigned int qt2GutzButton QMouseEvent *  e  )  [inline]
 

Mouse Button mapper.

Takes a qt button and mapps it to a gutz button

Definition at line 30 of file QtGutzEvent.h.

Referenced by qt2GutzMouse().

unsigned int qt2GutzDblButton QMouseEvent *  e  )  [inline]
 

Double click mouse button mapper Takes a qt double button and mapps it to a gutz button.

Definition at line 57 of file QtGutzEvent.h.

gutz::MouseEventSP qt2GutzMouse QMouseEvent *  e,
gutz::CameraSP  cam = 0,
gutz::ManipSP  manip = 0
[inline]
 

Map a Qt mouse event to a gutz mouse event.

Takes an optional camera an manipulator

Definition at line 137 of file QtGutzEvent.h.

References qt2GutzButton(), and qt2GutzState().

Referenced by BasicQGL::mouseDoubleClickEvent(), RenderableQGL::mouseMoveEvent(), BasicQGL::mouseMoveEvent(), RenderableQGL::mousePressEvent(), BasicQGL::mousePressEvent(), and RenderableQGL::mouseReleaseEvent().

unsigned int qt2GutzSpecialKey QKeyEvent *  e  )  [inline]
 

Special Key Mapper Takes a qt special key and mapps it to a Gutz arrow key.

Definition at line 110 of file QtGutzEvent.h.

unsigned int qt2GutzState QMouseEvent *  e  )  [inline]
 

Shift/Alt/Ctrl mapper Takes a qt key modifier and mapps it to a Gutz state modifer.

Definition at line 84 of file QtGutzEvent.h.

Referenced by qt2GutzMouse().


Send questions, comments, and bug reports to:
jmk