2 * Copyright (C) 2009-2010 Andy Spencer <andy753421@gmail.com>
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/>.
20 * @short_description: Base classes for drawing operations
22 * Objects in libgis are things which can be added to the viewer and will be
23 * displayed to the user. Each object has information such as it's location and
24 * level of detail which are used by the viewer to determine which objects
27 * Each #GisObject is also a #GObject, but not every GObject in libgis is a
28 * GisObject. The "Object" part of the name is just coincidence.
32 #include "gis-object.h"
40 * Create a new #GisPoint
42 * Returns: the new point
44 GisPoint *gis_point_new()
46 return g_new0(GisPoint, 1);
51 * @point: the point to modify
52 * @lat: the new latitude
53 * @lon: the new longitude
54 * @elev: the new elevation
56 * Set the latitude, longitude, and elevation for a point.
58 void gis_point_set_lle(GisPoint *point, gdouble lat, gdouble lon, gdouble elev)
67 * @point: The point to free
69 * Free data used by a #GisPoint
71 void gis_point_free(GisPoint *point)
81 G_DEFINE_ABSTRACT_TYPE(GisObject, gis_object, G_TYPE_OBJECT);
82 static void gis_object_init(GisObject *object)
86 static void gis_object_class_init(GisObjectClass *klass)