6#ifndef SWIFT_MISC_AVIATION_ONGROUNDINFO_H
7#define SWIFT_MISC_AVIATION_ONGROUNDINFO_H
15namespace swift::misc::aviation
26 OnGroundSituationUnknown
35 OnGroundByElevationAndCG,
47 IndexOnGroundFactor = CPropertyIndexRef::GlobalIndexCOnGroundInfo,
72 m_onGroundDetails =
static_cast<int>(details);
77 IsOnGround getOnGround()
const;
81 OnGroundDetails getGroundDetails()
const;
84 QString convertToQString(
bool i18n =
false)
const;
93 static void registerMetadata();
96 static const QString &isOnGroundToString(IsOnGround onGround);
99 static const QString &onGroundDetailsToString(OnGroundDetails reliability);
111 bool isOnGround()
const;
113 int m_onGroundDetails =
static_cast<int>(OnGroundDetails::NotSetGroundDetails);
114 double m_onGroundFactor = -1.0;
116 static constexpr double m_groundFactorThreshold =
Non-owning reference to a CPropertyIndex with a subset of its features.
Information about the ground status.
OnGroundDetails
Reliability of on ground information.
@ InFromParts
set from aircraft parts
@ InFromNetwork
received from network
@ OutOnGroundOwnAircraft
sending on ground
@ OnGroundByInterpolation
strongest for remote aircraft
@ OnGroundByGuessing
weakest
@ NotSetGroundDetails
not set or unknown if correct (e.g.
double getGroundFactor() const
Get the ground factor Use this for interpolation only!! For just checking if the info is OnGround or ...
void setOnGroundDetails(OnGroundDetails details)
When source of knowledge changes.
ColumnIndex
Properties by index.
Physical unit length (length).
#define SWIFT_MISC_EXPORT
Export a class or function from the library.
#define SWIFT_DECLARE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template declaration of mixins for a CValueObject subclass to be placed near the top of the ...