VisuGlExtPairs

VisuGlExtPairs — Draw links between nodes.

Functions

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── ToolDbgObj
        ╰── VisuGlExt
            ╰── VisuGlExtPairs

Description

This extension draws links between nodes, depending on VisuPairLinkRenderer drawing capabilities.

Functions

visu_gl_ext_pairs_new ()

VisuGlExtPairs *
visu_gl_ext_pairs_new (const gchar *name);

Creates a new VisuGlExt to draw a pairs.

Parameters

name

the name to give to the extension (default is VISU_GL_EXT_PAIRS_ID).

[allow-none]

Returns

a pointer to the VisuGlExt it created or NULL otherwise.

Since: 3.7


visu_gl_ext_pairs_setData ()

gboolean
visu_gl_ext_pairs_setData (VisuGlExtPairs *pairs,
                           VisuData *data);

Attach a VisuData to render to and setup the pairs to get the node population also.

Parameters

pairs

The VisuGlExtPairs to attached to.

 

data

the nodes to get the population of.

 

Returns

TRUE if data is actually changed.

Since: 3.7


visu_gl_ext_pairs_setDataRenderer ()

gboolean
visu_gl_ext_pairs_setDataRenderer (VisuGlExtPairs *pairs,
                                   VisuNodeArrayRenderer *renderer);

Specify the renderer that may be used to draw pairs in the same colour and material than elements.

Parameters

pairs

a VisuGlExtPairs object.

 

renderer

a VisuNodeArrayRenderer object.

 

Returns

TRUE if value is actually changed.

Since: 3.8


visu_gl_ext_pairs_getDataRenderer ()

VisuNodeArrayRenderer *
visu_gl_ext_pairs_getDataRenderer (VisuGlExtPairs *pairs);

Retrieve the VisuNodeArrayRenderer this pairs is using the rendering properties from.

Parameters

pairs

a VisuGlExtPairs object.

 

Returns

the VisuNodeArrayRenderer this pairs is using the rendering properties from.

[transfer none]

Since: 3.8


visu_gl_ext_pairs_getSet ()

VisuPairSet *
visu_gl_ext_pairs_getSet (VisuGlExtPairs *pairs);

Retrieve the VisuPairSet this pairs is based on.

Parameters

pairs

a VisuGlExtPairs object.

 

Returns

the VisuPairSet this pairs is based on.

[transfer none]

Since: 3.8


visu_gl_ext_pairs_getAllLinkRenderer ()

GList *
visu_gl_ext_pairs_getAllLinkRenderer (VisuGlExtPairs *pairs);

Useful to know all VisuPairLinkRenderer used by pairs .

Parameters

pairs

a VisuGlExtPairs object.

 

Returns

a list of all the known VisuPairLinkRenderer. This list should be considered read-only.

[element-type VisuPairLinkRenderer*][transfer none]

Since: 3.8


visu_gl_ext_pairs_getLinkRenderer ()

VisuPairLinkRenderer *
visu_gl_ext_pairs_getLinkRenderer (VisuGlExtPairs *pairs,
                                   VisuPairLink *data);

Get the drawing method of a pair.

Parameters

pairs

the rendering VisuGlExtPairs object.

 

data

a VisuPairLink object.

 

Returns

a drawing method.

[transfer none]

Since: 3.6


visu_gl_ext_pairs_setLinkRenderer ()

gboolean
visu_gl_ext_pairs_setLinkRenderer (VisuGlExtPairs *pairs,
                                   VisuPairLink *data,
                                   VisuPairLinkRenderer *renderer);

Set the drawing method of a pair.

Parameters

pairs

the rendering VisuGlExtPairs object.

 

data

a VisuPairLink object.

 

renderer

a VisuPairLinkRenderer object.

 

Returns

TRUE if drawing method is changed.

Since: 3.6

Types and Values

VISU_GL_EXT_PAIRS_ID

#define VISU_GL_EXT_PAIRS_ID "Pairs"

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

Signal Details

The “renderer-changed” signal

void
user_function (VisuGlExtPairs *ext,
               VisuPairLink   *link,
               gpointer        user_data)

Gets emitted when the renderer used for link is changed.

Parameters

ext

the object which emits the signal ;

 

link

the VisuPairLink which is changed.

 

user_data

user data set when the signal handler was connected.

 

Flags: No Hooks

Since: 3.8