| Top |
| gboolean | vik_routing_default_find () |
| void | vik_routing_prefs_init () |
| void | vik_routing_register () |
| void | vik_routing_unregister_all () |
| void | vik_routing_foreach_engine () |
| gboolean | (*Predicate) () |
| GtkWidget * | vik_routing_ui_selector_new () |
| VikRoutingEngine * | vik_routing_ui_selector_get_nth () |
| VikRoutingEngine * | vik_routing_default_engine () |
This module handles the list of VikRoutingEngine. It also handles the "default" functions.
gboolean vik_routing_default_find (VikTrwLayer *vt,struct LatLon start,struct LatLon end);
Route computation with default engine.
Return indicates success or not
void
vik_routing_prefs_init ();
Initialize the preferences of the routing feature.
void
vik_routing_register (VikRoutingEngine *engine);
Register a new routing engine.
void
vik_routing_unregister_all ();
Unregister all registered routing engines.
void vik_routing_foreach_engine (GFunc func,gpointer user_data);
Loop over all registered routing engines.
GtkWidget * vik_routing_ui_selector_new (Predicate func,gpointer user_data);
Creates a combo box to allow selection of a routing engine.
We use GObject data hastable to store and retrieve the VikRoutingEngine associated to the selection.
VikRoutingEngine * vik_routing_ui_selector_get_nth (GtkWidget *combo,int pos);
Retrieve the VikRoutingEngine stored in a list attached to combo
via the "engines" property.
VikRoutingEngine *
vik_routing_default_engine (void);
Retrieve the default engine, based on user's preferences.