| Top |
VisuGlExtLegendVisuGlExtLegend — Draw a frame with the representation of each atom species, its name and the number of elements. |
This extension draws a frame on top of the rendering area with an item per VisuElement currently rendered. For each VisuElement, a small representation of its OpenGL shape is drawn, its label is printed and the number of VisuNode associated to this element.
This extension defines one resource entry labeled "legend_is_on" to control if the legend is printed or not.
VisuGlExtLegend *
visu_gl_ext_legend_new (const gchar *name);
Creates a new VisuGlExt to draw a legend.
Since: 3.7
gboolean visu_gl_ext_legend_setNodes (VisuGlExtLegend *legend,VisuNodeArrayRenderer *nodes);
Attach an VisuGlView to render to and setup the legend to get the node population also.
Since: 3.7
VisuNodeArrayRenderer *
visu_gl_ext_legend_getNodes (VisuGlExtLegend *legend);
legend
is displaying a label showing the element of a
VisuNodeArray using the rendering properties of a VisuNodeArrayRenderer.
Since: 3.8
#define VISU_GL_EXT_LEGEND_ID "Legend"
The id used to identify this extension, see
visu_gl_ext_rebuild() for instance.