![]() |
AntiMicroX
|
The GUI sensor position indicator widget. More...
#include <joysensorstatusbox.h>
Public Member Functions | |
JoySensorStatusBox (QWidget *parent=nullptr) | |
void | setSensor (JoySensor *sensor) |
Sets the to be visualized sensor. More... | |
JoySensor * | getSensor () const |
Get the visualized sensor object. More... | |
virtual QSize | sizeHint () const override |
Protected Member Functions | |
virtual void | paintEvent (QPaintEvent *event) override |
void | drawArtificialHorizon () |
draws the artificial horizon instrument on the screen More... | |
Private Attributes | |
JoySensor * | m_sensor |
The GUI sensor position indicator widget.
It shows the yaw and roll angles on an artificial horizon instrument. In case of a gyroscope, the inner parts has an additional horizontal degree of freedom.
|
explicit |
|
protected |
draws the artificial horizon instrument on the screen
JoySensor * JoySensorStatusBox::getSensor | ( | ) | const |
Get the visualized sensor object.
|
overrideprotectedvirtual |
Sets the to be visualized sensor.
It disconnects all events to the previous sensor if there was any, and connects them to the new sensor.
|
overridevirtual |
|
private |