![]() |
![]() |
![]() |
V_Sim API - Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
legendlegend — Draw a frame with the representation of each atom species, its name and the number of elements. |
#define VISU_GLEXT_LEGEND_ID VisuExtension* initExtLegend (); gboolean visu_glExt_legend_setOn (gboolean value
); gboolean visu_glExt_legend_getOn (); void visu_glExt_legend_draw (VisuData *dataObj
);
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.
VisuExtension* initExtLegend ();
Internal use only.
Returns : |
the newly created legend extension. |
Since 3.5
gboolean visu_glExt_legend_setOn (gboolean value
);
Set or not the status of the legend extension.
|
a boolean. |
Returns : |
TRUE if the status is changed. |
Since 3.5
gboolean visu_glExt_legend_getOn ();
Legend extension draw a frame with the name and the number of elements of the current rendered data.
Returns : |
TRUE if the legend is used. |
Since 3.5