AntiMicroX
Public Member Functions | Protected Member Functions | Private Attributes
JoySensorStatusBox Class Reference

The GUI sensor position indicator widget. More...

#include <joysensorstatusbox.h>

Inheritance diagram for JoySensorStatusBox:
[legend]
Collaboration diagram for JoySensorStatusBox:
[legend]

Public Member Functions

 JoySensorStatusBox (QWidget *parent=nullptr)
 
void setSensor (JoySensor *sensor)
 Sets the to be visualized sensor. More...
 
JoySensorgetSensor () 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

JoySensorm_sensor
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ JoySensorStatusBox()

JoySensorStatusBox::JoySensorStatusBox ( QWidget *  parent = nullptr)
explicit

Member Function Documentation

◆ drawArtificialHorizon()

void JoySensorStatusBox::drawArtificialHorizon ( )
protected

draws the artificial horizon instrument on the screen

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSensor()

JoySensor * JoySensorStatusBox::getSensor ( ) const

Get the visualized sensor object.

◆ paintEvent()

void JoySensorStatusBox::paintEvent ( QPaintEvent *  event)
overrideprotectedvirtual
Here is the call graph for this function:

◆ setSensor()

void JoySensorStatusBox::setSensor ( JoySensor sensor)

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.

◆ sizeHint()

QSize JoySensorStatusBox::sizeHint ( ) const
overridevirtual

Field Documentation

◆ m_sensor

JoySensor* JoySensorStatusBox::m_sensor
private

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