Enroute Flight Navigation
A navigation app for VFR pilots
Ui::SideviewQuickItem Class Reference

QML base class for lateral airspace view. More...

#include <SideviewQuickItem.h>

Public Member Functions

QVariantMap airspaces () const
 Getter method for property with the same name.
QBindable< QVariantMap > bindableAirspaces () const
 Getter method for property with the same name.
QString error () const
 Getter method for property with the same name.
QBindable< QString > bindableError () const
 Getter method for property with the same name.
QPointF fiveMinuteBar () const
 Getter method for property with the same name.
QBindable< QPointF > bindableFiveMinuteBar () const
 Getter method for property with the same name.
QPointF ownshipPosition () const
 Getter method for property with the same name.
QBindable< QPointF > bindableOwnshipPosition () const
 Getter method for property with the same name.
double pixelPer10km () const
 Getter method for property with the same name.
QBindable< double > bindablePixelPer10km ()
 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.
QBindable< QString > bindableTrack () const
 Getter method for property with the same name.
QPolygonF terrain () const
 Getter method for property with the same name.
QBindable< QPolygonF > bindableTerrain () const
 Getter method for property with the same name.

Properties

QVariantMap airspaces
 Airspace polygons.
QString error
 Error string.
QPointF fiveMinuteBar
 5-Minute-Bar
QPointF ownshipPosition
 Position of the own aircraft.
double pixelPer10km
 Map scale.
QPolygonF terrain
 Terrain polygons.
QString track
 Track string.

Detailed Description

QML base class for lateral airspace view.

This class is the base class for the QML type "Sideview", which provides a lateral airspace view. It provides the polygons used by Sideview to draw terrain, airspaces, the position of the own aircraft, and the 5-minute bar.

Compiling the polygons is rather expensive. To keep the GUI responsive, the class limits the update frequency to one update every 700msec.

Definition at line 36 of file SideviewQuickItem.h.

Member Function Documentation

◆ airspaces()

QVariantMap Ui::SideviewQuickItem::airspaces ( ) const
inline

Getter method for property with the same name.

Returns
Property airspaces

Definition at line 121 of file SideviewQuickItem.h.

◆ bindableAirspaces()

QBindable< QVariantMap > Ui::SideviewQuickItem::bindableAirspaces ( ) const
inline

Getter method for property with the same name.

Returns
Property airspaces

Definition at line 127 of file SideviewQuickItem.h.

◆ bindableError()

QBindable< QString > Ui::SideviewQuickItem::bindableError ( ) const
inline

Getter method for property with the same name.

Returns
Property error

Definition at line 139 of file SideviewQuickItem.h.

◆ bindableFiveMinuteBar()

QBindable< QPointF > Ui::SideviewQuickItem::bindableFiveMinuteBar ( ) const
inline

Getter method for property with the same name.

Returns
Property fiveMinuteBar

Definition at line 151 of file SideviewQuickItem.h.

◆ bindableOwnshipPosition()

QBindable< QPointF > Ui::SideviewQuickItem::bindableOwnshipPosition ( ) const
inline

Getter method for property with the same name.

Returns
Property ownshipPosition

Definition at line 163 of file SideviewQuickItem.h.

◆ bindablePixelPer10km()

QBindable< double > Ui::SideviewQuickItem::bindablePixelPer10km ( )
inline

Getter method for property with the same name.

Returns
Property pixelPer10km

Definition at line 175 of file SideviewQuickItem.h.

◆ bindableTerrain()

QBindable< QPolygonF > Ui::SideviewQuickItem::bindableTerrain ( ) const
inline

Getter method for property with the same name.

Returns
Property terrain

Definition at line 205 of file SideviewQuickItem.h.

◆ bindableTrack()

QBindable< QString > Ui::SideviewQuickItem::bindableTrack ( ) const
inline

Getter method for property with the same name.

Returns
Property track

Definition at line 193 of file SideviewQuickItem.h.

◆ error()

QString Ui::SideviewQuickItem::error ( ) const
inline

Getter method for property with the same name.

Returns
Property error

Definition at line 133 of file SideviewQuickItem.h.

◆ fiveMinuteBar()

QPointF Ui::SideviewQuickItem::fiveMinuteBar ( ) const
inline

Getter method for property with the same name.

Returns
Property fiveMinuteBar

Definition at line 145 of file SideviewQuickItem.h.

◆ ownshipPosition()

QPointF Ui::SideviewQuickItem::ownshipPosition ( ) const
inline

Getter method for property with the same name.

Returns
Property ownshipPosition

Definition at line 157 of file SideviewQuickItem.h.

◆ pixelPer10km()

double Ui::SideviewQuickItem::pixelPer10km ( ) const
inline

Getter method for property with the same name.

Returns
Property pixelPer10km

Definition at line 169 of file SideviewQuickItem.h.

◆ setPixelPer10km()

void Ui::SideviewQuickItem::setPixelPer10km ( double newVal)
inline

Getter method for property with the same name.

Parameters
newValProperty pixelPer10km

Definition at line 181 of file SideviewQuickItem.h.

◆ terrain()

QPolygonF Ui::SideviewQuickItem::terrain ( ) const
inline

Getter method for property with the same name.

Returns
Property terrain

Definition at line 199 of file SideviewQuickItem.h.

◆ track()

QString Ui::SideviewQuickItem::track ( ) const
inline

Getter method for property with the same name.

Returns
Property track

Definition at line 187 of file SideviewQuickItem.h.

Property Documentation

◆ airspaces

QVariantMap Ui::SideviewQuickItem::airspaces
read

Airspace polygons.

This property holds polygons that can be used with the QML class "Shape" in order to draw a lateral view of the airspace situation. The size and position of the polygons is adjusted to the current size of the QML item. The polygons are sorted by drawing style. The following keys are used:

  • "A" … for airspaces with CAT equal to A, B, C or D.
  • "CTR" … for airspaces with CAT equal to CTR.
  • "NRA" … for airspaces with CAT equal to NRA.
  • "PJE" … for airspaces with CAT equal to PJE.
  • "R" … for airspaces with CAT equal to R, P or DNG.
  • "RMZ" … for airspaces with CAT equal to RMZ, TIA or TIZ.
  • "TMZ" … for airspaces with CAT equal to TMZ.

Definition at line 65 of file SideviewQuickItem.h.

◆ error

QString Ui::SideviewQuickItem::error
read

Error string.

If no sideview can be shown (or if it can be shown only partially), this property holds a human-readable, translated error message that should be shown prominently on top of the sideview, in order to hide partially drawn data underneath.

Definition at line 74 of file SideviewQuickItem.h.

◆ fiveMinuteBar

QPointF Ui::SideviewQuickItem::fiveMinuteBar
read

5-Minute-Bar

This property holds the x- and y-extension of the 5-Minute-Bar, in pixel coordinates of this QQuickItem.

Definition at line 81 of file SideviewQuickItem.h.

◆ ownshipPosition

QPointF Ui::SideviewQuickItem::ownshipPosition
read

Position of the own aircraft.

This property holds the position of the own aircraft, in pixel coordinates of this QQuickItem.

Definition at line 88 of file SideviewQuickItem.h.

◆ pixelPer10km

double Ui::SideviewQuickItem::pixelPer10km
readwrite

Map scale.

This property defines the scale of the side view. Copy the datum from a flightmap in order to synchronize the scales.

Definition at line 95 of file SideviewQuickItem.h.

◆ terrain

QPolygonF Ui::SideviewQuickItem::terrain
read

Terrain polygons.

This property holds polygons that can be used with the QML class "Shape" in order to draw a the terrain in the lateral view of the airspace situation.

Definition at line 102 of file SideviewQuickItem.h.

◆ track

QString Ui::SideviewQuickItem::track
read

Track string.

If the own aircraft is not moving sufficiently fast, this property holds a human-readable, translated string of the form "Direction → 210°". Otherwise, this property holds an empty string.

Definition at line 110 of file SideviewQuickItem.h.


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