8#include <Inventor/ViewerComponents/SoEventBuilder.h>
24 return m_ivEvent.getMousePressEvent( eventPosition.x(),
26 getButtonId( qevent ),
27 qevent->modifiers() & Qt::AltModifier,
28 qevent->modifiers() & Qt::ControlModifier,
29 qevent->modifiers() & Qt::ShiftModifier );
40 return m_ivEvent.getMouseReleaseEvent( eventPosition.x(),
42 getButtonId( qevent ),
43 qevent->modifiers() & Qt::AltModifier,
44 qevent->modifiers() & Qt::ControlModifier,
45 qevent->modifiers() & Qt::ShiftModifier );
56 return m_ivEvent.getMouseDoubleClickEvent( eventPosition.x(),
58 getButtonId( qevent ),
59 qevent->modifiers() & Qt::AltModifier,
60 qevent->modifiers() & Qt::ControlModifier,
61 qevent->modifiers() & Qt::ShiftModifier );
71 return m_ivEvent.getMouseWheelEvent( qevent->angleDelta().y(),
72 qevent->modifiers() & Qt::AltModifier,
73 qevent->modifiers() & Qt::ControlModifier,
74 qevent->modifiers() & Qt::ShiftModifier );
85 return m_ivEvent.getMouseMoveEvent( eventPosition.x(),
87 qevent->modifiers() & Qt::AltModifier,
88 qevent->modifiers() & Qt::ControlModifier,
89 qevent->modifiers() & Qt::ShiftModifier );
98 return m_ivEvent.getMouseEnterEvent( 0, 0,
false,
false,
false );
107 return m_ivEvent.getMouseLeaveEvent( 0, 0,
false,
false,
false );
118 return m_ivEvent.getMouseMoveEvent( eventPosition.x(),
120 qevent->modifiers() & Qt::AltModifier,
121 qevent->modifiers() & Qt::ControlModifier,
122 qevent->modifiers() & Qt::ShiftModifier );
133 return m_ivEvent.getKeyPressEvent( ivKey,
134 qevent->modifiers() & Qt::AltModifier,
135 qevent->modifiers() & Qt::ControlModifier,
136 qevent->modifiers() & Qt::ShiftModifier );
147 return m_ivEvent.getKeyReleaseEvent( ivKey,
148 qevent->modifiers() & Qt::AltModifier,
149 qevent->modifiers() & Qt::ControlModifier,
150 qevent->modifiers() & Qt::ShiftModifier );
158 const std::vector<const SoEvent*>&
getTouchEvents( QTouchEvent* qevent,
int height );
174 static bool initClass();
179 std::vector<const SoEvent*> m_soeventlist;
184 static int keyMapInitFlag;
static SoMouseButtonEvent * getMouseReleaseEvent(QMouseEvent *qevent, QPoint eventPosition)
Transform QMouseReleaseEvent to SoMouseButtonEvent.
static SoKeyboardEvent * getKeyPressEvent(QKeyEvent *qevent)
Transform QKeyEvent press to SoKeyboardEvent.
static SoMouseButtonEvent * getMousePressEvent(QMouseEvent *qevent, QPoint eventPosition)
Transform QMousePressEvent to SoMouseButtonEvent.
static SoLocation2Event * getMouseLeaveEvent()
Transform mouse leave event to SoLocation2Event.
const std::vector< const SoEvent * > & getTouchEvents(QTouchEvent *qevent, int height)
Transform QTouchEvent to a list of SoEvent representing the touch event.
static SoKeyboardEvent * getKeyReleaseEvent(QKeyEvent *qevent)
Transform QKeyEvent release to SoKeyboardEvent.
static SoLocation2Event * getMouseEnterEvent()
Transform mouse enter event to SoLocation2Event.
static SoLocation2Event * getHoverMouseEvent(QHoverEvent *qevent, QPoint eventPosition)
Transform QHoverEvent to SoLocation2Event.
static SoMouseButtonEvent * getMouseDoubleClickEvent(QMouseEvent *qevent, QPoint eventPosition)
Transform QMouseDoubleClickEvent to SoMouseButtonEvent.
static SoLocation2Event * getMouseMoveEvent(QMouseEvent *qevent, QPoint eventPosition)
Transform QMouseEvent to SoLocation2Event.
static SoMouseWheelEvent * getMouseWheelEvent(QWheelEvent *qevent)
Transform QWheelEvent to SoMouseWheelEvent.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Utility class th...
Keyboard key press and release events.