![]() |
![]() |
![]() |
V_Sim API - Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
enum VisuUiInteractiveActionId; GtkWidget * (*VisuUiInteractiveBuild) (VisuUiMain *main
,gchar **label
,gchar **help
,GtkWidget **radio
); void (*VisuUiInteractiveStartStop) (VisuUiRenderingWindow *window
); guint visu_ui_interactive_addAction (VisuUiInteractiveBuild build
,VisuUiInteractiveStartStop start
,VisuUiInteractiveStartStop stop
); void visu_ui_interactive_init (); void visu_ui_interactive_initBuild (VisuUiMain *main
); void visu_ui_interactive_setMessage (const gchar *message
,GtkMessageType type
); void visu_ui_interactive_start (VisuUiRenderingWindow *window
); void visu_ui_interactive_toggle (); void visu_ui_interactive_unsetMessage ();
This is the second main interface for V_Sim after the command panel. It provides widgets to interact with the nodes. There is three built-in interactive modes : the observe one (as in normal behaviour), the pick one and the move one.
It is possible to add new action thanks to
visu_ui_interactive_addAction()
function. It is also possible to
show a small warning message with visu_ui_interactive_setMessage()
that shows a GtkInfoBar.
typedef enum { VISU_UI_ACTION_OBSERVE, VISU_UI_ACTION_PICK, VISU_UI_ACTION_MOVE, } VisuUiInteractiveActionId;
Possibe actions.
GtkWidget * (*VisuUiInteractiveBuild) (VisuUiMain *main
,gchar **label
,gchar **help
,GtkWidget **radio
);
One can create new tab in the interactive dialog window by providing routines with this prototype.
|
the main interface. |
|
a location to store the name of the tab ; |
|
a location to store the help message to be shown at the bottom of the window ; |
|
a location on the radio button that will be toggled when the desired action is used. |
Returns : |
a new container to be include as a tab in the interactive dialog window. |
void (*VisuUiInteractiveStartStop) (VisuUiRenderingWindow *window
);
Routines of this prototype are called each time the interactive mode should be changed.
|
the rendering window that starts or stops the interaction defined in the tab. |
guint visu_ui_interactive_addAction (VisuUiInteractiveBuild build
,VisuUiInteractiveStartStop start
,VisuUiInteractiveStartStop stop
);
One can add new interactive mode with specific tab in the interactive dialog.
|
a routine to build a tab. |
|
a routine to run when session is selected. |
|
a routine to run when session is stopped. |
Returns : |
an id for this new action. |
Since 3.6
void visu_ui_interactive_init ();
Initialise the observe/pick window, connect the signals, give names to widgets...
void visu_ui_interactive_initBuild (VisuUiMain *main
);
create the window.
|
the command panel the about dialog is associated to. |
void visu_ui_interactive_setMessage (const gchar *message
,GtkMessageType type
);
Show a message in the interactive dialog.
|
a string. |
|
the type of message. |
Since 3.6
void visu_ui_interactive_start (VisuUiRenderingWindow *window
);
Start the observe & pick session.
|
the current rendering widget. |
void visu_ui_interactive_toggle ();
The user can switch between a current specific interactive action and the observe mode. This routine is used to do this.*
Since 3.6
void visu_ui_interactive_unsetMessage ();
Hide any message from the interactive dialog. See also
visu_ui_interactive_setMessage()
.
Since 3.6