+void _load_marker(GritsPluginTest *test)
+{
+ test->marker = grits_marker_new("St. Charles");
+ GRITS_OBJECT(test->marker)->center.lat = 38.841847;
+ GRITS_OBJECT(test->marker)->center.lon = -90.491982;
+ GRITS_OBJECT(test->marker)->center.elev = 0.0;
+ GRITS_OBJECT(test->marker)->lod = EARTH_R*3;
+ grits_object_set_cursor(GRITS_OBJECT(test->marker), GDK_HAND2);
+ grits_viewer_add(test->viewer, GRITS_OBJECT(test->marker), GRITS_LEVEL_HUD, FALSE);
+ g_signal_connect(test->marker, "clicked", G_CALLBACK(on_marker_button), test->viewer);
+}
+
+void _load_poly(GritsPluginTest *test)
+{
+ test->poly = grits_poly_parse("35,-90 35,-110 45,-110 45,-90", "\t", " ", ",");
+ test->poly->color[0] = test->poly->border[0] = 1;
+ test->poly->color[1] = test->poly->border[1] = 0;
+ test->poly->color[2] = test->poly->border[2] = 0;
+ test->poly->color[3] = 0.2;
+ test->poly->border[3] = 1;
+ test->poly->width = 6;
+ grits_viewer_add(test->viewer, GRITS_OBJECT(test->poly), GRITS_LEVEL_OVERLAY, FALSE);
+ g_signal_connect(test->poly, "enter", G_CALLBACK(on_poly_enter), NULL);
+ g_signal_connect(test->poly, "leave", G_CALLBACK(on_poly_leave), NULL);
+ g_signal_connect(test->poly, "clicked", G_CALLBACK(on_poly_button), NULL);
+ g_signal_connect(test->poly, "key-press", G_CALLBACK(on_poly_key), NULL);
+}
+
+void _load_line(GritsPluginTest *test)
+{
+ test->line = grits_line_parse("30,-80 30,-120 50,-120 50,-80", "\t", " ", ",");
+ test->line->color[0] = 1;
+ test->line->color[1] = 0;
+ test->line->color[2] = 0;
+ test->line->color[3] = 1;
+ test->line->width = 8;
+ grits_viewer_add(test->viewer, GRITS_OBJECT(test->line), GRITS_LEVEL_OVERLAY, FALSE);
+ g_signal_connect(test->line, "enter", G_CALLBACK(on_poly_enter), NULL);
+ g_signal_connect(test->line, "leave", G_CALLBACK(on_poly_leave), NULL);
+ g_signal_connect(test->line, "button-press", G_CALLBACK(on_poly_button), NULL);
+ g_signal_connect(test->line, "key-press", G_CALLBACK(on_poly_key), NULL);
+}
+