| V_Sim API - Reference Manual | ||||
|---|---|---|---|---|
enum DrawItem; enum DrawMethod; 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.
typedef enum
{
DRAW_NEVER,
DRAW_SELECTED,
DRAW_ALWAYS
} DrawItem;
This enum represents the possibilities for the information drawing.
typedef enum
{
DRAW_METH_NONE,
DRAW_METH_ID,
DRAW_METH_TYPE,
DRAW_METH_OTHER
} DrawMethod;
This enum represents the method for information drawing.
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().
|
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.
|
a VisuData object ; |
|
a DataNode object ; |
|
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.
|
a VisuData object ; |
|
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.
|
a VisuData object ; |
|
an integer list, terminated with a negative number. |
gboolean extInfosSet_used (VisuData *data, gboolean status);
Change the status of the informations extension.
|
a VisuData object ; |
|
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. |