6 #ifndef SWIFT_MISC_AVIATION_TRACK_H
7 #define SWIFT_MISC_AVIATION_TRACK_H
25 namespace swift::misc::aviation
66 CTrack() : CAngle(0, swift::misc::physical_quantities::CAngleUnit::rad()), m_north(Magnetic) {}
70 : CAngle(value, unit), m_north(north)
75 : CAngle(track), m_north(north)
81 (void)QT_TRANSLATE_NOOP(
"Aviation",
"magnetic");
82 return Magnetic == this->m_north;
88 (void)QT_TRANSLATE_NOOP(
"Aviation",
"true");
89 return True == this->m_north;
96 QString convertToQString(
bool i18n =
false)
const;
99 ReferenceNorth m_north;
Track as used in aviation, can be true or magnetic Track.
ReferenceNorth
Enum type to distinguish between true north and magnetic north.
CTrack(double value, ReferenceNorth north, const swift::misc::physical_quantities::CAngleUnit &unit)
Constructor.
bool isMagneticTrack() const
Magnetic Track?
CTrack()
Default constructor: 0 Track magnetic.
ReferenceNorth getReferenceNorth() const
Get reference north (magnetic or true)
CTrack(const swift::misc::physical_quantities::CAngle &track, ReferenceNorth north)
Constructor by CAngle.
bool isTrueTrack() const
True Track?
CRTP class template from which a derived class can inherit property indexing functions.
CRTP class template from which a derived class can inherit string streaming operations.
Physical unit angle (radians, degrees)
Specialized class for angles (degrees, radian).
#define SWIFT_MISC_DECLARE_USING_MIXIN_DATASTREAM(DERIVED)
When a derived class and a base class both inherit from mixin::DataStreamByMetaClass,...
#define SWIFT_MISC_DECLARE_USING_MIXIN_DBUS(DERIVED,...)
When a derived class and a base class both inherit from mixin::DBusByTuple, the derived class uses th...
#define SWIFT_MISC_DECLARE_USING_MIXIN_INDEX(DERIVED)
When a derived class and a base class both inherit from mixin::Index, the derived class uses this mac...
#define SWIFT_MISC_DECLARE_USING_MIXIN_JSON(DERIVED)
When a derived class and a base class both inherit from mixin::JsonByTuple, the derived class uses th...
#define SWIFT_MISC_DECLARE_USING_MIXIN_STRING(DERIVED)
When a derived class and a base class both inherit from mixin::String, the derived class uses this ma...
#define SWIFT_MISC_EXPORT
Export a class or function from the library.