Enroute Flight Navigation
A navigation app for VFR pilots
GeoMaps::Airspace Class Reference

A very simple class that describes an airspace. More...

#include <Airspace.h>

Public Member Functions

 Airspace ()=default
 Constructs an invalid airspace.
 
 Airspace (const QJsonObject &geoJSONObject)
 Constructs an airspace from a GeoJSON object.
 
auto estimatedLowerBoundMSL () const -> Units::Distance
 Estimates the lower limit of the airspace above MSL.
 
auto isValid () const -> bool
 Getter function for property with the same name.
 
auto lowerBound () const -> QString
 Getter function for property with the same name.
 
auto lowerBoundMetric () const -> QString
 Getter function for property with the same name.
 
auto name () const -> QString
 Getter function for property with the same name.
 
auto polygon () const -> QGeoPolygon
 Getter function for property with the same name.
 
auto CAT () const -> QString
 Getter function for property with the same name.
 
auto upperBound () const -> QString
 Getter function for property with the same name.
 
auto upperBoundMetric () const -> QString
 Getter function for property with the same name.
 

Properties

bool isValid
 Validity.
 
QString lowerBound
 Lower limit of the airspace.
 
QString lowerBoundMetric
 Lower limit of the airspace.
 
QGeoPolygon polygon
 QGeoPolygon that describes the lateral limits of the airspace.
 
QString upperBound
 Upper limit of the airspace.
 
QString upperBoundMetric
 Upper limit of the airspace.
 

Friends

auto operator== (const GeoMaps::Airspace &, const GeoMaps::Airspace &) -> bool
 Comparison.
 

Detailed Description

A very simple class that describes an airspace.

Definition at line 32 of file Airspace.h.

Constructor & Destructor Documentation

◆ Airspace()

GeoMaps::Airspace::Airspace ( const QJsonObject & geoJSONObject)
explicit

Constructs an airspace from a GeoJSON object.

This method constructs an Airpace from a GeoJSON description. The GeoJSON file specification is found here.

Parameters
geoJSONObjectGeoJSON Object that describes the airspace.

Member Function Documentation

◆ CAT()

auto GeoMaps::Airspace::CAT ( ) const -> QString
inlinenodiscard

Getter function for property with the same name.

Returns
Property CAT

Definition at line 128 of file Airspace.h.

◆ estimatedLowerBoundMSL()

auto GeoMaps::Airspace::estimatedLowerBoundMSL ( ) const -> Units::Distance
nodiscard

Estimates the lower limit of the airspace above MSL.

This method gives a rought estimate for the lower limit of the airspace. The result is not reliable enough for aviation purposes but can be used to sort the airspaces in the GUI.

Returns
Estimated lower bound of the airspace, above main sea level

◆ isValid()

auto GeoMaps::Airspace::isValid ( ) const -> bool
inlinenodiscard

Getter function for property with the same name.

Returns
Property isValid

Definition at line 70 of file Airspace.h.

◆ lowerBound()

auto GeoMaps::Airspace::lowerBound ( ) const -> QString
inlinenodiscard

Getter function for property with the same name.

Returns
Property lowerBound

Definition at line 84 of file Airspace.h.

◆ lowerBoundMetric()

auto GeoMaps::Airspace::lowerBoundMetric ( ) const -> QString
inlinenodiscard

Getter function for property with the same name.

Returns
Property lowerBoundMetric

Definition at line 96 of file Airspace.h.

◆ name()

auto GeoMaps::Airspace::name ( ) const -> QString
inlinenodiscard

Getter function for property with the same name.

Returns
Property name

Definition at line 105 of file Airspace.h.

◆ polygon()

auto GeoMaps::Airspace::polygon ( ) const -> QGeoPolygon
inlinenodiscard

Getter function for property with the same name.

Returns
Property polygon

Definition at line 114 of file Airspace.h.

◆ upperBound()

auto GeoMaps::Airspace::upperBound ( ) const -> QString
inlinenodiscard

Getter function for property with the same name.

Returns
Property upperBound

Definition at line 140 of file Airspace.h.

◆ upperBoundMetric()

auto GeoMaps::Airspace::upperBoundMetric ( ) const -> QString
inlinenodiscard

Getter function for property with the same name.

Returns
Property upperBoundMetric

Definition at line 152 of file Airspace.h.

Property Documentation

◆ lowerBound

QString GeoMaps::Airspace::lowerBound
read

Lower limit of the airspace.

A string that describes the lower bound of the airspace

See also
upperBound

Definition at line 78 of file Airspace.h.

◆ lowerBoundMetric

QString GeoMaps::Airspace::lowerBoundMetric
read

Lower limit of the airspace.

A string that describes the lower bound of the airspace in metric terms

Definition at line 90 of file Airspace.h.

◆ upperBound

QString GeoMaps::Airspace::upperBound
read

Upper limit of the airspace.

A string that describes the upper bound of the airspace

Definition at line 134 of file Airspace.h.

◆ upperBoundMetric

QString GeoMaps::Airspace::upperBoundMetric
read

Upper limit of the airspace.

A string that describes the upper bound of the airspace in metric terms

Definition at line 146 of file Airspace.h.


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