![]() |
![]() |
![]() |
V_Sim API - Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
panelElementspanelElements — The tab where VisuElement characteristics can be tuned. |
#define VISU_UI_PANEL_ELEMENTS void (*VisuUiPanelElementsChangeFunc) (GList *elements
); GList * visu_ui_panel_elements_getSelected (); GtkWidget * visu_ui_panel_elements_getStatic (); VisuUiPanel * visu_ui_panel_elements_init (); void visu_ui_panel_elements_setMethod (VisuRendering *method
,VisuUiPanelElementsChangeFunc change
,VisuUiNewWidgetFunc create
);
It is possible to get the list of selected elements by
calling visu_ui_panel_elements_getSelected()
.
#define VISU_UI_PANEL_ELEMENTS visu_ui_panel_elements_getStatic()
Retrieve the widget of the panel of VisuElement.
Returns : |
a GtkWidget owned by V_Sim. |
void (*VisuUiPanelElementsChangeFunc) (GList *elements
);
Methods from this interface are called whenever the currently selected elements are changed.
|
a list of all VisuElements that are selected. |
GList * visu_ui_panel_elements_getSelected ();
This method is used to get a list of selected VisuElement from the element selector of this panel.
Returns : |
a list
of VisuElement, the list should be freed after use by
g_list_free() . [transfer container][element-type VisuElement*]
|
Since 3.6
GtkWidget * visu_ui_panel_elements_getStatic ();
Retrives a pointer on this VisuUiPanel.
Returns : |
a pointer owned by V_Sim. [transfer none] |
VisuUiPanel * visu_ui_panel_elements_init ();
Should be used in the list declared in externalModules.h to be loaded by V_Sim on start-up. This routine will create the VisuUiPanel where the element stuff can be done, such as choosing a colour, setting the radius of spheres...
Returns : |
a newly created VisuUiPanel object. |
void visu_ui_panel_elements_setMethod (VisuRendering *method
,VisuUiPanelElementsChangeFunc change
,VisuUiNewWidgetFunc create
);
This method allows to initiate the methods to deal with the rendering specific interfaces.
|
a pointer on the method this interface is associated to ; |
|
the method to be called whenever the element selection is cahnged ;. [scope call] |
|
the method to be called when the interface must be built. [scope call] |