/gui/

UI interactors commands.


Sub-directories :


Commands :


addMenu [Name] [Label]

Add a menu to menu bar.

Available at all Geant4 states.

Parameters
Name type s
Label type s


addButton [Menu] [Label] [Command]

Add a button to menu.

Available at all Geant4 states.

Parameters
Menu type s
Label type s
Command type s


defaultIcons [bool]

Set the Geant4 defaults icons in Qt driver.
By default, Geant4 icons are enable.

Available at all Geant4 states.

Parameters
bool type b Omittable : default value = true


addIcon [Label] [Icon] [Command] [File]

Add a non-checkable icon to the Icon toolbar.
If the Icon parameter is set to "user_icon", you should provide the icon file in xpm format, otherwise you have to choose one of the candidate icons
A command given without parameters will display a window that will allow one to choose the parameters (if needed) for this command.
E.g: /gui/addIcon "Change background color" user_icon /vis/viewer/set/background ../Images/background.xpm
Special cases for the Icon parameter:
- open: Open an open-file-selector that can run the Command with File as argument.
- save: Open a save-file-selector that can run the Command with File as argument.
- move/rotate/pick/zoom_in/zoom_out: Theses icons are radio-button icons that can change cursor action.
- wireframe/solid/hidden_line_removal/hidden_line_and_surface_removal: These icons are radio-button icons that can change drawing style.
- perspective/ortho: These icons are radio-button icons that can change projection style.

Available at all Geant4 states.

Parameters
Label type s
Icon type s Parameter candidates : open save move rotate pick zoom_in zoom_out wireframe solid hidden_line_removal hidden_line_and_surface_removal perspective ortho user_icon
Command type s Omittable : default value = no_command
File type s Omittable : default value = no_file


system [Command]

Send a command to the system.

Available at all Geant4 states.

Parameters
Command type s