Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
QtEventToSoEvent Class Reference

#include <Inventor/ViewerComponents/Qt/QtEventToSoEvent.h>

+ Inheritance diagram for QtEventToSoEvent:

Public Member Functions

const std::vector< const SoEvent * > & getTouchEvents (QTouchEvent *qevent, int height)
 Transform QTouchEvent to a list of SoEvent representing the touch event.
 

Static Public Member Functions

static SoMouseButtonEventgetMousePressEvent (QMouseEvent *qevent, QPoint eventPosition)
 Transform QMousePressEvent to SoMouseButtonEvent.
 
static SoMouseButtonEventgetMouseReleaseEvent (QMouseEvent *qevent, QPoint eventPosition)
 Transform QMouseReleaseEvent to SoMouseButtonEvent.
 
static SoMouseButtonEventgetMouseDoubleClickEvent (QMouseEvent *qevent, QPoint eventPosition)
 Transform QMouseDoubleClickEvent to SoMouseButtonEvent.
 
static SoMouseWheelEventgetMouseWheelEvent (QWheelEvent *qevent)
 Transform QWheelEvent to SoMouseWheelEvent.
 
static SoLocation2EventgetMouseMoveEvent (QMouseEvent *qevent, QPoint eventPosition)
 Transform QMouseEvent to SoLocation2Event.
 
static SoLocation2EventgetMouseEnterEvent ()
 Transform mouse enter event to SoLocation2Event.
 
static SoLocation2EventgetMouseLeaveEvent ()
 Transform mouse leave event to SoLocation2Event.
 
static SoLocation2EventgetHoverMouseEvent (QHoverEvent *qevent, QPoint eventPosition)
 Transform QHoverEvent to SoLocation2Event.
 
static SoKeyboardEventgetKeyPressEvent (QKeyEvent *qevent)
 Transform QKeyEvent press to SoKeyboardEvent.
 
static SoKeyboardEventgetKeyReleaseEvent (QKeyEvent *qevent)
 Transform QKeyEvent release to SoKeyboardEvent.
 

Detailed Description

Definition at line 13 of file QtEventToSoEvent.h.

Member Function Documentation

◆ getHoverMouseEvent()

static SoLocation2Event * QtEventToSoEvent::getHoverMouseEvent ( QHoverEvent *  qevent,
QPoint  eventPosition 
)
inlinestatic

Transform QHoverEvent to SoLocation2Event.

Parameters
qeventQt event to transform
eventPositionevent position transformed to be OpenInventor complient

Definition at line 116 of file QtEventToSoEvent.h.

◆ getKeyPressEvent()

static SoKeyboardEvent * QtEventToSoEvent::getKeyPressEvent ( QKeyEvent *  qevent)
inlinestatic

Transform QKeyEvent press to SoKeyboardEvent.

Parameters
qeventQt event to transform

Definition at line 130 of file QtEventToSoEvent.h.

◆ getKeyReleaseEvent()

static SoKeyboardEvent * QtEventToSoEvent::getKeyReleaseEvent ( QKeyEvent *  qevent)
inlinestatic

Transform QKeyEvent release to SoKeyboardEvent.

Parameters
qeventQt event to transform

Definition at line 144 of file QtEventToSoEvent.h.

◆ getMouseDoubleClickEvent()

static SoMouseButtonEvent * QtEventToSoEvent::getMouseDoubleClickEvent ( QMouseEvent *  qevent,
QPoint  eventPosition 
)
inlinestatic

Transform QMouseDoubleClickEvent to SoMouseButtonEvent.

Parameters
qeventQt event to transform
eventPositionevent position transformed to be OpenInventor complient

Definition at line 54 of file QtEventToSoEvent.h.

◆ getMouseEnterEvent()

static SoLocation2Event * QtEventToSoEvent::getMouseEnterEvent ( )
inlinestatic

Transform mouse enter event to SoLocation2Event.

Definition at line 96 of file QtEventToSoEvent.h.

◆ getMouseLeaveEvent()

static SoLocation2Event * QtEventToSoEvent::getMouseLeaveEvent ( )
inlinestatic

Transform mouse leave event to SoLocation2Event.

Definition at line 105 of file QtEventToSoEvent.h.

◆ getMouseMoveEvent()

static SoLocation2Event * QtEventToSoEvent::getMouseMoveEvent ( QMouseEvent *  qevent,
QPoint  eventPosition 
)
inlinestatic

Transform QMouseEvent to SoLocation2Event.

Parameters
qeventQt event to transform
eventPositionevent position transformed to be OpenInventor complient

Definition at line 83 of file QtEventToSoEvent.h.

◆ getMousePressEvent()

static SoMouseButtonEvent * QtEventToSoEvent::getMousePressEvent ( QMouseEvent *  qevent,
QPoint  eventPosition 
)
inlinestatic

Transform QMousePressEvent to SoMouseButtonEvent.

Parameters
qeventQt event to transform
eventPositionevent position transformed to be OpenInventor complient

Definition at line 22 of file QtEventToSoEvent.h.

◆ getMouseReleaseEvent()

static SoMouseButtonEvent * QtEventToSoEvent::getMouseReleaseEvent ( QMouseEvent *  qevent,
QPoint  eventPosition 
)
inlinestatic

Transform QMouseReleaseEvent to SoMouseButtonEvent.

Parameters
qeventQt event to transform
eventPositionevent position transformed to be OpenInventor complient

Definition at line 38 of file QtEventToSoEvent.h.

◆ getMouseWheelEvent()

static SoMouseWheelEvent * QtEventToSoEvent::getMouseWheelEvent ( QWheelEvent *  qevent)
inlinestatic

Transform QWheelEvent to SoMouseWheelEvent.

Parameters
qeventQt event to transform

Definition at line 69 of file QtEventToSoEvent.h.

◆ getTouchEvents()

const std::vector< const SoEvent * > & QtEventToSoEvent::getTouchEvents ( QTouchEvent *  qevent,
int  height 
)

Transform QTouchEvent to a list of SoEvent representing the touch event.

Parameters
qeventQt event to transform
heightHeight of the widget where the event is firered. it's used to transform event position to OpenInventor complient position

The documentation for this class was generated from the following file: