Changeset 1302 for trunk/examples/novice/N03/visTutor
- Timestamp:
- Jun 2, 2010, 3:31:28 PM (14 years ago)
- Location:
- trunk/examples/novice/N03/visTutor
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/novice/N03/visTutor/exN03Vis10.mac
r1209 r1302 1 1 ####################################################################### 2 # MACRO FILE NAME: exN03Vis10.mac 2 # MACRO FILE NAME: exN03Vis10.mac # 3 3 # # 4 4 # AUTHOR(S): Guy Barrand # … … 8 8 # CONTENTS: A basic macro for demonstrating Inventor driver # 9 9 # # 10 # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis 6.mac#10 # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis10.mac # 11 11 # # 12 12 # REQUIRED PLATFORMS & SOFTWARES: Windows, # -
trunk/examples/novice/N03/visTutor/exN03Vis11.mac
r1209 r1302 1 1 ####################################################################### 2 # MACRO FILE NAME: exN03Vis11.mac 2 # MACRO FILE NAME: exN03Vis11.mac # 3 3 # # 4 4 # AUTHOR(S): Guy Barrand dd # -
trunk/examples/novice/N03/visTutor/exN03Vis12.mac
r1209 r1302 8 8 # CONTENTS: A basic macro for demonstrating time slicing # 9 9 # # 10 # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis12.mac 10 # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis12.mac # 11 11 # # 12 12 # REQUIRED PLATFORMS & SOFTWARES: Mac/Unix with X-Windows, OpenGL # -
trunk/examples/novice/N03/visTutor/exN03Vis13.mac
r1209 r1302 8 8 # CONTENTS: Time development of an electrmagnetic shower. # 9 9 # # 10 # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis1 2.mac#10 # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis13.mac # 11 11 # # 12 12 # REQUIRED PLATFORMS & SOFTWARES: Mac/Unix with X-Windows, OpenGL # -
trunk/examples/novice/N03/visTutor/exN03Vis14.mac
r893 r1302 13 13 # # 14 14 # REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, OpenGL,Qt # 15 # DAWN (version 3.85 or after) #16 15 # gv (Ghostview), Tcl/Tk # 17 16 # # … … 51 50 /vis/open OGLSQt 52 51 53 # Bird's-eye view of the detector geometry52 # Bird's-eye view of the whole detector components (world) 54 53 # 55 # viewpoint : (theta,phi) = (20*deg, 70*deg), 56 # zoom factor: 0.8 of the full screen size 57 # 58 /vis/viewer/reset 59 /vis/viewer/set/viewpointThetaPhi 20 70 60 /vis/viewer/zoom 0.8 61 /vis/drawVolume 62 63 # The following two commands "flush" 64 # the action of the current viewer. 65 # They are required for the post-processing drivers 66 # such as DAWNFILE, VRMLFILE, HepRep drivers, etc. 67 # For OpenGL drivers, these commands are not required 68 # but harmless even if they are described. 69 /vis/viewer/flush 70 71 ########################################################## 72 # Visualization with the DAWNFILE driver 73 # 74 # * Each visualized view is saved to a file "g4_XX.eps" 75 # with the "vectorized" PostScript format. 76 # 77 # * Set an environmental variable if you wish to 78 # skip DAWN GUI: 79 # % setenv G4DAWNFILE_VIEWER "dawn -d" 80 ########################################################## 81 82 # Invoke the DAWNFILE driver 83 /vis/open DAWNFILE 84 85 # Bird's-eye view of a detector component (Absorber) 86 # viewpoint : (theta,phi) = (35*deg, 35*deg), 87 # zoom factor: 1.1 of the full screen size 88 # coordinate axes: 54 # viewpoint : (theta,phi) = (35*deg, 35*deg), 55 # zoom factor: 5.0 of the full screen size 56 # coordinate axes: 89 57 # x-axis:red, y-axis:green, z-axis:blue 90 58 # origin: (0,0,0), length: 500 91 # Scale: length = 10 cm, Orientation = z, color = red,59 # Scale: length = 10 cm, Orientation = z, color = red, 92 60 # placing_algorithm = manual, 93 61 # center = (-2.5 cm , -5 cm, 0 cm) 94 62 # 95 63 /vis/viewer/reset 96 /vis/viewer/zoom 1.164 /vis/viewer/zoom 5.0 97 65 /vis/viewer/set/viewpointThetaPhi 35 35 98 /vis/drawVolume Absorber66 /vis/drawVolume 99 67 /vis/scene/add/axes 0 0 0 500 mm 100 /vis/scene/add/text 0 0 0 mm 40 -100 -140 Absorber68 /vis/scene/add/text 0 0 0 mm 50 -100 -240 World 101 69 /vis/scene/add/scale 10 cm z 1 0 0 manual -2.5 -5 0 cm 70 #/vis/scene/add/scale 10 cm x 1 0 0 102 71 103 # "Flush the action of all the existing viewers. 104 # Note: You should execute these commands, e.g., 105 # when the current scene is modified. 72 # Bird's-eye view of a detector component (Absorber) 73 # 74 #/vis/viewer/reset 75 #/vis/viewer/zoom 1.1 76 #/vis/viewer/set/viewpointThetaPhi 35 35 77 #/vis/drawVolume Absorber 78 #/vis/scene/add/axes 0 0 0 500 mm 79 #/vis/scene/add/text 0 0 0 mm 40 -100 -140 Absorber 80 #/vis/scene/add/scale 10 cm z 1 0 0 manual -2.5 -5 0 cm 81 82 # Bird's-eye view of a detector component (Gap) 83 # 84 #/vis/viewer/reset 85 #/vis/viewer/zoom 1.1 86 #/vis/viewer/set/viewpointThetaPhi 35 35 87 #/vis/drawVolume Gap 88 #/vis/scene/add/axes 0 0 0 500 mm 89 #/vis/scene/add/text 0 0 0 mm 50 -100 -140 Gap 90 #/vis/scene/add/scale 10 cm z 1 0 0 manual -2.5 -5 0 cm 91 92 # Commands for setting up drawing of tracks ... 93 # 94 /vis/scene/add/trajectories smooth 95 /vis/modeling/trajectories/create/drawByCharge 96 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true 97 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2 98 /vis/scene/endOfEventAction accumulate 99 100 # Flush the action of all the existing viewers 101 # 106 102 /vis/scene/notifyHandlers 107 103 /vis/viewer/update 108 104 109 # FOR FUTURE UPDATION110 #/vis/viewer/flushAll111 112 # Bird's-eye view of a detector component (Gap)113 /vis/viewer/reset114 /vis/viewer/zoom 1.1115 /vis/viewer/set/viewpointThetaPhi 35 35116 /vis/drawVolume Gap117 /vis/scene/add/axes 0 0 0 500 mm118 /vis/scene/add/text 0 0 0 mm 50 -100 -140 Gap119 /vis/scene/add/scale 10 cm z 1 0 0 manual -2.5 -5 0 cm120 121 # "Flush the action of all the existing viewers.122 /vis/scene/notifyHandlers123 /vis/viewer/update124 125 # FOR FUTURE UPDATION126 #/vis/viewer/flushAll127 128 129 # Bird's-eye view of the whole detector components (world)130 # * The argument "world" of the command131 # "/vis/scene/add/volume" is omittable.132 # * "/vis/viewer/set/culling false" makes the invisible133 # world volume visible.134 # (The invisibility of the world volume is set135 # in ExN03DetectorConstruction.cc.)136 /vis/viewer/reset137 /vis/viewer/zoom 1.1138 /vis/viewer/set/viewpointThetaPhi 35 35139 /vis/viewer/set/culling global false140 /vis/drawVolume141 /vis/scene/add/axes 0 0 0 500 mm142 /vis/scene/add/text 0 0 0 mm 50 -100 -240 World143 /vis/scene/add/scale 10 cm x 1 0 0144 145 # "Flush the action of all the existing viewers.146 /vis/scene/notifyHandlers147 /vis/viewer/update148 149 # FOR FUTURE UPDATION150 #/vis/viewer/flushAll151 152 153 105 # Make the culling on for next visualization 154 # Note: You may also use "/vis/viewer/reset"155 # for this initialization.106 # Note: You may also use "/vis/viewer/reset" for this initialization 107 # 156 108 /vis/viewer/set/culling global true -
trunk/examples/novice/N03/visTutor/exN03Vis15.mac
r1234 r1302 1 1 ####################################################################### 2 # MACRO FILE NAME: exN03Vis1 2.mac#2 # MACRO FILE NAME: exN03Vis15.mac # 3 3 # # 4 4 # AUTHOR(S): Laurent Garnier # … … 8 8 # CONTENTS: A basic macro for demonstrating Inventor driver # 9 9 # # 10 # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis1 2.mac #10 # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis15.mac # 11 11 # # 12 12 # REQUIRED PLATFORMS & SOFTWARES: Unix, Motif, X-window, OpenGL ,Qt # … … 15 15 # (See geant4/source/visualization/README for details.) # 16 16 # # 17 # % setenv G4VIS_BUILD_OGLQT 17 # % setenv G4VIS_BUILD_OGLQT 1 # 18 18 # # 19 19 # ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: # 20 20 # (See geant4/source/visualization/README for details.) # 21 21 # # 22 # % setenv G4VIS_USE_OGLQT 1#22 # % setenv G4VIS_USE_OGLQT 1 # 23 23 # # 24 24 # ADDITIONAL NOTES: # … … 27 27 28 28 # Create "scene-0" 29 # 29 30 /vis/scene/create 30 31 31 32 # Invoke the Qt driver 33 # 32 34 /vis/sceneHandler/create OGLSQt 33 35 /vis/viewer/create 34 36 35 37 # Add the world volume to the current scene 38 # 36 39 /vis/scene/add/volume 40 37 41 #/vis/scene/add/volume Layer 38 42 # Name of the absorbers = name of their material (Lead) ! … … 40 44 # Name of the gaps = name of their material (liquidArgon) ! 41 45 #/vis/scene/add/volume liquidArgon 42 #/vis/scene/add/trajectories 46 43 47 /tracking/storeTrajectory 1 44 48 45 49 # Bird-eye view of events 50 # 46 51 /vis/viewer/reset 47 52 /vis/viewer/set/viewpointThetaPhi 45 45 48 53 49 54 /vis/scene/notifyHandlers 55 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 50 61 51 62 /control/verbose 2 -
trunk/examples/novice/N03/visTutor/exN03Vis5.mac
r1209 r1302 8 8 # CONTENTS: A basic macro for demonstrating Inventor driver # 9 9 # # 10 # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis 6.mac #10 # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis5.mac # 11 11 # # 12 12 # REQUIRED PLATFORMS & SOFTWARES: Unix, Motif, X-window, OpenGL, # -
trunk/examples/novice/N03/visTutor/exN03Vis6.mac
r1209 r1302 15 15 # USAGE: % gmake visclean # 16 16 # % $G4BINDIR/exampleN03 # 17 # Idle> /control/execute visTutor/exN03Vis 7.mac #17 # Idle> /control/execute visTutor/exN03Vis6.mac # 18 18 # # 19 19 # REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, # … … 28 28 # * Unnecessary # 29 29 # # 30 # RECOMMENDED ENVIRONMENTAL VARIABLES FOR VISUALIZATION:#30 # OPTIONAL ENVIRONMENTAL VARIABLES FOR VISUALIZATION: # 31 31 # # 32 # % setenv G4VRMLFILE_VIEWER vrmlview # 33 # ( The default value is "NONE".) # 34 # # 35 # ADDITIONAL NOTES: # 36 # The VRML-file viewer "vrmlview" is obtainable from the following # 37 # Web site: # 38 # http://www.sim.no/downloads.html # 32 # % setenv G4VRMLFILE_VIEWER vrmlview # 33 # ( Example for 'vrmlview'. The default value is "NONE".) # 39 34 # # 40 35 ####################################################################### -
trunk/examples/novice/N03/visTutor/exN03Vis7.mac
r1209 r1302 13 13 # % make visclean # 14 14 # % $G4BINDIR/exampleN03 # 15 # Idle> /control/execute visTutor/exN03Vis 8.mac #15 # Idle> /control/execute visTutor/exN03Vis7.mac # 16 16 # Idle> exit # 17 17 # % gv g4_00.eps & # … … 31 31 # # 32 32 # * Unnecessary # 33 # #34 # ADDITIONAL NOTES: #35 33 # # 36 34 ####################################################################### -
trunk/examples/novice/N03/visTutor/exN03Vis8.mac
r1209 r1302 19 19 # % gmake visclean # 20 20 # % $G4BINDIR/exampleN03 # 21 # Idle> /control/execute visTutor/exN03Vis 9.mac #21 # Idle> /control/execute visTutor/exN03Vis8.mac # 22 22 # Idle> exit # 23 23 # % gv g4_00.eps # -
trunk/examples/novice/N03/visTutor/exN03Vis9.mac
r474 r1302 2 2 # MACRO FILE NAME: exN03Vis9.mac # 3 3 # # 4 # AUTHOR(S): Guy Barrand 4 # AUTHOR(S): Guy Barrand # 5 5 # # 6 6 # DATE: # 7 # Ap pril 08, 2004#7 # April 08, 2004 # 8 8 # # 9 9 # CONTENTS: A simplest macro to demonstrate visualization of # -
trunk/examples/novice/N03/visTutor/gui.mac
r1209 r1302 33 33 /gui/addButton vis Vis3(OGLSX) "/control/execute visTutor/exN03Vis3.mac" 34 34 /gui/addButton vis Vis4(OGLIX) "/control/execute visTutor/exN03Vis4.mac" 35 /gui/addButton vis Vis15(OGLIQt) "/control/execute visTutor/exN03Vis15.mac"36 /gui/addButton vis Vis14(OGLSQt) "/control/execute visTutor/exN03Vis14.mac"37 35 /gui/addButton vis Vis5(OIX) "/control/execute visTutor/exN03Vis5.mac" 38 36 /gui/addButton vis Vis6(VRML2FILE) "/control/execute visTutor/exN03Vis6.mac" … … 42 40 /gui/addButton vis Vis10(OIWin32) "/control/execute visTutor/exN03Vis10.mac" 43 41 /gui/addButton vis Vis11(OGLSXm) "/control/execute visTutor/exN03Vis11.mac" 42 /gui/addButton vis Vis12(OGLSX) "/control/execute visTutor/exN03Vis12.mac" 43 /gui/addButton vis Vis13(OGLSX) "/control/execute visTutor/exN03Vis13.mac" 44 /gui/addButton vis Vis14(OGLSQt) "/control/execute visTutor/exN03Vis14.mac" 45 /gui/addButton vis Vis15(OGLSQt) "/control/execute visTutor/exN03Vis15.mac" 44 46 # 45 47 # Viewer menu :
Note: See TracChangeset
for help on using the changeset viewer.