Changeset 1313 for trunk/examples/novice/N07/vis.mac
- Timestamp:
- Jun 14, 2010, 3:54:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/novice/N07/vis.mac
r1191 r1313 1 # Use this open statement to create an OpenGL view: 2 /vis/open OGL 600x600-0+0 1 3 # 2 # create empty scene 4 # Use this open statement to create a .prim file suitable for 5 # viewing in DAWN: 6 #/vis/open DAWNFILE 3 7 # 4 /vis/scene/create 8 # Use this open statement to create a .heprep file suitable for 9 # viewing in HepRApp: 10 #/vis/open HepRepFile 5 11 # 6 # Create a scene handler for a specific graphics system 7 # (Edit the next line(s) to choose another graphic system) 12 # Use this open statement to create a .wrl file suitable for 13 # viewing in a VRML viewer: 14 #/vis/open VRML2FILE 8 15 # 9 /vis/open OGLIX 16 # Disable auto refresh and quieten vis messages whilst scene and 17 # trajectories are established: 18 /vis/viewer/set/autoRefresh false 19 /vis/verbose errors 10 20 # 11 # draw scene 21 # Draw geometry: 22 /vis/drawVolume worlds 12 23 # 13 /vis/drawVolume worlds14 /vis/viewer/set/viewpointThetaPhi 105 165 deg15 24 # Set specific colur for identification 16 25 /vis/geometry/set/colour Calor-AP_LayerLog ! yellow 17 26 /vis/geometry/set/colour Calor-BP_LayerLog ! yellow 18 27 /vis/geometry/set/colour Calor-CP_LayerLog ! yellow 28 # 29 # Specify view angle: 30 /vis/viewer/set/viewpointThetaPhi 105 165 deg 31 # 32 # Specify zoom value: 19 33 /vis/viewer/zoom 3.2 20 /vis/viewer/flush21 34 # 22 # for drawing the tracks 23 # (if too many tracks cause core dump => storeTrajectory 0) 24 /tracking/storeTrajectory 1 35 # Specify style (surface or wireframe): 36 #/vis/viewer/set/style wireframe 37 # 38 # Draw coordinate axes: 39 #/vis/scene/add/axes 0 0 0 1 m 40 # 41 # Draw smooth trajectories at end of event, showing trajectory points 42 # as markers 2 pixels wide: 43 /vis/scene/add/trajectories smooth 44 /vis/modeling/trajectories/create/drawByCharge 45 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true 46 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2 47 # (if too many tracks cause core dump => /tracking/storeTrajectory 0) 48 # 49 # Draw hits at end of event: 50 #/vis/scene/add/hits 51 # 52 # To draw only gammas: 53 #/vis/filtering/trajectories/create/particleFilter 54 #/vis/filtering/trajectories/particleFilter-0/add gamma 55 # 56 # To invert the above, drawing all particles except gammas, 57 # keep the above two lines but also add: 58 #/vis/filtering/trajectories/particleFilter-0/invert true 59 # 60 # Many other options are available with /vis/modeling and /vis/filtering. 61 # For example, to select colour by particle ID: 62 #/vis/modeling/trajectories/create/drawByParticleID 63 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue 64 # 65 # To superimpose all of the events from a given run: 25 66 /vis/scene/endOfEventAction accumulate 26 /vis/scene/add/trajectories 27 67 # 68 # Re-establish auto refreshing and verbosity: 69 /vis/viewer/set/autoRefresh true 70 /vis/verbose warnings 71 # 72 # For file-based drivers, use this to create an empty detector view: 73 #/vis/viewer/flush
Note: See TracChangeset
for help on using the changeset viewer.