vikwaypoint

vikwaypoint

Functions

Types and Values

struct VikWaypoint

Description

Functions

VIK_WAYPOINT()

#define VIK_WAYPOINT(x) ((VikWaypoint *)(x))

vik_waypoint_new ()

VikWaypoint *
vik_waypoint_new ();

vik_waypoint_set_name ()

void
vik_waypoint_set_name (VikWaypoint *wp,
                       const gchar *name);

vik_waypoint_set_comment ()

void
vik_waypoint_set_comment (VikWaypoint *wp,
                          const gchar *comment);

vik_waypoint_set_description ()

void
vik_waypoint_set_description (VikWaypoint *wp,
                              const gchar *description);

vik_waypoint_set_url ()

void
vik_waypoint_set_url (VikWaypoint *wp,
                      const gchar *url);

vik_waypoint_set_image ()

void
vik_waypoint_set_image (VikWaypoint *wp,
                        const gchar *image);

vik_waypoint_set_symbol ()

void
vik_waypoint_set_symbol (VikWaypoint *wp,
                         const gchar *symname);

vik_waypoint_free ()

void
vik_waypoint_free (VikWaypoint *wp);

vik_waypoint_copy ()

VikWaypoint *
vik_waypoint_copy (const VikWaypoint *wp);

vik_waypoint_set_comment_no_copy ()

void
vik_waypoint_set_comment_no_copy (VikWaypoint *wp,
                                  gchar *comment);

vik_waypoint_apply_dem_data ()

gboolean
vik_waypoint_apply_dem_data (VikWaypoint *wp,
                             gboolean skip_existing);

Set elevation data for a waypoint using available DEM information

Parameters

wp

The Waypoint to operate on

 

skip_existing

When TRUE, don't change the elevation if the waypoint already has a value

 

Returns

TRUE if the waypoint was updated


vik_waypoint_marshall ()

void
vik_waypoint_marshall (VikWaypoint *wp,
                       guint8 **data,
                       guint *len);

vik_waypoint_unmarshall ()

VikWaypoint *
vik_waypoint_unmarshall (guint8 *data,
                         guint datalen);

Types and Values

struct VikWaypoint

struct VikWaypoint {
  VikCoord coord;
  gboolean visible;
  gboolean has_timestamp;
  time_t timestamp;
  gdouble altitude;
  gchar *name;
  gchar *comment;
  gchar *description;
  gchar *url;
  gchar *image;
  /* a rather misleading, ugly hack needed for trwlayer's click image.
   * these are the height at which the thumbnail is being drawn, not the 
   * dimensions of the original image. */
  guint8 image_width;
  guint8 image_height;
  gchar *symbol;
  // Only for GUI display
  GdkPixbuf *symbol_pixbuf;
};