Top | ![]() |
![]() |
![]() |
![]() |
GwyVectorLayer * | gwy_layer_lattice_new () |
gint | gwy_layer_lattice_get_n_lines () |
void | gwy_layer_lattice_set_n_lines () |
GObject ╰── GInitiallyUnowned ╰── GwyDataViewLayer ╰── GwyVectorLayer ╰── GwyLayerLattice
GwyLayerLattice allows selection of two-dimensional lattices. It uses GwySelectionLattice selection type.
The lattice is drawn over an area given by GwyLayerLattice:n-lines. However, it can be rotated and streched by clicking and dragging anywhere in the plane, not just in the region covered by the lines. Therefore, the layer is only useful with a single latice selection as only the first selection object can be edited.
The lattice selection needs to be initialised. The layer can only edit a lattice selection; it cannot create one from scratch.
GwyVectorLayer *
gwy_layer_lattice_new (void
);
Creates a new lattice vector layer.
gint
gwy_layer_lattice_get_n_lines (GwyLayerLattice *layer
);
Gets the number of lattice lines of a lattice vector layer.
void gwy_layer_lattice_set_n_lines (GwyLayerLattice *layer
,gint n_lines
);
Sets the number of lattice lines of a lattice vector layer.
The basis vectors are always drawn, with both signs (i.e. forming a cross). If n_lines
is zero nothing else is
drawn. Otherwise n_lines
extra lines are drawn to each side of the central lines to render the lattice.