panelElements

panelElements — The tab where VisuElement characteristics can be tuned.

Synopsis

#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);

Description

It is possible to get the list of selected elements by calling visu_ui_panel_elements_getSelected().

Details

VISU_UI_PANEL_ELEMENTS

#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.

VisuUiPanelElementsChangeFunc ()

void                (*VisuUiPanelElementsChangeFunc)    (GList *elements);

Methods from this interface are called whenever the currently selected elements are changed.

elements :

a list of all VisuElements that are selected.

visu_ui_panel_elements_getSelected ()

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


visu_ui_panel_elements_getStatic ()

GtkWidget *         visu_ui_panel_elements_getStatic    ();

Retrives a pointer on this VisuUiPanel.

Returns :

a pointer owned by V_Sim. [transfer none]

visu_ui_panel_elements_init ()

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.

visu_ui_panel_elements_setMethod ()

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.

method :

a pointer on the method this interface is associated to ;

change :

the method to be called whenever the element selection is cahnged ;. [scope call]

create :

the method to be called when the interface must be built. [scope call]