Loading...
Searching...
No Matches
vis.mac
Go to the documentation of this file.
1# Macro file for the visualization setting in the initialization phase
2# of the B1 example when running in interactive mode
3#
4
5# Open a viewer
6/vis/open
7# This opens the default viewer - see examples/basic/B1/vis.mac for a
8# more comprehensive overview of options. Also the documentation.
9#
10# Disable auto refresh and quieten vis messages whilst scene and
11# trajectories are established:
12/vis/viewer/set/autoRefresh false
13/vis/verbose errors
14#
15# Draw geometry:
16/vis/drawVolume
17#
18# Specify view angle:
19/vis/viewer/set/viewpointVector -1 0 0
20/vis/viewer/set/lightsVector -1 0 0
21#
22# Specify style (surface, wireframe, auxiliary edges,...)
23/vis/viewer/set/style wireframe
24/vis/viewer/set/auxiliaryEdge true
25/vis/viewer/set/lineSegmentsPerCircle 100
26#
27# Draw smooth trajectories at end of event, showing trajectory points
28# as markers 2 pixels wide:
29/vis/scene/add/trajectories smooth
30/vis/modeling/trajectories/create/drawByCharge
31/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
32/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
33# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
34#
35# Draw hits at end of event:
36#/vis/scene/add/hits
37#
38# To draw only gammas:
39#/vis/filtering/trajectories/create/particleFilter
40#/vis/filtering/trajectories/particleFilter-0/add gamma
41#
42# To invert the above, drawing all particles except gammas,
43# keep the above two lines but also add:
44#/vis/filtering/trajectories/particleFilter-0/invert true
45#
46# Many other options are available with /vis/modeling and /vis/filtering.
47# For example, to select colour by particle ID:
48#/vis/modeling/trajectories/create/drawByParticleID
49#/vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts true
50# To select or override default colours (note: e+ is blue by default):
51#/vis/modeling/trajectories/list
52#/vis/modeling/trajectories/drawByParticleID-0/set e+ yellow
53#
54# To superimpose all of the events from a given run:
55/vis/scene/endOfEventAction accumulate
56#
57# Decorations
58# Name
59/vis/set/textColour green
60/vis/set/textLayout right
61/vis/scene/add/text2D 0.9 -.9 24 ! ! exampleB1
62# or, if your system does not support right-adjustment
63#/vis/scene/add/text2D 0 -.9 24 ! ! exampleB1
64/vis/set/textLayout # Revert to normal (left adjusted) layout
65/vis/set/textColour # Revert to default text colour (blue)
66#
67# Axes, scale, etc.
68/vis/scene/add/scale # Simple scale line
69/vis/scene/add/axes # Simple axes: x=red, y=green, z=blue.
70/vis/scene/add/eventID # Drawn at end of event
71/vis/scene/add/date # Date stamp
72/vis/scene/add/logo2D # Simple logo
73#/vis/scene/add/logo # 3D logo
74/vis/scene/add/userAction # User action(s), if any
75#
76# Frame
77/vis/set/colour red
78/vis/set/lineWidth 2
79/vis/scene/add/frame # Simple frame around the view
80/vis/set/colour # Revert to default colour (white)
81/vis/set/lineWidth # Revert to default line width (1.)
82#
83# Attach text to one edge of Shape1, with a small, fixed offset
84/vis/scene/add/text 0 6 -4 cm 18 4 4 Shape1
85# Attach text to one corner of Shape2, with a small, fixed offset
86/vis/scene/add/text 6 7 10 cm 18 4 4 Shape2
87#
88# To get nice view
89/vis/geometry/set/visibility World 0 false
90/vis/geometry/set/visibility Envelope 0 false
91/vis/viewer/set/style surface
92/vis/viewer/set/hiddenMarker true
93/vis/viewer/set/viewpointThetaPhi 120 150
94#
95# Re-establish auto refreshing and verbosity:
96/vis/viewer/set/autoRefresh true
97/vis/verbose warnings
98#
99# For file-based drivers, use this to create an empty detector view:
100#/vis/viewer/flush

Applications | User Support | Publications | Collaboration