![]() |
![]() |
![]() |
V_Sim API - Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
#define VISU_GL_EXT_INFOS_ID struct VisuGlExtInfos; struct VisuGlExtInfosClass; enum VisuGlExtInfosDrawId; enum VisuGlExtInfosDrawMethod; void visu_gl_ext_infos_draw (VisuGlExtInfos *infos
); gboolean visu_gl_ext_infos_drawData (VisuGlExtInfos *infos
,VisuDataNode *dataNode
,int *nodes
); gboolean visu_gl_ext_infos_drawElements (VisuGlExtInfos *infos
,int *nodes
); gboolean visu_gl_ext_infos_drawIds (VisuGlExtInfos *infos
,int *nodes
); VisuGlExtInfos * visu_gl_ext_infos_getDefault (); VisuGlExtInfos * visu_gl_ext_infos_new (const gchar *name
); gboolean visu_gl_ext_infos_setData (VisuGlExtInfos *infos
,VisuData *data
); gboolean visu_gl_ext_infos_setGlView (VisuGlExtInfos *infos
,VisuGlView *view
);
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.
#define VISU_GL_EXT_INFOS_ID "Node information"
The id used to identify this extension, see
visu_gl_ext_rebuild()
for instance.
struct VisuGlExtInfosClass { VisuGlExtClass parent; };
A short way to identify _VisuGlExtInfosClass structure.
VisuGlExtClass |
the parent class; |
Since 3.7
typedef enum { DRAW_NEVER, DRAW_SELECTED, DRAW_ALWAYS } VisuGlExtInfosDrawId;
This enum represents the possibilities for the information drawing.
typedef enum { EXT_DRAW_METH_NONE, EXT_DRAW_METH_ID, EXT_DRAW_METH_TYPE, EXT_DRAW_METH_OTHER } VisuGlExtInfosDrawMethod;
This enum represents the method for information drawing.
void visu_gl_ext_infos_draw (VisuGlExtInfos *infos
);
Compile the list representing information displayed on nodes.
|
a VisuGlExtInfos object. |
Since 3.7
gboolean visu_gl_ext_infos_drawData (VisuGlExtInfos *infos
,VisuDataNode *dataNode
,int *nodes
);
As visu_gl_ext_infos_drawIds()
, but draw some informations instead of their
numbers. The informations are defined by the dataNode
argument.
|
the VisuGlExtInfos object to update. |
|
a VisuDataNode object ; |
|
an integer list, terminated with a negative number. [array zero-terminated=1][transfer full] |
Returns : |
TRUE if a call to visu_gl_ext_infos_draw() is needed. |
gboolean visu_gl_ext_infos_drawElements (VisuGlExtInfos *infos
,int *nodes
);
As visu_gl_ext_infos_drawIds()
, but draw the names of elements instead of their
numbers.
|
the VisuGlExtInfos object to update. |
|
an integer list, terminated with a negative number. [array zero-terminated=1][transfer full] |
Returns : |
TRUE if a call to visu_gl_ext_infos_draw() is needed. |
gboolean visu_gl_ext_infos_drawIds (VisuGlExtInfos *infos
,int *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.
|
the VisuGlExtInfos object to update. |
|
an integer list, terminated with a negative number. [array zero-terminated=1][transfer full] |
Returns : |
TRUE if a call to visu_gl_ext_infos_draw() is needed. |
VisuGlExtInfos * visu_gl_ext_infos_getDefault ();
V_Sim is using a default infos object.
Returns : |
a VisuGlExtInfos object used by default. [transfer none] |
Since 3.7
VisuGlExtInfos * visu_gl_ext_infos_new (const gchar *name
);
Create a new VisuGlExt to represent information on nodes.
|
the name of the VisuGlExt. [allow-none] |
Returns : |
a new VisuGlExtInfos object. |
Since 3.7
gboolean visu_gl_ext_infos_setData (VisuGlExtInfos *infos
,VisuData *data
);
Attach an VisuData to render to and setup the infos.
|
The VisuGlExtInfos to attached to. |
|
the nodes to get the population of. |
Returns : |
TRUE if visu_gl_ext_infos_draw() should be called and
then 'OpenGLAskForReDraw' signal be emitted. |
Since 3.7
gboolean visu_gl_ext_infos_setGlView (VisuGlExtInfos *infos
,VisuGlView *view
);
Attach an VisuGlView to render to and setup the infos.
|
The VisuGlExtInfos to attached to. |
|
the nodes to get the population of. |
Returns : |
TRUE if visu_gl_ext_infos_draw() should be called and
then 'OpenGLAskForReDraw' signal be emitted. |
Since 3.7