Line | |
---|
1 | ############################################################################ |
---|
2 | # Example for Bline visualisation |
---|
3 | ############################################################################ |
---|
4 | |
---|
5 | # User section |
---|
6 | # -- here the user should add commands for defining start position and time |
---|
7 | |
---|
8 | |
---|
9 | # BlineTracer tracking commands |
---|
10 | # |
---|
11 | /tracking/storeTrajectory 1 |
---|
12 | |
---|
13 | # Next computed bline will be stored as Polyline and Polymarker |
---|
14 | # |
---|
15 | /vis/blineTracer/stockLines true |
---|
16 | /vis/blineTracer/stockPoints true |
---|
17 | |
---|
18 | # Size of the marker |
---|
19 | # |
---|
20 | /vis/blineTracer/setPointSize 12. |
---|
21 | |
---|
22 | # Line will be in green |
---|
23 | # |
---|
24 | /vis/blineTracer/setColour 0 1 0 |
---|
25 | |
---|
26 | # For smooth trajectory choose a small max step length |
---|
27 | # |
---|
28 | /vis/blineTracer/setMaxStepLength 1. m |
---|
29 | |
---|
30 | # One line is computed |
---|
31 | # |
---|
32 | /vis/blineTracer/computeBline 1 |
---|
33 | |
---|
34 | # One possible initialisation of visualisation driver and scene-handler |
---|
35 | # |
---|
36 | /vis/sceneHandler/remove scene-handler-0 |
---|
37 | /vis/sceneHandler/create VRML2FILE scene-handler-0 3000 |
---|
38 | /vis/viewer/create |
---|
39 | /vis/viewer/set/viewpointThetaPhi 35. 35. deg |
---|
40 | /vis/viewer/zoom .35 |
---|
41 | /vis/viewer/set/style surface2 |
---|
42 | |
---|
43 | # Stored field lines are added to the visualisation scene |
---|
44 | # |
---|
45 | /vis/blineTracer/show |
---|
46 | |
---|
47 | # The computed field line is visualised with the detector component |
---|
48 | # |
---|
49 | /vis/viewer/flush |
---|
Note: See
TracBrowser
for help on using the repository browser.