2 * Copyright (C) 2009 Andy Spencer <spenceal@rose-hulman.edu>
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
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 General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef __GIS_VIEWER_H__
19 #define __GIS_VIEWER_H__
21 #include <glib-object.h>
24 #define GIS_TYPE_VIEWER (gis_viewer_get_type())
25 #define GIS_VIEWER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GIS_TYPE_VIEWER, GisViewer))
26 #define GIS_IS_VIEWER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GIS_TYPE_VIEWER))
27 #define GIS_VIEWER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIS_TYPE_VIEWER, GisViewerClass))
28 #define GIS_IS_VIEWER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIS_TYPE_VIEWER))
29 #define GIS_VIEWER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIS_TYPE_VIEWER, GisViewerClass))
31 typedef struct _GisViewer GisViewer;
32 typedef struct _GisViewerClass GisViewerClass;
35 GObject parent_instance;
37 /* instance members */
45 struct _GisViewerClass {
46 GObjectClass parent_class;
51 GType gis_viewer_get_type(void);
54 GisViewer *gis_viewer_new();
56 void gis_viewer_set_time(GisViewer *viewer, const gchar *time);
57 gchar *gis_viewer_get_time(GisViewer *viewer);
59 void gis_viewer_set_location(GisViewer *viewer, gdouble lat, gdouble lon, gdouble elev);
60 void gis_viewer_get_location(GisViewer *viewer, gdouble *lat, gdouble *lon, gdouble *elev);
61 void gis_viewer_pan (GisViewer *viewer, gdouble lat, gdouble lon, gdouble elev);
62 void gis_viewer_zoom (GisViewer *viewer, gdouble scale);
64 void gis_viewer_set_rotation(GisViewer *viewer, gdouble x, gdouble y, gdouble z);
65 void gis_viewer_get_rotation(GisViewer *viewer, gdouble *x, gdouble *y, gdouble *z);
66 void gis_viewer_rotate (GisViewer *viewer, gdouble x, gdouble y, gdouble z);
68 /* To be deprecated, use {get,set}_location */
69 void gis_viewer_set_site(GisViewer *viewer, const gchar *site);
70 gchar *gis_viewer_get_site(GisViewer *viewer);
72 void gis_viewer_refresh(GisViewer *viewer);
74 void gis_viewer_set_offline(GisViewer *viewer, gboolean offline);
75 gboolean gis_viewer_get_offline(GisViewer *viewer);