JoystickControlWidgetQGraphicsView Class Reference

Provides the coordinates of mouse events through signals. More...

#include <ArmarXGui/libraries/ArmarXGuiBase/widgets/JoystickControlWidget.h>

+ Inheritance diagram for JoystickControlWidgetQGraphicsView:

Signals

void positionChanged (QPointF)
 Sends the mouse position on press or move in the scene coordinates. More...
 
void pressed ()
 Emitted when the mouse was pressed. More...
 
void released ()
 Emitted when the mouse was released. More...
 

Public Member Functions

 JoystickControlWidgetQGraphicsView (QGraphicsScene *scene, QWidget *parent=nullptr)
 
void mouseMoveEvent (QMouseEvent *event) override
 Passes the mapped mouse coordinates of the event through the signal positionChanged. More...
 
void mousePressEvent (QMouseEvent *event) override
 Passes the mapped mouse coordinates of the event through the signal positionChanged. More...
 
void mouseReleaseEvent (QMouseEvent *) override
 Passes (0;0) through the signal positionChanged. More...
 
 ~JoystickControlWidgetQGraphicsView () override
 

Detailed Description

Provides the coordinates of mouse events through signals.

Used in JoystickControlWidget.

Definition at line 47 of file JoystickControlWidget.h.

Constructor & Destructor Documentation

◆ JoystickControlWidgetQGraphicsView()

JoystickControlWidgetQGraphicsView ( QGraphicsScene *  scene,
QWidget *  parent = nullptr 
)

Definition at line 44 of file JoystickControlWidget.cpp.

◆ ~JoystickControlWidgetQGraphicsView()

~JoystickControlWidgetQGraphicsView ( )
overridedefault

Member Function Documentation

◆ mouseMoveEvent()

void mouseMoveEvent ( QMouseEvent *  event)
override

Passes the mapped mouse coordinates of the event through the signal positionChanged.

Parameters
eventContains the coordinates

Definition at line 58 of file JoystickControlWidget.cpp.

◆ mousePressEvent()

void mousePressEvent ( QMouseEvent *  event)
override

Passes the mapped mouse coordinates of the event through the signal positionChanged.

Parameters
eventContains the coordinates

Definition at line 52 of file JoystickControlWidget.cpp.

◆ mouseReleaseEvent()

void mouseReleaseEvent ( QMouseEvent *  )
override

Passes (0;0) through the signal positionChanged.

Definition at line 62 of file JoystickControlWidget.cpp.

◆ positionChanged

void positionChanged ( QPointF  )
signal

Sends the mouse position on press or move in the scene coordinates.

On mouse release (0;0) is send.

+ Here is the caller graph for this function:

◆ pressed

void pressed ( )
signal

Emitted when the mouse was pressed.

+ Here is the caller graph for this function:

◆ released

void released ( )
signal

Emitted when the mouse was released.

+ Here is the caller graph for this function:

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