![]() |
![]() |
![]() |
V_Sim API - Reference Manual | ![]() |
---|---|---|---|---|
void extInfosBuild (VisuData *dataObj); void extInfosSet_data (VisuData *data, DataNode *dataNode, int *nodes); void extInfosSet_element (VisuData *data, int *nodes); void extInfosSet_number (VisuData *data, int *nodes); gboolean extInfosSet_used (VisuData *data, gboolean status); OpenGLExtension* extInfosInit ();
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.
void extInfosBuild (VisuData *dataObj);
Build the OpenGL list representing the informations associated to the given
dataObj
. To associate some, use extInfosSet_number()
, or extInfosSet_element()
or extInfosSet_data()
.
dataObj : |
a VisuData object. |
void extInfosSet_data (VisuData *data, DataNode *dataNode, int *nodes);
As extInfosSet_number()
, but draw some informations instead of their
numbers. The informations are defined by the dataNode
argument.
data : |
a VisuData object ; |
dataNode : |
a DataNode object ; |
nodes : |
an integer list, terminated with a negative number ; |
void extInfosSet_element (VisuData *data, int *nodes);
As extInfosSet_number()
, but draw the names of elements instead of their
numbers.
data : |
a VisuData object ; |
nodes : |
an integer list, terminated with a negative number. |
void extInfosSet_number (VisuData *data, int *nodes);
Associate a informations extension to the given data
. 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.
data : |
a VisuData object ; |
nodes : |
an integer list, terminated with a negative number. |
gboolean extInfosSet_used (VisuData *data, gboolean status);
Change the status of the informations extension.
data : |
a VisuData object ; |
status : |
a boolean. |
Returns : | TRUE if the calling routine should call visuObjectRedraw() .
|
OpenGLExtension* extInfosInit ();
Create the extension, it is called by V_Sim on starup and should not used elsewhere.
Returns : | the newly created OpenGLExtension. |