]> git.street.me.uk Git - andy/viking.git/blobdiff - src/viktrack.h
Add ability to open a TrackWaypoint layer with another external program (default...
[andy/viking.git] / src / viktrack.h
index 44eb0012be005786aef32472587ea3cc0e29424d..9742a15ef46b85ee5ecd3b72aca2a43da49b0882 100644 (file)
@@ -90,20 +90,28 @@ void vik_track_get_total_elevation_gain(const VikTrack *tr, gdouble *up, gdouble
 VikTrackpoint *vik_track_get_closest_tp_by_percentage_dist ( VikTrack *tr, gdouble reldist, gdouble *meters_from_start );
 VikTrackpoint *vik_track_get_closest_tp_by_percentage_time ( VikTrack *tr, gdouble reldist, time_t *seconds_from_start );
 VikTrackpoint *vik_track_get_tp_by_max_speed ( const VikTrack *tr );
 VikTrackpoint *vik_track_get_closest_tp_by_percentage_dist ( VikTrack *tr, gdouble reldist, gdouble *meters_from_start );
 VikTrackpoint *vik_track_get_closest_tp_by_percentage_time ( VikTrack *tr, gdouble reldist, time_t *seconds_from_start );
 VikTrackpoint *vik_track_get_tp_by_max_speed ( const VikTrack *tr );
+VikTrackpoint *vik_track_get_tp_by_max_alt ( const VikTrack *tr );
+VikTrackpoint *vik_track_get_tp_by_min_alt ( const VikTrack *tr );
 gdouble *vik_track_make_speed_map ( const VikTrack *tr, guint16 num_chunks );
 gdouble *vik_track_make_speed_map ( const VikTrack *tr, guint16 num_chunks );
+gdouble *vik_track_make_distance_map ( const VikTrack *tr, guint16 num_chunks );
+gdouble *vik_track_make_elevation_time_map ( const VikTrack *tr, guint16 num_chunks );
+gdouble *vik_track_make_speed_dist_map ( const VikTrack *tr, guint16 num_chunks );
 gboolean vik_track_get_minmax_alt ( const VikTrack *tr, gdouble *min_alt, gdouble *max_alt );
 void vik_track_marshall ( VikTrack *tr, guint8 **data, guint *len);
 VikTrack *vik_track_unmarshall (guint8 *data, guint datalen);
 
 void vik_track_apply_dem_data ( VikTrack *tr);
 gboolean vik_track_get_minmax_alt ( const VikTrack *tr, gdouble *min_alt, gdouble *max_alt );
 void vik_track_marshall ( VikTrack *tr, guint8 **data, guint *len);
 VikTrack *vik_track_unmarshall (guint8 *data, guint datalen);
 
 void vik_track_apply_dem_data ( VikTrack *tr);
+/*
+ * Apply DEM data (if available) - to only the last trackpoint
+ */
+void vik_track_apply_dem_data_last_trackpoint ( VikTrack *tr );
 
 /* appends t2 to t1, leaving t2 with no trackpoints */
 void vik_track_steal_and_append_trackpoints ( VikTrack *t1, VikTrack *t2 );
 
 /* starting at the end, looks backwards for the last "double point", a duplicate trackpoint.
 
 /* appends t2 to t1, leaving t2 with no trackpoints */
 void vik_track_steal_and_append_trackpoints ( VikTrack *t1, VikTrack *t2 );
 
 /* starting at the end, looks backwards for the last "double point", a duplicate trackpoint.
- * this is indicative of magic scissors continued use. If there is no double point,
- * deletes all the trackpoints. returns new end of the track (or the start if
- * there are no double points)
+ * If there is no double point, deletes all the trackpoints.
+ * Returns the new end of the track (or the start if there are no double points
  */
 VikCoord *vik_track_cut_back_to_double_point ( VikTrack *tr );
 
  */
 VikCoord *vik_track_cut_back_to_double_point ( VikTrack *tr );