Represents a single point in a track.
More...
#include <track.h>
Represents a single point in a track.
Definition at line 53 of file track.h.
◆ TrackPoint() [1/3]
TrackPoint::TrackPoint |
( |
double |
lat, |
|
|
double |
lon, |
|
|
wxString |
ts = "" |
|
) |
| |
◆ TrackPoint() [2/3]
TrackPoint::TrackPoint |
( |
double |
lat, |
|
|
double |
lon, |
|
|
wxDateTime |
dt |
|
) |
| |
◆ TrackPoint() [3/3]
◆ ~TrackPoint()
TrackPoint::~TrackPoint |
( |
| ) |
|
◆ GetCreateTime()
wxDateTime TrackPoint::GetCreateTime |
( |
void |
| ) |
|
Retrieves the creation timestamp of a track point as a wxDateTime object.
- Returns
- wxDateTime object representing the creation time in UTC. If the internal timestamp string is invalid or empty, the returned wxDateTime may be invalid.
Definition at line 139 of file track.cpp.
◆ GetTimeString()
const char * TrackPoint::GetTimeString |
( |
| ) |
|
|
inline |
◆ HasValidTimestamp()
bool TrackPoint::HasValidTimestamp |
( |
| ) |
|
|
inline |
◆ SetCreateTime()
void TrackPoint::SetCreateTime |
( |
wxDateTime |
dt | ) |
|
Sets the creation timestamp for a track point.
- Parameters
-
dt | The wxDateTime object containing the timestamp to set. Should be in UTC time already, as no time zone conversion is performed. The time is directly formatted and marked with 'Z' (UTC indicator). If the provided datetime is invalid, an empty string will be stored. |
Format: YYYY-MM-DDThh:mm:ssZ Example: 2023-04-15T14:22:38Z
Definition at line 145 of file track.cpp.
◆ m_GPXTrkSegNo
int TrackPoint::m_GPXTrkSegNo |
◆ m_lat
◆ m_lon
The documentation for this class was generated from the following files:
- /home/runner/work/main/main/opencpn/model/include/model/track.h
- /home/runner/work/main/main/opencpn/model/src/track.cpp