OpenCPN Partial API docs
Loading...
Searching...
No Matches
TrackPoint Class Reference

Represents a single point in a track. More...

#include <track.h>

Public Member Functions

 TrackPoint (double lat, double lon, wxString ts="")
 
 TrackPoint (double lat, double lon, wxDateTime dt)
 
 TrackPoint (TrackPoint *orig)
 
wxDateTime GetCreateTime (void)
 
void SetCreateTime (wxDateTime dt)
 
const char * GetTimeString ()
 
bool HasValidTimestamp ()
 

Public Attributes

double m_lat
 
double m_lon
 
int m_GPXTrkSegNo
 

Detailed Description

Represents a single point in a track.

Definition at line 53 of file track.h.

Constructor & Destructor Documentation

◆ TrackPoint() [1/3]

TrackPoint::TrackPoint ( double  lat,
double  lon,
wxString  ts = "" 
)

Definition at line 121 of file track.cpp.

◆ TrackPoint() [2/3]

TrackPoint::TrackPoint ( double  lat,
double  lon,
wxDateTime  dt 
)

Definition at line 126 of file track.cpp.

◆ TrackPoint() [3/3]

TrackPoint::TrackPoint ( TrackPoint orig)

Definition at line 132 of file track.cpp.

◆ ~TrackPoint()

TrackPoint::~TrackPoint ( )

Definition at line 137 of file track.cpp.

Member Function Documentation

◆ GetCreateTime()

wxDateTime TrackPoint::GetCreateTime ( void  )

Definition at line 139 of file track.cpp.

◆ GetTimeString()

const char * TrackPoint::GetTimeString ( )
inline

Definition at line 62 of file track.h.

◆ HasValidTimestamp()

bool TrackPoint::HasValidTimestamp ( )
inline

Definition at line 63 of file track.h.

◆ SetCreateTime()

void TrackPoint::SetCreateTime ( wxDateTime  dt)

Definition at line 145 of file track.cpp.

Member Data Documentation

◆ m_GPXTrkSegNo

int TrackPoint::m_GPXTrkSegNo

Definition at line 69 of file track.h.

◆ m_lat

double TrackPoint::m_lat

Definition at line 68 of file track.h.

◆ m_lon

double TrackPoint::m_lon

Definition at line 68 of file track.h.


The documentation for this class was generated from the following files: