#include <G4InteractorMessenger.hh>
Definition at line 37 of file G4InteractorMessenger.hh.
◆ G4InteractorMessenger()
Definition at line 42 of file G4InteractorMessenger.cc.
79 (
"Add a non-checkable icon to the Icon toolbar.");
81 (
"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");
83 (
"A command given without parameters will display a window that will allow one to choose the parameters (if needed) for this command.");
85 (
"E.g: /gui/addIcon \"Change background color\" user_icon /vis/viewer/set/background ../Images/background.xpm");
87 (
"Special cases for the Icon parameter:");
89 (
" - open: Open an open-file-selector that can run the Command with File as argument.");
91 (
" - save: Open a save-file-selector that can run the Command with File as argument.");
93 (
" - move/rotate/pick/zoom_in/zoom_out: Theses icons are radio-button icons that can change cursor action.");
95 (
" - wireframe/solid/hidden_line_removal/hidden_line_and_surface_removal: These icons are radio-button icons that can change drawing style.");
97 (
" - perspective/ortho: These icons are radio-button icons that can change projection style.");
106 (
"open save move rotate pick zoom_in zoom_out wireframe solid hidden_line_removal hidden_line_and_surface_removal perspective ortho user_icon");
void SetParameter(G4UIparameter *const newParameter)
void SetParameterCandidates(const char *theString)
void SetDefaultValue(const char *theDefaultValue)
G4UIdirectory * interactorDirectory
void SetGuidance(const char *aGuidance)
◆ ~G4InteractorMessenger()
G4InteractorMessenger::~G4InteractorMessenger |
( |
| ) |
|
|
virtual |
◆ SetNewValue()
Reimplemented from G4UImessenger.
Definition at line 134 of file G4InteractorMessenger.cc.
141 if(
GetValues(newValue,paramn,params)==
true) {
145 session->
AddButton((
const char*)params[0],(
const char*)params[1],(
const char*)params[2]);
147 session->
AddIcon((
const char*)params[0],(
const char*)params[1],(
const char*)params[2],(
const char*)params[3]);
148 }
else if(command==
sys) {
149 system((
const char*)params[0]);
virtual void AddMenu(const char *, const char *)
virtual void AddButton(const char *, const char *, const char *)
static G4bool GetValues(G4String, int, G4String *)
system("rm -rf microbeam.root")
G4int GetParameterEntries() const
virtual void AddIcon(const char *, const char *, const char *, const char *)
G4VInteractiveSession * session
◆ addButton
◆ addIcon
◆ addMenu
◆ interactorDirectory
◆ session
◆ sys
The documentation for this class was generated from the following files: