![]() | ![]() | ![]() | Gwyddion Widgets Library Reference Manual | ![]() |
---|
Standard Vector Layers — Vector layers that are distributed with Gwyddion
Vector layers, implementing means how user can draw on data views, are
provided by
There are several standard layers distributed with Gwyddion, and their features and interface is the subject of this section. All layers are subclasses of GwyVectorLayer sharing its basic interface. Each layer lets the user draw or select different shapes, has its own format of selection data (that can be fetched with gwy_vector_layer_get_selection() and set with gwy_vector_layer_get_selection()), uses different container keys to store it, and may have some properties (set by g_object_set()) affecting its behaviour.
GObject* g_object_new(g_type_from_name("GwyLayerAxes"));
Allows to select one or more horizontal or vertical (full-width or full-height) lines, called axes. It can be also viewes as a way to select separate x or y coordinates.
Selection data consists of an array of y-coordinates for horizontal axes, or an array of x-coordinates for vertical axes. Each coordinate itself represents a selected axis.
"/0/select/axes/nselected" (gint : Read) | The number of currently selected axes. |
"/0/select/axes/0/x" (gdouble : Read) | The x-coordinate of first vertical axis. |
"/0/select/axes/1/x" (gdouble : Read) | The x-coordinate of second vertical axis. |
… | … |
"/0/select/axes/0/y" (gdouble : Read) | The x-coordinate of first horizontal axis. |
"/0/select/axes/1/y" (gdouble : Read) | The x-coordinate of second horizontal axis. |
… | … |
GObject* g_object_new(g_type_from_name("GwyLayerLines"));
Allows to select one or more lines of arbitrary orientation and length.
Selection data consists of an array of coordinates organized to (x0, y0, x1, y1) quadruples, each representing a one selected line.
"/0/select/lines/nselected" (gint : Read) | The number of currently selected lines. |
"/0/select/lines/0/x0" (gdouble : Read) | The x-coordinate of the first point of first line. |
"/0/select/lines/0/y0" (gdouble : Read) | The y-coordinate of the first point of first line. |
"/0/select/lines/0/x1" (gdouble : Read) | The x-coordinate of the second point of first line. |
"/0/select/lines/0/y1" (gdouble : Read) | The y-coordinate of the second point of first line. |
"/0/select/lines/1/x0" (gdouble : Read) | The x-coordinate of the first point of second line. |
"/0/select/lines/1/y0" (gdouble : Read) | The y-coordinate of the first point of second line. |
"/0/select/lines/1/x1" (gdouble : Read) | The x-coordinate of the second point of second line. |
"/0/select/lines/1/y1" (gdouble : Read) | The y-coordinate of the second point of second line. |
… | … |
GObject* g_object_new(g_type_from_name("GwyLayerPointer"));
Allows to temporarily select a point, with no graphical representation on parent data view. Useful for value reading.
Selection data consists of a single (x, y) coordinate couple representing the selected point.
GObject* g_object_new(g_type_from_name("GwyLayerPoints"));
Allows to select one or more points, represented by crosses on the parent data view.
Selection data consists of an array of coordinates organized to (x, y) couples, each representing a one selected point.
"/0/select/points/nselected" (gint : Read) | The number of currently selected points. |
"/0/select/points/0/x" (gdouble : Read) | The x-coordinate of first point. |
"/0/select/points/0/y" (gdouble : Read) | The y-coordinate of first point. |
"/0/select/points/1/x" (gdouble : Read) | The x-coordinate of second point. |
"/0/select/points/1/y" (gdouble : Read) | The y-coordinate of second point. |
… | … |
<< GwyColorAxis | Graph >> |