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