|
Qt Virtual Chart Table (QVCT)
|
Fix data [source,time,position,course,DOPs,...]. More...
#include <devices/data/CDeviceDataFix.hpp>
Public Types | |
| enum | EType { FIX_NONE = 0 , FIX_2D = 1 , FIX_3D = 2 , FIX_DGPS = 4 , FIX_UNDEFINED = 128 } |
| Fix type (2D, 3D, no fix) More... | |
Public Types inherited from CDeviceDataSource | |
| enum | EType { UNDEFINED , GPS , AIS , SBS } |
| Data source type. More... | |
Public Member Functions | |
| CDeviceDataFix (const QString &_rqsSourceName, int _eType=FIX_UNDEFINED, double _fdTime=CDataValidity::UNDEFINED_VALUE) | |
| virtual | ~CDeviceDataFix () |
| void | setFix (const CDeviceDataFix &_roDeviceDataFix, bool _bCopyTime=true, bool _bCopyPosition=true, bool _bCopyCourse=true, bool _bCopyDop=true) |
| Sets (copy) the fix data from another instance. More... | |
| void | setType (int _eType) |
| Sets the fix type. More... | |
| void | setSources (int _iSourcesSeen, int _iSourcesUsed) |
| Sets the sources count (most likely satellites) More... | |
| void | setErrorTime (double _fdErrorTime) |
| Sets the time error, in seconds. More... | |
| void | setErrorPosition (double _fdErrorHorizontal, double _fdErrorVertical=CDataValidity::UNDEFINED_VALUE) |
| Sets the (horizontal and vertical) position error, in meters. More... | |
| void | setErrorBearing (double _fdErrorBearing) |
| Sets the bearing error, in degrees. More... | |
| void | setErrorSpeed (double _fdErrorSpeed, double _fdErrorSpeedVertical=CDataValidity::UNDEFINED_VALUE) |
| Sets the (horizontal and vertical) speed error, in meters per second. More... | |
| void | setText (const QString &_rqsText) |
| Sets the additional textual data string. More... | |
| void | setCourseFromPosition (bool _bCourseFromPosition) |
| Sets whether to use position to compute course. More... | |
| int | getType () const |
| Returns the fix type. More... | |
| QString | getTypeString () const |
| Returns the fix type as a human-friendly string. More... | |
| int | getSourcesSeen () const |
| Returns the seen sources count (most likely satellites) More... | |
| int | getSourcesUsed () const |
| Returns the used sources count (most likely satellites) More... | |
| double | getErrorTime () const |
| Returns the time error, in seconds. More... | |
| double | getErrorHorizontal () const |
| Returns the horizontal position error, in meters. More... | |
| double | getErrorVertical () const |
| Returns the vertical position error, in meters. More... | |
| double | getErrorBearing () const |
| Returns the bearing error, in degrees. More... | |
| double | getErrorSpeed () const |
| Returns the horizontal speed error, in meters per second. More... | |
| double | getErrorSpeedVertical () const |
| Returns the vertical speed error, in meters per second. More... | |
| QString | getText () const |
| Returns the additional textual data string. More... | |
| bool | isCourseFromPosition () const |
| Returns whether position is used to compute course. More... | |
Public Member Functions inherited from CDeviceDataSource | |
| void | setSourceType (EType _eType) |
| Sets the source type. More... | |
| QString | getSourceName () const |
| Returns the source name. More... | |
| EType | getSourceType () const |
| Returns the source type. More... | |
Public Member Functions inherited from CDataTime | |
| CDataTime (double _fdTime=UNDEFINED_TIME) | |
| CDataTime (const CDataTime &_roDataTime) | |
| virtual | ~CDataTime () |
| void | setTime (double _fdTime) |
| Sets the time, in seconds from Unix epoch. More... | |
| void | setTime (time_t _tSeconds, long _lNanoSeconds) |
| Sets the time, in seconds from Unix epoch, using timespec stanza. More... | |
| void | setTime (const CDataTime &_roDataTime) |
| Copy time from another time object. More... | |
| void | resetTime () |
| Resets the time (to an undefined Time) More... | |
| double | getTime () const |
| Returns this time's time, in seconds from Unix epoch. More... | |
| void | serialize (QDataStream &_rqDataStream) const |
| Serializes (store) this object's data to binary format. More... | |
| void | unserialize (QDataStream &_rqDataStream) |
| Unserializes (restore) this object's data from binary format. More... | |
| bool | operator== (const CDataTime &_roTime) const |
| Equality operator. More... | |
| bool | operator!= (const CDataTime &_roTime) const |
| Inequality operator. More... | |
Public Member Functions inherited from CDataPosition | |
| CDataPosition () | |
| CDataPosition (double _fdLongitude, double _fdLatitude, double _fdElevation=UNDEFINED_ELEVATION) | |
| CDataPosition (const CDataPosition &_roDataPosition) | |
| virtual | ~CDataPosition () |
| void | setPosition (double _fdLongitude, double _fdLatitude, double _fdElevation=UNDEFINED_ELEVATION) |
| Sets new coordinates. More... | |
| void | setPosition (const CDataPosition &_roDataPosition) |
| Copy coordinates from another position. More... | |
| void | resetPosition () |
| Resets all coordinates (to an undefined position) More... | |
| void | setElevation (double _fdElevation) |
| Sets the elevation, in meters. More... | |
| void | resetElevation () |
| Resets the elevation (to an undefined elevation) More... | |
| double | getLongitude () const |
| Returns this position's longitude, in degrees. More... | |
| double | getLatitude () const |
| Returns this position's latitude, in degrees. More... | |
| double | getElevation () const |
| Returns this position's elevation, in meters. More... | |
| void | serialize (QDataStream &_rqDataStream) const |
| Serializes (store) this object's data to binary format. More... | |
| void | unserialize (QDataStream &_rqDataStream) |
| Unserializes (restore) this object's data from binary format. More... | |
| bool | operator== (const CDataPosition &_roPosition) const |
| Equality operator. More... | |
| bool | operator!= (const CDataPosition &_roPosition) const |
| Inequality operator. More... | |
Public Member Functions inherited from CDataCourse | |
| CDataCourse () | |
| CDataCourse (double _fdBearing, double _fdSpeed, double _fdSpeedVertical=UNDEFINED_SPEED) | |
| CDataCourse (const CDataCourse &_roDataCourse) | |
| virtual | ~CDataCourse () |
| void | setCourse (double _fdBearing, double _fdSpeed, double _fdSpeedVertical=UNDEFINED_SPEED) |
| Sets course values. More... | |
| void | setCourse (const CDataCourse &_roDataCourse) |
| Copy values from another course. More... | |
| void | resetCourse () |
| Resets all values (to an undefined course) More... | |
| void | setBearing (double _fdBearing) |
| Sets this course's bearing, in degrees. More... | |
| void | resetBearing () |
| Resets this course's bearing. More... | |
| void | setSpeed (double _fdSpeed, double _fdSpeedVertical=UNDEFINED_SPEED) |
| Sets this course's horizontal speed, in meters per second. More... | |
| void | resetSpeed () |
| Resets this course's horizontal speed. More... | |
| void | setSpeedVertical (double _fdSpeedVertical) |
| Sets this course's vertical speed, in meters per second. More... | |
| void | resetSpeedVertical () |
| Resets this course's vertical speed. More... | |
| double | getBearing () const |
| Returns this course's bearing, in degrees. More... | |
| double | getSpeed () const |
| Returns this course's horizontal speed, in meters per second. More... | |
| double | getSpeedVertical () const |
| Returns this course's vertical speed, in meters per second. More... | |
| void | serialize (QDataStream &_rqDataStream) const |
| Serializes (store) this object's data to binary format. More... | |
| void | unserialize (QDataStream &_rqDataStream) |
| Unserializes (restore) this object's data from binary format. More... | |
| bool | operator== (const CDataCourse &_roCourse) const |
| Equality operator. More... | |
| bool | operator!= (const CDataCourse &_roCourse) const |
| Inequality operator. More... | |
Public Member Functions inherited from CDeviceDataDop | |
| CDeviceDataDop (double _fdDopHorizontal=UNDEFINED_VALUE, double _fdDopVertical=UNDEFINED_VALUE, double _fdDopTime=UNDEFINED_VALUE) | |
| virtual | ~CDeviceDataDop () |
| void | setDop (const CDeviceDataDop &_roDeviceDataDop) |
| Sets (copy) the Dilution-of-Precision (HDOP, VDOP, TDOP) values from other DOP data. More... | |
| void | setDopPosition (double _fdDopHorizontal, double _fdDopVertical=UNDEFINED_VALUE) |
| Sets the position Dilution-of-Precision (HDOP, VDOP) More... | |
| void | setDopTime (double _fdDopTime) |
| Sets the time Dilution-of-Precision (TDOP) More... | |
| double | getDopTime () const |
| Returns the time Dilution-of-Precision (TDOP) More... | |
| double | getDopHorizontal () const |
| Returns the horizontal position Dilution-of-Precision (HDOP) More... | |
| double | getDopVertical () const |
| Returns the vertical position Dilution-of-Precision (VDOP) More... | |
| double | getDopPosition () const |
| Returns the position Dilution-of-Precision (PDOP) More... | |
| double | getDopGlobal () const |
| Returns the global Dilution-of-Precision (GDOP) More... | |
| bool | operator== (const CDeviceDataDop &_roDeviceDataDop) const |
| Equality operator. More... | |
| bool | operator!= (const CDeviceDataDop &_roDeviceDataDop) const |
| Inequality operator. More... | |
Static Public Member Functions | |
| static QString | getTypeString (int _eType) |
Static Public Member Functions inherited from CDataTime | |
| static bool | compareTimeAscending (const CDataTime &_roTime1, const CDataTime &_roTime2) |
| Time (ascending sort) comparison operator. More... | |
| static bool | compareTimeDescending (const CDataTime &_roTime1, const CDataTime &_roTime2) |
| Time (descending sort) comparison operator. More... | |
Static Public Member Functions inherited from CDataPosition | |
| static double | distanceGC (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2) |
| Returns the WGS84-corrected great-circle distance between two points, in meters. More... | |
| static double | bearingGC (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2) |
| Returns the great-circle (initial) bearing between two points, in degrees. More... | |
| static double | distanceRL (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2) |
| Returns the rhumb-line distance between two points, in meters. More... | |
| static double | bearingRL (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2) |
| Returns the rhumb-line (constant) bearing between two points, in degrees. More... | |
| static double | length (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2) |
| Returns the length (rhumb-line distance and elevation delta) between two points, in meters. More... | |
| static bool | compareLongitudeAscending (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2) |
| Longitude (ascending sort) comparison operator. More... | |
| static bool | compareLongitudeDescending (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2) |
| Longitude (descending sort) comparison operator. More... | |
| static bool | compareLatitudeAscending (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2) |
| Latitude (ascending sort) comparison operator. More... | |
| static bool | compareLatitudeDescending (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2) |
| Latitude (descending sort) comparison operator. More... | |
| static bool | compareElevationAscending (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2) |
| Elevation (ascending sort) comparison operator. More... | |
| static bool | compareElevationDescending (const CDataPosition &_roPosition1, const CDataPosition &_roPosition2) |
| Elevation (descending sort) comparison operator. More... | |
Static Public Member Functions inherited from CDataCourse | |
| static bool | compareBearingAscending (const CDataCourse &_roCourse1, const CDataCourse &_roCourse2) |
| Bearing (ascending sort) comparison operator. More... | |
| static bool | compareBearingDescending (const CDataCourse &_roCourse1, const CDataCourse &_roCourse2) |
| Bearing (descending sort) comparison operator. More... | |
| static bool | compareSpeedAscending (const CDataCourse &_roCourse1, const CDataCourse &_roCourse2) |
| Horizontal speed (ascending sort) comparison operator. More... | |
| static bool | compareSpeedDescending (const CDataCourse &_roCourse1, const CDataCourse &_roCourse2) |
| Horizontal speed (descending sort) comparison operator. More... | |
| static bool | compareSpeedVerticalAscending (const CDataCourse &_roCourse1, const CDataCourse &_roCourse2) |
| Vertical speed (ascending sort) comparison operator. More... | |
| static bool | compareSpeedVerticalDescending (const CDataCourse &_roCourse1, const CDataCourse &_roCourse2) |
| Vertical speed (descending sort) comparison operator. More... | |
Private Attributes | |
| int | eType |
| Fix type. More... | |
| int | iSourcesSeen |
| Seen sources count (most likely satellites) More... | |
| int | iSourcesUsed |
| Used sources count (most likely satellites) More... | |
| double | fdErrorTime |
| Time error, in seconds. More... | |
| double | fdErrorHorizontal |
| Horizontal position error, in meters. More... | |
| double | fdErrorVertical |
| Vertical position error, in meters. More... | |
| double | fdErrorBearing |
| Bearing error, in degrees. More... | |
| double | fdErrorSpeed |
| Horizontal speed error, in meters per second. More... | |
| double | fdErrorSpeedVertical |
| Vertical speed error, in meters per second. More... | |
| QString | qsText |
| Additional textual data string. More... | |
| bool | bCourseFromPosition |
| Use position to compute course. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from CDataTime | |
| static constexpr double | UNDEFINED_TIME = -9999999 |
| Specific value for an undefined time. More... | |
| static const CDataTime | UNDEFINED |
| Specific value for an undefined time object. More... | |
Static Public Attributes inherited from CDataPosition | |
| static constexpr double | UNDEFINED_LONGITUDE = -999 |
| Specific value for an undefined longitude. More... | |
| static constexpr double | UNDEFINED_LATITUDE = -99 |
| Specific value for an undefined latitude. More... | |
| static constexpr double | UNDEFINED_ELEVATION = -9999999 |
| Specific value for an undefined elevation. More... | |
| static const CDataPosition | UNDEFINED |
| Specific value for an undefined position. More... | |
Static Public Attributes inherited from CDataCourse | |
| static constexpr double | UNDEFINED_BEARING = -999 |
| Specific value for an undefined bearing. More... | |
| static constexpr double | UNDEFINED_SPEED = -9999999 |
| Specific value for an undefined speed. More... | |
| static const CDataCourse | UNDEFINED |
| Specific value for an undefined course. More... | |
Static Public Attributes inherited from CDeviceDataDop | |
| static const double | UNDEFINED_VALUE = -9999999 |
| Specific value for an undefined component. More... | |
| static const CDeviceDataDop | UNDEFINED |
| Specific value for undefined DOP data. More... | |
Protected Member Functions inherited from CDeviceDataSource | |
| CDeviceDataSource (const QString &_rqsName) | |
| virtual | ~CDeviceDataSource () |
Fix data [source,time,position,course,DOPs,...].
This class gathers all components of a fully-qualified geographical position and course fix, along values that allow to estimate the quality of that fix.
Definition at line 38 of file CDeviceDataFix.hpp.
Fix type (2D, 3D, no fix)
| Enumerator | |
|---|---|
| FIX_NONE | |
| FIX_2D | |
| FIX_3D | |
| FIX_DGPS | |
| FIX_UNDEFINED | |
Definition at line 47 of file CDeviceDataFix.hpp.
| CDeviceDataFix::CDeviceDataFix | ( | const QString & | _rqsSourceName, |
| int | _eType = FIX_UNDEFINED, |
||
| double | _fdTime = CDataValidity::UNDEFINED_VALUE |
||
| ) |
Definition at line 48 of file CDeviceDataFix.cpp.
|
inlinevirtual |
Definition at line 105 of file CDeviceDataFix.hpp.
|
static |
Definition at line 30 of file CDeviceDataFix.cpp.
| void CDeviceDataFix::setFix | ( | const CDeviceDataFix & | _roDeviceDataFix, |
| bool | _bCopyTime = true, |
||
| bool | _bCopyPosition = true, |
||
| bool | _bCopyCourse = true, |
||
| bool | _bCopyDop = true |
||
| ) |
Sets (copy) the fix data from another instance.
Definition at line 72 of file CDeviceDataFix.cpp.
|
inline |
Sets the fix type.
Definition at line 117 of file CDeviceDataFix.hpp.
|
inline |
Sets the sources count (most likely satellites)
Definition at line 119 of file CDeviceDataFix.hpp.
|
inline |
Sets the time error, in seconds.
Definition at line 122 of file CDeviceDataFix.hpp.
|
inline |
Sets the (horizontal and vertical) position error, in meters.
Definition at line 124 of file CDeviceDataFix.hpp.
|
inline |
Sets the bearing error, in degrees.
Definition at line 127 of file CDeviceDataFix.hpp.
|
inline |
Sets the (horizontal and vertical) speed error, in meters per second.
Definition at line 129 of file CDeviceDataFix.hpp.
|
inline |
Sets the additional textual data string.
Definition at line 132 of file CDeviceDataFix.hpp.
|
inline |
Sets whether to use position to compute course.
Definition at line 134 of file CDeviceDataFix.hpp.
|
inline |
Returns the fix type.
Definition at line 139 of file CDeviceDataFix.hpp.
| QString CDeviceDataFix::getTypeString | ( | ) | const |
Returns the fix type as a human-friendly string.
Definition at line 91 of file CDeviceDataFix.cpp.
|
inline |
Returns the seen sources count (most likely satellites)
Definition at line 143 of file CDeviceDataFix.hpp.
|
inline |
Returns the used sources count (most likely satellites)
Definition at line 145 of file CDeviceDataFix.hpp.
|
inline |
Returns the time error, in seconds.
Definition at line 147 of file CDeviceDataFix.hpp.
|
inline |
Returns the horizontal position error, in meters.
Definition at line 149 of file CDeviceDataFix.hpp.
|
inline |
Returns the vertical position error, in meters.
Definition at line 151 of file CDeviceDataFix.hpp.
|
inline |
Returns the bearing error, in degrees.
Definition at line 153 of file CDeviceDataFix.hpp.
|
inline |
Returns the horizontal speed error, in meters per second.
Definition at line 155 of file CDeviceDataFix.hpp.
|
inline |
Returns the vertical speed error, in meters per second.
Definition at line 157 of file CDeviceDataFix.hpp.
|
inline |
Returns the additional textual data string.
Definition at line 159 of file CDeviceDataFix.hpp.
|
inline |
Returns whether position is used to compute course.
Definition at line 161 of file CDeviceDataFix.hpp.
|
private |
|
private |
Seen sources count (most likely satellites)
Definition at line 69 of file CDeviceDataFix.hpp.
|
private |
Used sources count (most likely satellites)
Definition at line 72 of file CDeviceDataFix.hpp.
|
private |
Time error, in seconds.
Definition at line 75 of file CDeviceDataFix.hpp.
|
private |
Horizontal position error, in meters.
Definition at line 78 of file CDeviceDataFix.hpp.
|
private |
Vertical position error, in meters.
Definition at line 81 of file CDeviceDataFix.hpp.
|
private |
Bearing error, in degrees.
Definition at line 84 of file CDeviceDataFix.hpp.
|
private |
Horizontal speed error, in meters per second.
Definition at line 87 of file CDeviceDataFix.hpp.
|
private |
Vertical speed error, in meters per second.
Definition at line 90 of file CDeviceDataFix.hpp.
|
private |
Additional textual data string.
Definition at line 93 of file CDeviceDataFix.hpp.
|
private |
Use position to compute course.
Definition at line 96 of file CDeviceDataFix.hpp.