Top | ![]() |
![]() |
![]() |
![]() |
This part is used to draw some information near the nodes. This information can be the one of a VisuNodeProperty or something else. When read from a VisuNodeProperty, just giving the name will produce the right output. In other cases a print routine must be given.
VisuGlExtInfos *
visu_gl_ext_infos_new (const gchar *name
);
Create a new VisuGlExt to represent information on nodes.
Since: 3.7
gboolean visu_gl_ext_infos_setDataRenderer (VisuGlExtInfos *infos
,VisuNodeArrayRenderer *renderer
);
Attach a VisuNodeArrayRenderer to render to and setup the infos.
infos |
The VisuGlExtInfos to attached to. |
|
renderer |
the VisuNodeArrayRenderer displaying the data. |
Since: 3.7
gboolean visu_gl_ext_infos_drawIds (VisuGlExtInfos *infos
,GArray *nodes
);
With this extension,
some the number of nodes will be drawn on them. Numbers can be drawn and
all nodes (set nodes
to a NULL pointer), or to a restricted list of nodes
represented by their numbers. In this case, nodes
can have whatever length
but must be terminated by a negative integer. This array is then owned by the
extension and should not be freed.
infos |
the VisuGlExtInfos object to update. |
|
nodes |
an integer list. |
[element-type guint][transfer full] |
gboolean visu_gl_ext_infos_drawElements (VisuGlExtInfos *infos
,GArray *nodes
);
As visu_gl_ext_infos_drawIds()
, but draw the names of elements instead of their
numbers.
infos |
the VisuGlExtInfos object to update. |
|
nodes |
an integer list. |
[element-type guint][transfer full] |
gboolean visu_gl_ext_infos_drawNodeProperties (VisuGlExtInfos *infos
,VisuNodeValues *values
,GArray *nodes
);
Draw values
on selected nodes
.
infos |
the VisuGlExtInfos object to update. |
|
values |
the VisuNodeValues to render on nodes. |
|
nodes |
an integer list. |
[element-type guint][transfer full] |
Since: 3.8
#define VISU_GL_EXT_INFOS_ID "Node information"
The id used to identify this extension, see
visu_gl_ext_rebuild()
for instance.