Top | ![]() |
![]() |
![]() |
![]() |
This extension draws links between nodes, depending on VisuPairLinkRenderer drawing capabilities.
VisuGlExtPairs *
visu_gl_ext_pairs_new (const gchar *name
);
Creates a new VisuGlExt to draw a pairs.
Since: 3.7
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.
Since: 3.7
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.
Since: 3.8
VisuNodeArrayRenderer *
visu_gl_ext_pairs_getDataRenderer (VisuGlExtPairs *pairs
);
Retrieve the VisuNodeArrayRenderer this pairs
is using the
rendering properties from.
the VisuNodeArrayRenderer this pairs
is
using the rendering properties from.
[transfer none]
Since: 3.8
VisuPairSet *
visu_gl_ext_pairs_getSet (VisuGlExtPairs *pairs
);
Retrieve the VisuPairSet this pairs
is based on.
Since: 3.8
GList *
visu_gl_ext_pairs_getAllLinkRenderer (VisuGlExtPairs *pairs
);
Useful to know all VisuPairLinkRenderer used by pairs
.
a list of all the known VisuPairLinkRenderer. This list should be considered read-only.
[element-type VisuPairLinkRenderer*][transfer none]
Since: 3.8
VisuPairLinkRenderer * visu_gl_ext_pairs_getLinkRenderer (VisuGlExtPairs *pairs
,VisuPairLink *data
);
Get the drawing method of a pair.
Since: 3.6
gboolean visu_gl_ext_pairs_setLinkRenderer (VisuGlExtPairs *pairs
,VisuPairLink *data
,VisuPairLinkRenderer *renderer
);
Set the drawing method of a pair.
pairs |
the rendering VisuGlExtPairs object. |
|
data |
a VisuPairLink object. |
|
renderer |
a VisuPairLinkRenderer object. |
Since: 3.6
#define VISU_GL_EXT_PAIRS_ID "Pairs"
The id used to identify this extension, see
visu_gl_ext_rebuild()
for instance.
“renderer-changed”
signalvoid user_function (VisuGlExtPairs *ext, VisuPairLink *link, gpointer user_data)
Gets emitted when the renderer used for link
is changed.
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