GeoCanvasGrids

GeoCanvasGrids — a graticule for the geo canvas.

Synopsis




            GeoCanvasGrids;
            GeoCanvasGridsClass;
            GeoCanvasGridsPrivate;
void        geo_canvas_grids_connect_auto_to_fixed
                                            (GeoCanvasGrids *autogrid,
                                             GeoCanvasGrids *fixed);

Object Hierarchy


  GObject
   +----GtkObject
         +----FooCanvasItem
               +----FooCanvasGroup
                     +----GeoCanvasGroup
                           +----GeoCanvasLines
                                 +----GeoCanvasGrids

Properties


  "auto"                 gboolean              : Read / Write
  "autoavail"            gboolean              : Read
  "label-fill-color"     gchararray            : Read / Write
  "label-fill-color-gdk" GdkColor              : Write
  "label-fill-color-rgba" guint                 : Read / Write
  "label-size-points"    gdouble               : Read / Write
  "spacing"              gdouble               : Read / Write

Description

The GeoCanvasGrids canvas group provides a graticule or set of gridlines that is sometimes more useful than the cursor when trying to associate objects on the map to geographic coordinates. It operates in one of two modes. In 'automatic' mode it figures out how to best label the map and does the right thing. In 'fixed' mode it draws a fixed spaced set of grids regardless of the zoom scale or projection setting of the map.

Automatic mode only works on some cylindrical projections and only gets activated when the map is zoomed in. At the moment it is best to chain the automatic and fixed mode grids together.

Details

GeoCanvasGrids

typedef struct _GeoCanvasGrids GeoCanvasGrids;


GeoCanvasGridsClass

typedef struct {
        GeoCanvasLinesClass parent_class;
        /* Signals go here */
} GeoCanvasGridsClass;


GeoCanvasGridsPrivate

typedef struct _GeoCanvasGridsPrivate GeoCanvasGridsPrivate;

The GeoCanvasGridsPrivate-struct contains private data only and should be accessed via the properties interface of this object.


geo_canvas_grids_connect_auto_to_fixed ()

void        geo_canvas_grids_connect_auto_to_fixed
                                            (GeoCanvasGrids *autogrid,
                                             GeoCanvasGrids *fixed);

A convenience routine that connects the "autoavail" property from the auto grid to the hide and show routines in the fixed canvas item. i.e., When the auto grid has a grid available, the fixed grid is hidden. When the auto grid does not have a grid available the fixed grid is shown.

autogrid : A Grid with auto property aet to TRUE.
fixed : A Grid with auto property set to FALSE.

Properties

The "auto" property

  "auto"                 gboolean              : Read / Write

Whether to fix grid size or auto.

Default value: FALSE


The "autoavail" property

  "autoavail"            gboolean              : Read

True if auto grids could be made for vp.

Default value: FALSE


The "label-fill-color" property

  "label-fill-color"     gchararray            : Read / Write

Text color, as string.

Default value: NULL


The "label-fill-color-gdk" property

  "label-fill-color-gdk" GdkColor              : Write

Text color, as a GdkColor.


The "label-fill-color-rgba" property

  "label-fill-color-rgba" guint                 : Read / Write

Text color, as an R/G/B/A combined integer.

Default value: 0


The "label-size-points" property

  "label-size-points"    gdouble               : Read / Write

Font size in points.

Allowed values: >= 0

Default value: 0


The "spacing" property

  "spacing"              gdouble               : Read / Write

How far apart to draw fixed grids.

Allowed values: [1,30]

Default value: 15