Rev | Line | |
---|
[834] | 1 | # Use this macro file to open a view and draw detector. |
---|
| 2 | # In test19, this is executed, then a normal prompt appears. |
---|
| 3 | # |
---|
| 4 | # Reflect commands to output. |
---|
| 5 | /control/verbose 2 |
---|
| 6 | # |
---|
| 7 | # Set gun for demo (detector 1) |
---|
| 8 | #/gun/particle e+ |
---|
| 9 | #/gun/position 0 -100 0 cm |
---|
| 10 | #/gun/direction 0 1 0 |
---|
| 11 | # |
---|
| 12 | # Initialise physics and geometry. |
---|
| 13 | /init/all |
---|
| 14 | # |
---|
| 15 | # John's personal preferences |
---|
| 16 | /vis~/lights/move_with_camera true |
---|
| 17 | /vis~/set/marker_choices 1 |
---|
| 18 | # |
---|
| 19 | # See list of graphics systems possibilities. |
---|
| 20 | /vis~/create_view/new_graphics_system |
---|
| 21 | # |
---|
| 22 | # Select view and draw. |
---|
| 23 | #/vis~/create_view/new_graphics_system DAWN |
---|
| 24 | #/vis~/create_view/new_graphics_system RayX |
---|
| 25 | #/vis~/create_view/new_graphics_system OGLIX |
---|
| 26 | /vis~/create_view/new_graphics_system OGLSX |
---|
| 27 | #/vis~/create_view/new_graphics_system VRML1 |
---|
| 28 | #/vis~/create_view/new_graphics_system VRML1File |
---|
| 29 | #/vis~/create_view/new_graphics_system Xo |
---|
| 30 | #/vis~/create_view/new_graphics_system Wo |
---|
| 31 | # |
---|
| 32 | # G4Ray demo |
---|
| 33 | #/vis~/camera/zoom 2 |
---|
| 34 | #/vis~/camera/viewpoint 20 20 |
---|
| 35 | #/vis~/set/drawing_style 2 |
---|
| 36 | #/vis~/create_view/new_graphics_system RayX |
---|
| 37 | #/vis~/ray/resolution 1 |
---|
| 38 | #/vis~/draw/current |
---|
| 39 | # |
---|
| 40 | # Draw current scene |
---|
| 41 | /vis~/draw/current |
---|
| 42 | /vis~/show/view |
---|
| 43 | # |
---|
| 44 | # Switch off the reflecting of commands. |
---|
| 45 | /control/verbose 0 |
---|
| 46 | |
---|
Note: See
TracBrowser
for help on using the repository browser.