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] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /examples/extended/medical/dna/chem2/vis.mac (Version 11.3.0) and /examples/extended/medical/dna/chem2/vis.mac (Version 10.3.p1)


  1 # Macro file for the visualization setting in       1 # Macro file for the visualization setting in the initialization phase
  2 # of the B1 example when running in interactiv      2 # of the B1 example when running in interactive mode
  3 #                                                   3 #
  4                                                     4 
  5 # Open a viewer                                <<   5 # Use these open statements to open selected visualization
  6 /vis/open                                      << 
  7 # This opens the default viewer - see examples << 
  8 # more comprehensive overview of options. Also << 
  9 #                                                   6 #
 10 ## To create an OpenGL viewer:                 <<   7 # Use this open statement to create an OpenGL view:
 11 ##/vis/open OGL 800x600-0+0 #600x600-0+0       <<   8 #/vis/open OGL 800x600-0+0 #600x600-0+0
 12 ## This is enough for a 2.5 keV electron       <<   9 # This is enough for a 2.5 keV electron
 13 #/vis/ogl/flushAt NthPrimitive 1000000         <<  10 /vis/ogl/set/displayListLimit 10000000
                                                   >>  11 #
                                                   >>  12 # Use this open statement to create an OpenInventor view:
                                                   >>  13 #/vis/open OI
                                                   >>  14 #
                                                   >>  15 # Use this open statement to create a .prim file suitable for
                                                   >>  16 # viewing in DAWN:
                                                   >>  17 #/vis/open DAWNFILE
                                                   >>  18 #
                                                   >>  19 # Use this open statement to create a .heprep file suitable for
                                                   >>  20 # viewing in HepRApp:
                                                   >>  21 #/vis/open HepRepFile
                                                   >>  22 #
                                                   >>  23 # Use this open statement to create a .wrl file suitable for
                                                   >>  24 # viewing in a VRML viewer:
                                                   >>  25 #/vis/open VRML2FILE
 14 #                                                  26 #
 15 # Disable auto refresh and quieten vis message     27 # Disable auto refresh and quieten vis messages whilst scene and
 16 # trajectories are established:                    28 # trajectories are established:
 17 /vis/viewer/set/autoRefresh false                  29 /vis/viewer/set/autoRefresh false
 18 /vis/verbose errors                                30 /vis/verbose errors
 19 #                                                  31 #
 20 # Draw geometry:                                   32 # Draw geometry:
 21 /vis/drawVolume                                    33 /vis/drawVolume
 22 #                                                  34 #
 23 # Specify view angle:                              35 # Specify view angle:
 24 /vis/viewer/set/viewpointVector -1 0 0             36 /vis/viewer/set/viewpointVector -1 0 0
 25 /vis/viewer/set/lightsVector -1 5 -30              37 /vis/viewer/set/lightsVector -1 5 -30
 26 /vis/viewer/zoomTo 1.7                             38 /vis/viewer/zoomTo 1.7
 27 #                                                  39 #
 28 # Specify style (surface, wireframe, auxiliary     40 # Specify style (surface, wireframe, auxiliary edges,...)
 29 /vis/viewer/set/style wireframe                    41 /vis/viewer/set/style wireframe
 30 /vis/viewer/set/auxiliaryEdge true                 42 /vis/viewer/set/auxiliaryEdge true
 31 /vis/viewer/set/lineSegmentsPerCircle 100          43 /vis/viewer/set/lineSegmentsPerCircle 100
 32 #                                                  44 #
 33 # Draw smooth trajectories at end of event, sh     45 # Draw smooth trajectories at end of event, showing trajectory points
 34 # as markers 2 pixels wide:                        46 # as markers 2 pixels wide:
 35 /vis/scene/add/trajectories rich #smooth           47 /vis/scene/add/trajectories rich #smooth
 36 #/vis/modeling/trajectories/create/drawByCharg     48 #/vis/modeling/trajectories/create/drawByCharge
 37 #/vis/modeling/trajectories/drawByCharge-0/def     49 #/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
 38 #/vis/modeling/trajectories/drawByCharge-0/def     50 #/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
 39 #/vis/modeling/trajectories/drawByCharge-0/def     51 #/vis/modeling/trajectories/drawByCharge-0/default/setTimeSliceInterval 1 s
 40 # (if too many tracks cause core dump => /trac     52 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
 41                                                    53 
 42 /vis/modeling/trajectories/create/drawByPartic     54 /vis/modeling/trajectories/create/drawByParticleID
 43                                                    55 
 44 /vis/modeling/trajectories/drawByParticleID-0/     56 /vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts false
 45 /vis/modeling/trajectories/drawByParticleID-0/     57 /vis/modeling/trajectories/drawByParticleID-0/default/setStepPtsSize 1
 46                                                    58 
 47 /vis/modeling/trajectories/drawByParticleID-0/     59 /vis/modeling/trajectories/drawByParticleID-0/set e- red
 48 /vis/modeling/trajectories/drawByParticleID-0/     60 /vis/modeling/trajectories/drawByParticleID-0/set proton green
 49 /vis/modeling/trajectories/drawByParticleID-0/     61 /vis/modeling/trajectories/drawByParticleID-0/set alpha green 
 50 /vis/modeling/trajectories/drawByParticleID-0/     62 /vis/modeling/trajectories/drawByParticleID-0/set H green
 51                                                    63 
 52 /vis/modeling/trajectories/drawByParticleID-0/     64 /vis/modeling/trajectories/drawByParticleID-0/set OH magenta
 53 /vis/modeling/trajectories/drawByParticleID-0/     65 /vis/modeling/trajectories/drawByParticleID-0/set H3O yellow
 54 /vis/modeling/trajectories/drawByParticleID-0/     66 /vis/modeling/trajectories/drawByParticleID-0/set e_aq blue
 55 /vis/modeling/trajectories/drawByParticleID-0/     67 /vis/modeling/trajectories/drawByParticleID-0/set H2O2 green
 56 /vis/modeling/trajectories/drawByParticleID-0/     68 /vis/modeling/trajectories/drawByParticleID-0/set H white
 57 /vis/modeling/trajectories/drawByParticleID-0/     69 /vis/modeling/trajectories/drawByParticleID-0/set H_2 white
 58                                                    70 
 59 /vis/modeling/trajectories/drawByParticleID-0/     71 /vis/modeling/trajectories/drawByParticleID-0/default/setTimeSliceInterval 0.1 ns
 60                                                    72 
 61 #/vis/modeling/trajectories/select drawByCharg     73 #/vis/modeling/trajectories/select drawByCharge-0
 62                                                    74 
 63 # Use to draw just selected types of radicals      75 # Use to draw just selected types of radicals
 64 #/vis/filtering/trajectories/create/particleFi     76 #/vis/filtering/trajectories/create/particleFilter
 65 #/vis/filtering/trajectories/particleFilter-0/     77 #/vis/filtering/trajectories/particleFilter-0/add e-
 66 #/vis/filtering/trajectories/particleFilter-0/     78 #/vis/filtering/trajectories/particleFilter-0/add e_aq
 67                                                    79 
 68 # (if too many tracks cause core dump => /trac     80 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
 69 #                                                  81 #
 70 # Draw hits at end of event:                       82 # Draw hits at end of event:
 71 #/vis/scene/add/hits                               83 #/vis/scene/add/hits
 72 #                                                  84 #
 73 # To draw only gammas:                             85 # To draw only gammas:
 74 #/vis/filtering/trajectories/create/particleFi     86 #/vis/filtering/trajectories/create/particleFilter
 75 #/vis/filtering/trajectories/particleFilter-0/     87 #/vis/filtering/trajectories/particleFilter-0/add gamma
 76 #                                                  88 #
 77 # To invert the above, drawing all particles e     89 # To invert the above, drawing all particles except gammas,
 78 # keep the above two lines but also add:           90 # keep the above two lines but also add:
 79 #/vis/filtering/trajectories/particleFilter-0/     91 #/vis/filtering/trajectories/particleFilter-0/invert true
 80 #                                                  92 #
 81 # Many other options are available with /vis/m     93 # Many other options are available with /vis/modeling and /vis/filtering.
 82 # For example, to select colour by particle ID     94 # For example, to select colour by particle ID:
 83 #/vis/modeling/trajectories/create/drawByParti     95 #/vis/modeling/trajectories/create/drawByParticleID
 84 #/vis/modeling/trajectories/drawByParticleID-0     96 #/vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts true
 85 # To select or override default colours (note:     97 # To select or override default colours (note: e+ is blue by default):
 86 #/vis/modeling/trajectories/list                   98 #/vis/modeling/trajectories/list
 87 #/vis/modeling/trajectories/drawByParticleID-0     99 #/vis/modeling/trajectories/drawByParticleID-0/set e+ yellow
 88 #                                                 100 #
 89 # To superimpose all of the events from a give    101 # To superimpose all of the events from a given run:
 90 /vis/scene/endOfEventAction accumulate            102 /vis/scene/endOfEventAction accumulate
 91 #                                                 103 #
 92 # Decorations                                     104 # Decorations
 93 # Name                                            105 # Name
 94 /vis/set/textColour green                         106 /vis/set/textColour green
 95 /vis/set/textLayout right                         107 /vis/set/textLayout right
 96 # or, if your system does not support right-ad    108 # or, if your system does not support right-adjustment
 97 #/vis/scene/add/text2D 0.9 -0.9 12 ! ! chem3      109 #/vis/scene/add/text2D 0.9 -0.9 12 ! ! chem3
 98 /vis/set/textLayout    # Revert to normal (lef    110 /vis/set/textLayout    # Revert to normal (left adjusted) layout
 99 /vis/set/textColour    # Revert to default tex    111 /vis/set/textColour    # Revert to default text colour (blue)
100 #                                                 112 #
101 # Axes, scale, etc.                               113 # Axes, scale, etc.
102 #/vis/scene/add/scale   # Simple scale line       114 #/vis/scene/add/scale   # Simple scale line
103 #/vis/scene/add/eventID # Drawn at end of even    115 #/vis/scene/add/eventID # Drawn at end of event
104 #/vis/scene/add/date    # Date stamp              116 #/vis/scene/add/date    # Date stamp
105 #/vis/scene/add/logo2D  # Simple logo             117 #/vis/scene/add/logo2D  # Simple logo
106 #/vis/scene/add/logo    # 3D logo                 118 #/vis/scene/add/logo    # 3D logo
107 #/vis/scene/add/axes -1 -1 -1 1 micrometer        119 #/vis/scene/add/axes -1 -1 -1 1 micrometer
108 #/vis/scene/add/axes 0 0 0 1 nm   # Simple axe    120 #/vis/scene/add/axes 0 0 0 1 nm   # Simple axes: x=red, y=green, z=blue. # MODIF ------------------------
109 #                                                 121 #
110 # Frame                                           122 # Frame
111 #/vis/set/colour red                              123 #/vis/set/colour red
112 #/vis/set/lineWidth 2                             124 #/vis/set/lineWidth 2
113 #/vis/scene/add/frame   # Simple frame arond t    125 #/vis/scene/add/frame   # Simple frame arond the view
114 /vis/set/colour        # Revert to default col    126 /vis/set/colour        # Revert to default colour (white)
115 /vis/set/lineWidth     # Revert to default lin    127 /vis/set/lineWidth     # Revert to default line width (1.)
116 #                                                 128 #
117 # Attach text to one edge of Shape1, with a sm    129 # Attach text to one edge of Shape1, with a small, fixed offset
118 #/vis/scene/add/text 0 6 -4 cm 18 4 4 Shape1      130 #/vis/scene/add/text 0 6 -4 cm 18 4 4 Shape1
119 # Attach text to one corner of Shape2, with a     131 # Attach text to one corner of Shape2, with a small, fixed offset
120 #/vis/scene/add/text 6 7 10 cm 18 4 4 Shape2      132 #/vis/scene/add/text 6 7 10 cm 18 4 4 Shape2
121 #                                                 133 #
122 # To get nice view                                134 # To get nice view
123 #/vis/geometry/set/visibility World 0 true #ch    135 #/vis/geometry/set/visibility World 0 true #changement
124 #/vis/geometry/set/visibility Envelope 0 false    136 #/vis/geometry/set/visibility Envelope 0 false #changement
125 #/vis/viewer/set/style wireframe #surface         137 #/vis/viewer/set/style wireframe #surface
126 #/vis/viewer/set/hiddenMarker true                138 #/vis/viewer/set/hiddenMarker true
127 #/vis/viewer/set/viewpointThetaPhi 95 170         139 #/vis/viewer/set/viewpointThetaPhi 95 170
128 /vis/viewer/set/viewpointThetaPhi -70 0           140 /vis/viewer/set/viewpointThetaPhi -70 0
129                                                   141 
130 /tracking/storeTrajectory 3                       142 /tracking/storeTrajectory 3
131                                                   143 
132 #                                                 144 #
133 # Re-establish auto refreshing and verbosity:     145 # Re-establish auto refreshing and verbosity:
134 /vis/viewer/set/autoRefresh true                  146 /vis/viewer/set/autoRefresh true
135 /vis/verbose warnings                             147 /vis/verbose warnings
136 #                                                 148 #
137 # For file-based drivers, use this to create a    149 # For file-based drivers, use this to create an empty detector view:
138 #/vis/viewer/flush                                150 #/vis/viewer/flush
139                                                   151 
140 /vis/set/textLayout centre                        152 /vis/set/textLayout centre
141 /vis/scene/add/scale                              153 /vis/scene/add/scale
142 /vis/viewer/set/targetPoint 20 10 0 nm            154 /vis/viewer/set/targetPoint 20 10 0 nm
143 /vis/viewer/set/background white                  155 /vis/viewer/set/background white
144                                                   156