23#include <QElapsedTimer>
27#include "navigation/BaroCache.h"
39class SideviewQuickItem :
public QQuickItem
42 QML_NAMED_ELEMENT(SideviewQuickItem)
45 explicit SideviewQuickItem(QQuickItem *parent =
nullptr);
47 ~SideviewQuickItem()
override =
default;
124 QVariantMap
airspaces()
const {
return m_airspaces.value();}
136 QString
error()
const {
return m_error.value();}
190 QString
track()
const {
return m_track.value();}
202 QPolygonF
terrain()
const {
return m_terrain.value();}
216 QElapsedTimer m_elapsedTimer;
218 static constexpr int minimumUpdateInterval_ms = 700;
221 void updateProperties();
224 QProperty<QString> m_error;
226 QProperty<QString> m_track;
228 QProperty<double> m_pixelPer10km;
230 QProperty<QPointF> m_ownshipPosition;
232 QProperty<QPointF> m_fiveMinuteBar;
234 QProperty<QPolygonF> m_terrain;
236 QProperty<QVariantMap> m_airspaces;
240 std::vector<QPropertyNotifier> notifiers;
Cache relating geometric and barometric altitude information.
QML base class for lateral airspace view.
QString track
Track string.
QBindable< QVariantMap > bindableAirspaces() const
Getter method for property with the same name.
QString error
Error string.
QString error() const
Getter method for property with the same name.
QBindable< QPolygonF > bindableTerrain() const
Getter method for property with the same name.
void setPixelPer10km(double newVal)
Getter method for property with the same name.
QString track() const
Getter method for property with the same name.
QVariantMap airspaces
Airspace polygons.
QBindable< QString > bindableError() const
Getter method for property with the same name.
QPointF ownshipPosition
Position of the own aircraft.
QPointF fiveMinuteBar
5-Minute-Bar
QPointF ownshipPosition() const
Getter method for property with the same name.
QPolygonF terrain
Terrain polygons.
double pixelPer10km() const
Getter method for property with the same name.
QBindable< QPointF > bindableOwnshipPosition() const
Getter method for property with the same name.
QBindable< double > bindablePixelPer10km()
Getter method for property with the same name.
QBindable< QString > bindableTrack() const
Getter method for property with the same name.
QPointF fiveMinuteBar() const
Getter method for property with the same name.
double pixelPer10km
Map scale.
QPolygonF terrain() const
Getter method for property with the same name.
QBindable< QPointF > bindableFiveMinuteBar() const
Getter method for property with the same name.