Logo Search packages:      
Sourcecode: navit version File versions

route.h File Reference


Detailed Description

Contains exported code for route.c.

Navit, a modular navigation system. Copyright (C) 2005-2008 Navit Team

This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

This file contains code that works together with route.c and that is exported to other modules.

Definition in file route.h.

Go to the source code of this file.

Classes

struct  route_crossing
struct  route_crossings
struct  street_data
 Information about a street. More...

Enumerations

enum  route_status {
  route_status_no_destination = 0, route_status_not_found = 1|2, route_status_building_path = 1|4, route_status_building_graph = 1|4|8,
  route_status_path_done_new = 1|16, route_status_path_done_incremental = 1|32
}

Functions

int route_add_attr (struct route *this_, struct attr *attr)
int route_contains (struct route *this, struct item *item)
 Checks if the route passed contains a certain item within the route path.
int route_destination_reached (struct route *this)
 Checks if a route has reached its destination.
void route_draw (struct route *this, struct transformation *t, struct displaylist *dsp)
int route_get_attr (struct route *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)
struct coord route_get_coord_dist (struct route *this_, int dist)
 Returns a coordinate at a given distance.
struct route_inforoute_get_dst (struct route *this)
 Returns the destination of the route passed.
struct maproute_get_graph_map (struct route *route)
 Returns a new map containing the route graph.
struct maproute_get_map (struct route *route)
 Returns a new map containing the route path.
struct mapsetroute_get_mapset (struct route *this)
 Returns the mapset of the route passed.
int route_get_path_set (struct route *this)
 Checks if the path is calculated for the route passed.
struct route_inforoute_get_pos (struct route *this)
 Returns the current position within the route passed.
int * route_get_speedlist (struct route *this)
void route_info_close (struct route_info_handle *h)
void route_info_free (struct route_info *inf)
 Destroys a route_info.
struct coordroute_info_get (struct route_info_handle *h)
int route_info_length (struct route_info *pos, struct route_info *dst, int dir)
struct route_info_handle * route_info_open (struct route_info *start, struct route_info *end, int dir)
struct coordroute_info_point (struct route_info *rinf, int point)
struct street_dataroute_info_street (struct route_info *rinf)
 Returns street data for a route info.
void route_init (void)
struct routeroute_new (struct attr *parent, struct attr **attrs)
 Creates a completely new route structure.
void route_path_close (struct route_path_handle *h)
void route_path_coord_close (struct route_path_coord_handle *h)
struct coordroute_path_coord_get (struct route_path_coord_handle *h)
struct route_path_coord_handle * route_path_coord_open (struct route *this)
struct route_path_segmentroute_path_get_segment (struct route_path_handle *h)
struct route_path_handle * route_path_open (struct route *this)
struct coordroute_path_segment_get_end (struct route_path_segment *s)
struct item * route_path_segment_get_item (struct route_path_segment *s)
int route_path_segment_get_length (struct route_path_segment *s)
struct coordroute_path_segment_get_start (struct route_path_segment *s)
int route_path_segment_get_time (struct route_path_segment *s)
int route_pos_contains (struct route *this, struct item *item)
struct map_selectionroute_rect (int order, struct coord *c1, struct coord *c2, int rel, int abs)
 Returns a single map selection.
int route_remove_attr (struct route *this_, struct attr *attr)
int route_set_attr (struct route *this_, struct attr *attr)
void route_set_destination (struct route *this, struct pcoord *dst, int async)
 Sets the destination of a route.
void route_set_mapset (struct route *this, struct mapset *ms)
 Sets the mapset of the route passwd.
void route_set_position (struct route *this, struct pcoord *pos)
 This sets the current position of the route passed.
void route_set_position_from_tracking (struct route *this, struct tracking *tracking, enum projection pro)
 Sets a route's current position based on coordinates from tracking.
void route_set_profile (struct route *this, struct vehicleprofile *prof)
 Sets the vehicle profile of a route.
void route_set_projection (struct route *this_, enum projection pro)
int route_set_speed (struct route *this, enum item_type type, int value)
int route_time (struct route_preferences *preferences, struct item *item, int len, int maxspeed)
struct street_datastreet_data_dup (struct street_data *orig)
 Copies street data.
void street_data_free (struct street_data *sd)
 Frees street data.
struct street_datastreet_get_data (struct item *item)
 Gets street data for an item.


Generated by  Doxygen 1.6.0   Back to index