Enroute Flight Navigation
A navigation app for VFR pilots
|
Traffic factor where only distance is known. More...
#include <TrafficFactor_DistanceOnly.h>
Signals | |
void | coordinateChanged () |
Notifier signal. | |
![]() | |
void | alarmLevelChanged () |
Notifier signal. | |
void | animateChanged () |
Notifier signal. | |
void | callSignChanged () |
Notifier signal. | |
void | colorChanged () |
Notifier signal. | |
void | descriptionChanged () |
Notifier signal. | |
void | hDistChanged () |
Notifier signal. | |
void | IDChanged () |
Notifier signal. | |
void | typeChanged () |
Notifier signal. | |
void | vDistChanged () |
Notifier signal. | |
void | validChanged () |
Notifier signal. | |
Public Member Functions | |
TrafficFactor_DistanceOnly (QObject *parent=nullptr) | |
Default constructor. | |
void | copyFrom (const TrafficFactor_DistanceOnly &other) |
Copy data from other object. | |
auto | coordinate () const -> QGeoCoordinate |
Getter method for property with the same name. | |
void | setCoordinate (const QGeoCoordinate &newCoordinate) |
Setter function for property with the same name. | |
![]() | |
TrafficFactor_Abstract (QObject *parent=nullptr) | |
Default constructor. | |
void | copyFrom (const TrafficFactor_Abstract &other) |
Copy data from other object. | |
auto | hasHigherPriorityThan (const TrafficFactor_Abstract &rhs) const -> bool |
Estimates if this traffic object has higher priority than other traffic object. | |
void | startLiveTime () |
Starts or extends the lifetime of this object. | |
int | alarmLevel () const |
Getter method for property with the same name. | |
QBindable< int > | bindableAlarmLevel () |
Getter method for property with the same name. | |
auto | animate () const -> bool |
Getter method for property with the same name. | |
auto | callSign () const -> QString |
Getter method for property with the same name. | |
auto | color () const -> QString |
Getter method for property with the same name. | |
auto | description () const -> QString |
Getter method for property with the same name. | |
Units::Distance | hDist () const |
Getter method for property with the same name. | |
QBindable< Units::Distance > | bindableHDist () |
Getter method for property with the same name. | |
auto | ID () const -> QString |
Getter method for property with the same name. | |
bool | relevant () const |
Getter method for property with the same name. | |
QBindable< bool > | bindableRelevant () |
Getter method for property with the same name. | |
QString | relevantString () const |
Getter method for property with the same name. | |
QBindable< bool > | bindableRelevantString () |
Getter method for property with the same name. | |
Traffic::TrafficFactor_Abstract::AircraftType | type () const |
Getter method for property with the same name. | |
QBindable< Traffic::TrafficFactor_Abstract::AircraftType > | bindableType () |
Getter method for property with the same name. | |
QString | typeString () const |
Getter method for property with the same name. | |
QBindable< QString > | bindableTypeString () |
Getter method for property with the same name. | |
bool | valid () const |
Getter method for property with the same name. | |
QBindable< bool > | bindableValid () |
Getter method for property with the same name. | |
Units::Distance | vDist () const |
Getter method for property with the same name. | |
QBindable< Units::Distance > | bindableVDist () |
Getter method for property with the same name. | |
void | setAlarmLevel (int newAlarmLevel) |
Setter function for property with the same name. | |
void | setAnimate (bool newAnimate) |
Setter function for property with the same name. | |
void | setCallSign (const QString &newCallSign) |
Setter function for property with the same name. | |
void | setHDist (Units::Distance newHDist) |
Setter function for property with the same name. | |
void | setID (const QString &newID) |
Setter function for property with the same name. | |
void | setType (Traffic::TrafficFactor_Abstract::AircraftType newType) |
Setter function for property with the same name. | |
void | setVDist (Units::Distance newVDist) |
Setter function for property with the same name. | |
Properties | |
QGeoCoordinate | coordinate |
Center coordinate. | |
![]() | |
int | alarmLevel |
Alarm Level. | |
bool | animate |
Indicates if changes in properties should be animated in the GUI. | |
QString | callSign |
Call sign. | |
QString | color |
Suggested color for GUI representation of the traffic. | |
QString | description |
Description of the traffic, for use in GUI. | |
Units::Distance | hDist |
Horizontal distance from own position to the traffic, at the time of report. | |
QString | ID |
Identifier string of the traffic. | |
bool | relevant |
Indicates relevant traffic. | |
QString | relevantString |
Translated string containing the 'relevant' property. | |
AircraftType | type |
Type of aircraft, as reported by the traffic receiver. | |
QString | typeString |
Type of aircraft, as reported by the traffic receiver. | |
bool | valid |
Validity. | |
Units::Distance | vDist |
Vertical distance from own position to the traffic, at the time of report. | |
Additional Inherited Members | |
![]() | |
enum | AircraftType : quint8 { unknown , Aircraft , Airship , Balloon , Copter , Drone , Glider , HangGlider , Jet , Paraglider , Skydiver , StaticObstacle , TowPlane } |
Aircraft type. More... | |
![]() | |
static constexpr auto | lifeTime = 10s |
Length of lifetime for objects of this class. | |
static constexpr Units::Distance | maxVerticalDistance = Units::Distance::fromM(1500.0) |
Maximal vertical distance for relevant traffic. | |
static constexpr Units::Distance | maxHorizontalDistance = Units::Distance::fromNM(20.0) |
Maximal horizontal distance for relevant traffic. | |
Traffic factor where only distance is known.
Objects of this class represent traffic factors, where only the horizontal distance to the traffic is known. This is typically the case for aircraft that report their position only through a Mode-S transponder. Compared to TrafficFactor_Abstract, instances of this class hold one additional property, namely the ownship position at the time of report. The traffic must then be expected within a cylinder centered in coordinate with radius hDist.
Definition at line 39 of file TrafficFactor_DistanceOnly.h.
|
explicit |
Default constructor.
parent | The standard QObject parent pointer |
|
inlinenodiscard |
Getter method for property with the same name.
Definition at line 89 of file TrafficFactor_DistanceOnly.h.
|
inline |
Copy data from other object.
This method copies all properties from the other object, with two notable exceptions.
other | Instance whose properties are copied |
Definition at line 66 of file TrafficFactor_DistanceOnly.h.
|
inline |
Setter function for property with the same name.
Setting a new position info does not update the hDist or vDist properties.
newCoordinate | Property coordinate |
Definition at line 100 of file TrafficFactor_DistanceOnly.h.
|
readwrite |
Center coordinate.
This property contains the coordinate of the center of the cylinder where the traffic is most likely located.
Definition at line 83 of file TrafficFactor_DistanceOnly.h.