X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2Fgis-view.h;fp=src%2Fgis-view.h;h=0000000000000000000000000000000000000000;hb=ca898105ec4018b54ac2f6f1327200624169103e;hp=4608788d5c10672c80fdaab6a9226bc1a6ab7d82;hpb=f705ad00b5d94f8ddc59575737b79feed191b404;p=grits diff --git a/src/gis-view.h b/src/gis-view.h deleted file mode 100644 index 4608788..0000000 --- a/src/gis-view.h +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2009 Andy Spencer - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#ifndef __GIS_VIEW_H__ -#define __GIS_VIEW_H__ - -#include - -/* Type macros */ -#define GIS_TYPE_VIEW (gis_view_get_type()) -#define GIS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GIS_TYPE_VIEW, GisView)) -#define GIS_IS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GIS_TYPE_VIEW)) -#define GIS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIS_TYPE_VIEW, GisViewClass)) -#define GIS_IS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIS_TYPE_VIEW)) -#define GIS_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIS_TYPE_VIEW, GisViewClass)) - -typedef struct _GisView GisView; -typedef struct _GisViewClass GisViewClass; - -struct _GisView { - GObject parent_instance; - - /* instance members */ - gchar *time; - gchar *site; - gdouble location[3]; - gdouble rotation[3]; -}; - -struct _GisViewClass { - GObjectClass parent_class; - - /* class members */ -}; - -GType gis_view_get_type(void); - -/* Methods */ -GisView *gis_view_new(); - -void gis_view_set_time(GisView *view, const gchar *time); -gchar *gis_view_get_time(GisView *view); - -void gis_view_set_location(GisView *view, gdouble x, gdouble y, gdouble z); -void gis_view_get_location(GisView *view, gdouble *x, gdouble *y, gdouble *z); -void gis_view_pan (GisView *view, gdouble x, gdouble y, gdouble z); -void gis_view_zoom (GisView *view, gdouble scale); - -void gis_view_set_rotation(GisView *view, gdouble x, gdouble y, gdouble z); -void gis_view_get_rotation(GisView *view, gdouble *x, gdouble *y, gdouble *z); -void gis_view_rotate (GisView *view, gdouble x, gdouble y, gdouble z); - -/* To be deprecated, use {get,set}_location */ -void gis_view_set_site(GisView *view, const gchar *site); -gchar *gis_view_get_site(GisView *view); - -#endif