27 #ifndef POSITIONFIELD_H
28 #define POSITIONFIELD_H
31 #include <QGraphicsView>
32 #include <QtSvg/QSvgRenderer>
33 #include <QtSvg/QGraphicsSvgItem>
62 QSvgRenderer *m_renderer;
63 QGraphicsSvgItem *m_background;
64 QGraphicsSvgItem *m_positiondesired;
65 QGraphicsSvgItem *m_positionactual;
68 #endif // POSITIONFIELD_H
void mousePressEvent(QMouseEvent *event)
Redirect mouse move clicks to control position.
void updateDesiredIndicator(double north, double east)
Update aircraft position on image (values go from -1 to 1)
void updateActualIndicator(double north, double east)
void paintEvent(QPaintEvent *event)
void mouseMoveEvent(QMouseEvent *event)
Redirect mouse move events to control position.
void resizeEvent(QResizeEvent *event)
PositionField(QWidget *parent=nullptr)
Constructor for JoystickControl widget. Sets up the image of a joystick.
void positionClicked(double north, double east)