VisuGlExtInfos

VisuGlExtInfos — give the capability to draw some information near each node.

Functions

Properties

GArray * selection Read / Write
VisuNodeValues * values Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── ToolDbgObj
        ╰── VisuGlExt
            ╰── VisuGlExtInfos

Description

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.

Functions

visu_gl_ext_infos_new ()

VisuGlExtInfos *
visu_gl_ext_infos_new (const gchar *name);

Create a new VisuGlExt to represent information on nodes.

Parameters

name

the name of the VisuGlExt.

[allow-none]

Returns

a new VisuGlExtInfos object.

Since: 3.7


visu_gl_ext_infos_setDataRenderer ()

gboolean
visu_gl_ext_infos_setDataRenderer (VisuGlExtInfos *infos,
                                   VisuNodeArrayRenderer *renderer);

Attach a VisuNodeArrayRenderer to render to and setup the infos.

Parameters

infos

The VisuGlExtInfos to attached to.

 

renderer

the VisuNodeArrayRenderer displaying the data.

 

Returns

TRUE if the model was actually changed.

Since: 3.7


visu_gl_ext_infos_drawIds ()

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.

Parameters

infos

the VisuGlExtInfos object to update.

 

nodes

an integer list.

[element-type guint][transfer full]

Returns

TRUE if the status was actually changed.


visu_gl_ext_infos_drawElements ()

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.

Parameters

infos

the VisuGlExtInfos object to update.

 

nodes

an integer list.

[element-type guint][transfer full]

Returns

TRUE if the status was actually changed.


visu_gl_ext_infos_drawNodeProperties ()

gboolean
visu_gl_ext_infos_drawNodeProperties (VisuGlExtInfos *infos,
                                      VisuNodeValues *values,
                                      GArray *nodes);

Draw values on selected nodes .

Parameters

infos

the VisuGlExtInfos object to update.

 

values

the VisuNodeValues to render on nodes.

 

nodes

an integer list.

[element-type guint][transfer full]

Returns

TRUE.

Since: 3.8

Types and Values

enum VisuGlExtInfosDrawId

This enum represents the possibilities for the information drawing.

Members

DRAW_NEVER

don't draw any information on nodes ;

 

DRAW_SELECTED

draw information only on a list of nodes ;

 

DRAW_ALWAYS

draw information on all nodes.

 

VISU_GL_EXT_INFOS_ID

#define VISU_GL_EXT_INFOS_ID "Node information"

The id used to identify this extension, see visu_gl_ext_rebuild() for instance.

Property Details

The “selection” property

  “selection”                GArray *

ids of selected nodes.

Flags: Read / Write


The “values” property

  “values”                   VisuNodeValues *

some node values to display.

Flags: Read / Write