25#ifndef _ROUTE_CTX_FACTORY_H__
26#define _ROUTE_CTX_FACTORY_H__
30#include "model/nav_object_database.h"
40 ctx.find_route_by_guid = [](wxString guid) {
41 if (!g_pRouteMan)
return static_cast<Route*
>(0);
44 ctx.find_track_by_guid = [](wxString guid) {
45 if (!g_pRouteMan)
return static_cast<Track*
>(0);
48 ctx.find_wpt_by_guid = [](wxString guid) {
49 if (!pWayPointMan)
return static_cast<RoutePoint*
>(0);
50 return pWayPointMan->FindWaypointByGuid(guid.ToStdString());
52 ctx.delete_route = [](
Route* route) {
53 if (!g_pRouteMan)
return;
56 ctx.delete_track = [](
Track* track) {
64 if (!pWayPointMan)
return;
65 pWayPointMan->DestroyWaypoint(wpt);
Callbacks for handling routes and tracks.
Represents a waypoint or mark within the navigation system.
Represents a navigational route in the navigation system.
bool DeleteRoute(Route *pRoute)
Represents a track, which is a series of connected track points.
Routeman * g_pRouteMan
Global instance.
std::vector< Track * > g_TrackList
Global instance.
Recorded track abstraction.