diff options
| author | shivesh <s.p.mandalia@qmul.ac.uk> | 2018-08-21 16:01:56 +0100 |
|---|---|---|
| committer | shivesh <s.p.mandalia@qmul.ac.uk> | 2018-08-21 16:01:56 +0100 |
| commit | 92f4fb026c51d68cda6ad25159af01d60ad584e0 (patch) | |
| tree | cd6fece6013e24fe31720624e2faf567baa513c5 | |
| parent | ba3df2e05c35aa5addb600e436d8408bd35b2f5b (diff) | |
| download | G4BeamTest-92f4fb026c51d68cda6ad25159af01d60ad584e0.tar.gz G4BeamTest-92f4fb026c51d68cda6ad25159af01d60ad584e0.zip | |
add macros
| -rw-r--r-- | CMakeLists.txt | 2 | ||||
| -rw-r--r-- | gui.mac | 51 | ||||
| -rw-r--r-- | icons.mac | 26 |
3 files changed, 79 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 932304b..0410e19 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,6 +42,8 @@ target_link_libraries(G4BeamTest ${Geant4_LIBRARIES} ) set(G4BeamTest_SCRIPTS run1.mac vis.mac + gui.mac + icons.mac ) foreach(_script ${G4BeamTest_SCRIPTS}) @@ -0,0 +1,51 @@ +# +# This file permits to customize, with commands, +# the menu bar of the G4UIXm, G4UIQt, G4UIWin32 sessions. +# It has no effect with G4UIterminal. +# +# Process vis.mac (and draw geometry) +# +/control/execute vis.mac +# +# Add icons of general interest +# +/control/execute icons.mac +# +# File menu : +/gui/addMenu file File +/gui/addButton file Quit exit +# +# Run menu : +/gui/addMenu run Run +/gui/addButton run "beamOn 1" "/run/beamOn 1" +#/gui/addButton run run1 "/control/execute run1.mac" +#/gui/addButton run run2 "/control/execute run2.mac" +# +# Gun menu : +/gui/addMenu gun Gun +/gui/addButton gun "50 MeV" "/gun/energy 50 MeV" +/gui/addButton gun "1 GeV" "/gun/energy 1 GeV" +/gui/addButton gun "10 GeV" "/gun/energy 10 GeV" +/gui/addButton gun "e-" "/gun/particle e-" +/gui/addButton gun "pi0" "/gun/particle pi0" +/gui/addButton gun "pi+" "/gun/particle pi+" +/gui/addButton gun "neutron" "/gun/particle neutron" +/gui/addButton gun "proton" "/gun/particle proton" +# +# Field menu : +#/gui/addMenu field Field +#/gui/addButton field "off" "/B2/det/setField 0.2 tesla" +#/gui/addButton field "0.2 tesla" "/B2/det/setField 0.2 tesla" +#/gui/addButton field "2.0 tesla" "/B2/det/setField 2.0 tesla" +# +# Viewer menu : +/gui/addMenu viewer Viewer +/gui/addButton viewer "Set style surface" "/vis/viewer/set/style surface" +/gui/addButton viewer "Set style wireframe" "/vis/viewer/set/style wireframe" +/gui/addButton viewer "Refresh viewer" "/vis/viewer/refresh" +/gui/addButton viewer "Update viewer (interaction or end-of-file)" "/vis/viewer/update" +/gui/addButton viewer "Flush viewer (= refresh + update)" "/vis/viewer/flush" +/gui/addButton viewer "Update scene" "/vis/scene/notifyHandlers" +# +# User defined icon : +/gui/addIcon "Run beam on" user_icon "/run/beamOn 1" run.png diff --git a/icons.mac b/icons.mac new file mode 100644 index 0000000..84591fe --- /dev/null +++ b/icons.mac @@ -0,0 +1,26 @@ +#
+# This file permits to customize, with commands,
+# the icon menu bar of the G4UIQt sessions not yet implemented other UI drivers (geant4-09-05-ref-09)
+# It has no effect with G4UIterminal.
+
+# open/save icons
+/gui/addIcon "Open macro file" open /control/execute
+/gui/addIcon "Save viewer state" save /vis/viewer/save
+
+# Cursors style icons
+/gui/addIcon "Move" move
+/gui/addIcon "Pick" pick
+/gui/addIcon "Zoom out" zoom_out
+/gui/addIcon "Zoom in" zoom_in
+/gui/addIcon "Rotate" rotate
+
+# Surface Style icons
+# Surface Style icons
+/gui/addIcon "Hidden line removal" hidden_line_removal
+/gui/addIcon "Hidden line and hidden surface removal" hidden_line_and_surface_removal
+/gui/addIcon "Surfaces" solid
+/gui/addIcon "Wireframe" wireframe
+
+# Perspective/Ortho icons
+/gui/addIcon "Perspective" perspective
+/gui/addIcon "Orthographic" ortho
|
