]> git.street.me.uk Git - andy/viking.git/blob - src/vik-map-type.gob
Insert a level of abstraction in map type hierarchie
[andy/viking.git] / src / vik-map-type.gob
1 %headertop{
2 #ifdef HAVE_CONFIG_H
3 #include "config.h"
4 #endif
5
6 #include "vikviewport.h"
7 #include "vikcoord.h"
8 #include "mapcoord.h"
9 %}
10
11 class Vik:Map:Type from G:Object(abstract) {
12   virtual public guint8
13   get_uniq_id ( self );
14
15   virtual public guint16
16   get_tilesize_x ( self );
17
18   virtual public guint16
19   get_tilesize_y ( self );
20
21   virtual public VikViewportDrawMode
22   get_drawmode ( self );
23
24   virtual public gboolean
25   coord_to_mapcoord ( self, const VikCoord *src, gdouble xzoom, gdouble yzoom, MapCoord *dest )
26   {
27     return FALSE;
28   }
29
30   virtual public void
31   mapcoord_to_center_coord ( self, MapCoord *src, VikCoord *dest )
32   { }
33
34   virtual public int
35   download ( self, MapCoord *src, const gchar *dest_fn )
36   {
37     return 0;
38   }
39
40 }
41