86 int GetnPoints(
void) {
return TrackPoints.size(); }
88 void SetVisible(
bool visible =
true) { m_bVisible = visible; }
93 TrackPoint *AddNewPoint(vector2D point, wxDateTime time);
95 void SetListed(
bool listed =
true) { m_bListed = listed; }
96 virtual bool IsRunning() {
return false; }
98 bool IsVisible() {
return m_bVisible; }
99 bool IsListed() {
return m_bListed; }
101 int GetCurrentTrackSeg() {
return m_CurrentTrackSeg; }
102 void SetCurrentTrackSeg(
int seg) { m_CurrentTrackSeg = seg; }
105 int Simplify(
double maxDelta);
106 Route *RouteFromTrack(wxGenericProgressDialog *pprog);
108 void ClearHighlights();
112 wxString GetName(
bool auto_if_empty =
false)
const {
113 if (!auto_if_empty || !m_TrackNameString.IsEmpty()) {
114 return m_TrackNameString;
116 return GetDateTime(_(
"(Unnamed Track)"));
119 void SetName(
const wxString name) { m_TrackNameString = name; }
123 wxString GetIsoDateTime(
124 const wxString label_for_invalid_date = _(
"(Unknown Date)"))
const;
128 wxString GetDateTime(
129 const wxString label_for_invalid_date = _(
"(Unknown Date)"))
const;
135 wxString m_TrackDescription;
137 wxString m_TrackStartString;
138 wxString m_TrackEndString;
148 int m_CurrentTrackSeg;
150 HyperlinkList *m_HyperlinkList;
151 int m_HighlightedTrackPoint;
153 void Clone(
Track *psourcetrack,
int start_nPoint,
int end_nPoint,
154 const wxString &suffix);
159 void DouglasPeuckerReducer(std::vector<TrackPoint *> &list,
160 std::vector<bool> &keeplist,
int from,
int to,
163 double GetXTE(
double fm1Lat,
double fm1Lon,
double fm2Lat,
double fm2Lon,
164 double toLat,
double toLon);
166 std::vector<TrackPoint *> TrackPoints;
167 std::vector<std::vector<SubTrack> > SubTracks;
174 double ComputeScale(
int left,
int right);
175 void InsertSubTracks(LLBBox &box,
int level,
int pos);
187 wxString m_TrackNameString;