/[zanavi_public1]/navit/navit/vehicle.h
ZANavi

Contents of /navit/navit/vehicle.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 28 21:19:04 2011 UTC (12 years, 5 months ago) by zoff99
File MIME type: text/plain
File size: 2190 byte(s)
import files
1 /**
2 * Navit, a modular navigation system.
3 * Copyright (C) 2005-2009 Navit Team
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public License
7 * version 2 as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
20 #ifndef NAVIT_VEHICLE_H
21 #define NAVIT_VEHICLE_H
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 struct point;
28 struct vehicle_priv;
29
30 struct vehicle_methods {
31 void (*destroy)(struct vehicle_priv *priv);
32 int (*position_attr_get)(struct vehicle_priv *priv, enum attr_type type, struct attr *attr);
33 int (*set_attr)(struct vehicle_priv *priv, struct attr *attr);
34 };
35
36 /* prototypes */
37 enum attr_type;
38 struct attr;
39 struct attr_iter;
40 struct cursor;
41 struct graphics;
42 struct point;
43 struct vehicle;
44 struct vehicle *vehicle_new(struct attr *parent, struct attr **attrs);
45 void vehicle_destroy(struct vehicle *this_);
46 struct attr_iter *vehicle_attr_iter_new(void);
47 void vehicle_attr_iter_destroy(struct attr_iter *iter);
48 int vehicle_get_attr(struct vehicle *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
49 int vehicle_set_attr(struct vehicle *this_, struct attr *attr);
50 int vehicle_add_attr(struct vehicle *this_, struct attr *attr);
51 int vehicle_remove_attr(struct vehicle *this_, struct attr *attr);
52 void vehicle_set_cursor(struct vehicle *this_, struct cursor *cursor, int overwrite);
53 void vehicle_draw(struct vehicle *this_, struct graphics *gra, struct point *pnt, int lazy, int angle, int speed);
54 int vehicle_get_cursor_data(struct vehicle *this_, struct point *pnt, int *angle, int *speed);
55 void vehicle_log_gpx_add_tag(char *tag, char **logstr);
56 /* end of prototypes */
57
58 #ifdef __cplusplus
59 }
60 #endif
61
62 #endif
63

   
Visit the ZANavi Wiki