Geovpf Reference Manual |
---|
GeovpfCanvasTheme — A widget that draws a single type of VPF themetatic data.
struct GeovpfCanvasThemePrivate; struct GeovpfCanvasTheme; struct GeovpfCanvasThemeClass;
GObject +----GtkObject +----FooCanvasItem +----FooCanvasGroup +----GeovpfCanvasTheme
"add-attribute" gchararray : Write "anchor" GtkAnchorType : Read / Write "coverage" gchararray : Read / Write "expression" gchararray : Read / Write "feature-class" gchararray : Read / Write "fill-color-rgba" guint : Read / Write "fill-stipple" GdkDrawable : Read / Write "label-attribute" gchararray : Read / Write "library-path" gchararray : Read / Write "line-style" GdkLineStyle : Read / Write "line-width-pixels" guint : Read / Write "pixbuf" GdkPixbuf : Read / Write "pixbuf-height" gdouble : Read / Write "pixbuf-width" gdouble : Read / Write "text" gchararray : Read / Write "text-size-points" gdouble : Read / Write
"add-member" void user_function (GeovpfCanvasTheme *geovpfcanvastheme, FooCanvasItem *arg1, gpointer user_data); "begin-group" void user_function (GeovpfCanvasTheme *geovpfcanvastheme, FooCanvasItem *arg1, gpointer user_data);
The GeovpfCanvasTheme widget draws a single type of VPF thematic data to the canvas based on it properties specification. This is the lowest level building block for plotting VPF to the GeoCanvas and is the only one required for basic VPF displays. The feature-class, coverage, and database expression properties are used together to describe the theme.
This example creates a simple theme.
/* The GeovpfCanvasTheme is used to display all feature types - edge, face, * entity_node, connected_node, and text. * * library_path: location of the library. Use of directory path can be avoided * by using the GeovpfDatabaseLookup object. * * coverage: a set of topologically related feature classes. Earth coverage in * in this case. * * feature_class: features that share a homogenous set of attributes. Earth * coverage areas in this case. * * expression: thematic information (a limited database query). * This example queries for land and island coverage. */ foo_canvas_item_new(group, GEOVPF_TYPE_CANVAS_THEME, "library_path", "/home/username/dnc/dnc17/a1707420", "coverage", "ecr", "feature_class", "ecrarea", "expression", "F_CODE=BA030 or F_CODE=DA010", "fill_color_rgba", 0xBDAF1Bff, NULL);
The VPF database structure looks something like this:
Database (e.g. DNC17) - Library (e.g. a1707420 approach chart) - coverage (e.g. ecr) - feature class (e.g. ecrarea) -expression (e.g. F_CODE, etc.)
To discover how to properly set up the coverage, feature class, and expression properties of the theme, there is a program included in the geovpf directory of this package called geovpfprint. Use the -h option to see the usage. This program can provide a detailed list of what is available in the for the VPF databases being used.
void user_function (GeovpfCanvasTheme *geovpfcanvastheme, FooCanvasItem *arg1, gpointer user_data);
This signal is emitted each time a new canvas item is created as part of the theme. It can be used to add additional properties that are specific on a per item basis. An example use of this signal might be to make each face (polygon) within a theme a different color.
geovpfcanvastheme : | the object which emitted the signal. |
arg1 : | The canvas item that was just created. |
user_data : | user data set when the signal handler was connected. |
void user_function (GeovpfCanvasTheme *geovpfcanvastheme, FooCanvasItem *arg1, gpointer user_data);
All thematic data is drawn by a GeoCanvasGroup widget. This signal is emitted each time a group is created. The group member of the theme may be destroyed and re-instantiated if certain properties of the theme are changed. This signal can be used to modify properties of the GeoCanvasGroup member.
geovpfcanvastheme : | the object which emitted the signal. |
arg1 : | The GeoCanvasGroup that was just created. |
user_data : | user data set when the signal handler was connected. |
<< Geovpf API reference | GeovpfDatabaseLookup >> |