#include <compass.h>
Inherits MultiWidget.
|
| Compass * | newInstance () |
| |
| void | setHeading (double value) |
| |
| void | setActive (bool b) |
| |
| QString | getMinimizedLabel () |
| |
| void | setMinimizedLabel (QString label) |
| |
| void | childEvent (QChildEvent *event) |
| |
| bool | event (QEvent *event) |
| |
| bool | isHiddenWhenMinimized () const |
| |
| void | hideWhenMin (bool b) |
| |
| QObject * | addItem (QObject *object) |
| |
| QObject * | addPoints (const QList< int > &points_x, const QList< int > &points_y, int groupNr, const QColor &color) |
| |
| QObject * | addText (int xPos, int yPos, int groupNr, const QString &text) |
| |
| QObject * | addLine (int xPos, int yPos, int groupNr, const QColor &color, int endX, int endY) |
| |
| QObject * | addEllipse (int xPos, int yPos, int groupNr, const QColor &color, int width, int height) |
| |
| QObject * | addRectangle (int xPos, int yPos, int groupNr, const QColor &color, int width, int height) |
| |
| QObject * | addPolyline (int groupNr, const QColor &color, const QList< QPoint > &points) |
| |
| QObject * | addPolygon (int groupNr, const QColor &color, const QList< QPoint > &points) |
| |
| QObject * | removeItem (QObject *drawItem, bool delete_object) |
| |
| void | removeAllItems (bool delete_objects) |
| |
Definition at line 14 of file compass.h.
◆ Compass()
| Compass::Compass |
( |
QWidget * |
parent = NULL | ) |
|
Definition at line 11 of file compass.cc.
20 number->setAlignment(Qt::AlignHCenter);
21 number->setText(
"NaN / NaN");
29 needle =
new QwtCompassMagnetNeedle(QwtCompassMagnetNeedle::TriangleStyle, Qt::white, Qt::red);
QwtCompassMagnetNeedle * needle
◆ newInstance
Definition at line 33 of file compass.cc.
Compass(QWidget *parent=NULL)
◆ setHeading
| void Compass::setHeading |
( |
double |
value | ) |
|
|
slot |
Definition at line 38 of file compass.cc.
40 QString heading_text = QString(
"%1 / %2").arg(v).arg(v/M_PI*180.0);
42 compass->setValue(-v/M_PI*180.0);
43 number->setText(heading_text);
◆ compass
| QwtCompass* Compass::compass |
|
protected |
◆ heading
◆ layout
| QVBoxLayout* Compass::layout |
|
protected |
◆ needle
| QwtCompassMagnetNeedle* Compass::needle |
|
protected |
◆ number
The documentation for this class was generated from the following files:
- /build/rock-master-18.09-gui-rock-widget-collection-0.20180124/src/artificial_horizon/compass.h
- /build/rock-master-18.09-gui-rock-widget-collection-0.20180124/src/artificial_horizon/compass.cc