panelElements

panelElements

Synopsis

#define             PANEL_ELEMENTS
ToolPanel*          panelElementsInit                   ();
GtkWidget*          panelElementsGet_static             ();
void                (*panelElements_changeFunc)         (GList *eleList);
void                panelElements_setInterfaceMethods   (VisuRendering *method,
                                                         panelElements_changeFunc change,
                                                         VisuGtkWidgetFunc create);

Description

Details

PANEL_ELEMENTS

#define PANEL_ELEMENTS panelElementsGet_static()

panelElementsInit ()

ToolPanel*          panelElementsInit                   ();

Should be used in the list declared in externalModules.h to be loaded by V_Sim on start-up. This routine will create the ToolPanel where the element stuff can be done, such as choosing a colour, setting the radius of spheres...

Returns :

a newly created ToolPanel object.

panelElementsGet_static ()

GtkWidget*          panelElementsGet_static             ();

panelElements_changeFunc ()

void                (*panelElements_changeFunc)         (GList *eleList);

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

eleList :

a list of all VisuElements that are selected.

panelElements_setInterfaceMethods ()

void                panelElements_setInterfaceMethods   (VisuRendering *method,
                                                         panelElements_changeFunc change,
                                                         VisuGtkWidgetFunc 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 ;

create :

the method to be called when the interface must be built.