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 (const guint8 *data_in,
                         guint datalen);

Types and Values

struct VikWaypoint

struct VikWaypoint {
  VikCoord coord;
  gboolean visible;
  gdouble timestamp;         /* NAN if data unavailable */
  gdouble altitude;
  gdouble course;            /* NAN if data unavailable */
  gdouble speed;             /* NAN if data unavailable */
  gdouble magvar;            /* NAN if data unavailable */
  gdouble geoidheight;       /* NAN if data unavailable */
  gboolean hide_name;
  gchar *name;
  gchar *comment;
  gchar *description;
  gchar *source;
  gchar *url;
  gchar *url_name;
  gchar *type;
  guint fix_mode;            /* VIK_GPS_MODE_NOT_SEEN if data unavailable */
  guint nsats;               /* number of satellites used. 0 if data unavailable */
  gdouble hdop;              /* NAN if data unavailable */
  gdouble vdop;              /* NAN if data unavailable */
  gdouble pdop;              /* NAN if data unavailable */
  gdouble ageofdgpsdata;     /* NAN if data unavailable */
  guint dgpsid;              /* 0 .. 1023 */
  gchar *image;
  // NB Only really applicable if geotagging(exif info) is being used
  gdouble image_direction;   /* NAN if data unavailable */
  VikWaypointImageDirectionRef image_direction_ref;
  /* 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;
  gchar *extensions;         // GPX 1.1
  // Only for GUI display
  GdkPixbuf *symbol_pixbuf;
};