[609] | 1 | ####################################################################### |
---|
[1302] | 2 | # MACRO FILE NAME: exN03Vis15.mac # |
---|
[609] | 3 | # # |
---|
| 4 | # AUTHOR(S): Laurent Garnier # |
---|
| 5 | # # |
---|
| 6 | # DATE: July 01, 2007 # |
---|
| 7 | # # |
---|
| 8 | # CONTENTS: A basic macro for demonstrating Inventor driver # |
---|
| 9 | # # |
---|
[1302] | 10 | # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis15.mac # |
---|
[609] | 11 | # # |
---|
[921] | 12 | # REQUIRED PLATFORMS & SOFTWARES: Unix, Motif, X-window, OpenGL ,Qt # |
---|
[609] | 13 | # # |
---|
| 14 | # ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: # |
---|
| 15 | # (See geant4/source/visualization/README for details.) # |
---|
| 16 | # # |
---|
[1302] | 17 | # % setenv G4VIS_BUILD_OGLQT 1 # |
---|
[609] | 18 | # # |
---|
| 19 | # ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: # |
---|
| 20 | # (See geant4/source/visualization/README for details.) # |
---|
| 21 | # # |
---|
[1302] | 22 | # % setenv G4VIS_USE_OGLQT 1 # |
---|
[609] | 23 | # # |
---|
| 24 | # ADDITIONAL NOTES: # |
---|
| 25 | # # |
---|
| 26 | ####################################################################### |
---|
| 27 | |
---|
| 28 | # Create "scene-0" |
---|
[1302] | 29 | # |
---|
[609] | 30 | /vis/scene/create |
---|
| 31 | |
---|
[921] | 32 | # Invoke the Qt driver |
---|
[1302] | 33 | # |
---|
[921] | 34 | /vis/sceneHandler/create OGLSQt |
---|
[609] | 35 | /vis/viewer/create |
---|
| 36 | |
---|
| 37 | # Add the world volume to the current scene |
---|
[1302] | 38 | # |
---|
[609] | 39 | /vis/scene/add/volume |
---|
[1302] | 40 | |
---|
[609] | 41 | #/vis/scene/add/volume Layer |
---|
| 42 | # Name of the absorbers = name of their material (Lead) ! |
---|
| 43 | #/vis/scene/add/volume Lead |
---|
| 44 | # Name of the gaps = name of their material (liquidArgon) ! |
---|
| 45 | #/vis/scene/add/volume liquidArgon |
---|
[1302] | 46 | |
---|
[609] | 47 | /tracking/storeTrajectory 1 |
---|
| 48 | |
---|
| 49 | # Bird-eye view of events |
---|
[1302] | 50 | # |
---|
[609] | 51 | /vis/viewer/reset |
---|
[921] | 52 | /vis/viewer/set/viewpointThetaPhi 45 45 |
---|
[609] | 53 | |
---|
| 54 | /vis/scene/notifyHandlers |
---|
| 55 | |
---|
[1302] | 56 | /vis/scene/add/trajectories smooth |
---|
| 57 | /vis/modeling/trajectories/create/drawByCharge |
---|
| 58 | /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true |
---|
| 59 | /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2 |
---|
| 60 | /vis/scene/endOfEventAction accumulate |
---|
| 61 | |
---|
[609] | 62 | /control/verbose 2 |
---|
| 63 | |
---|
| 64 | /vis/viewer/update |
---|
| 65 | |
---|
| 66 | /run/beamOn 1 |
---|
| 67 | |
---|
[1234] | 68 | /vis/ogl/printEPS |
---|