Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/advanced/ICRP145_HumanPhantoms/vis.mac is written in an unsupported language. File is not indexed.

0001 # Macro file for the visualisation setting in the initialization phase 
0002 # when running in interactive mode
0003 #
0004 
0005 # Open a viewer
0006 /vis/open
0007 # This opens the default viewer - see examples/basic/B1/vis.mac for a
0008 # more comprehensive overview of options. Also the documentation.
0009 #
0010 ## To create an OpenGL view:
0011 #/vis/open OGL 800x600-0+0
0012 
0013 #
0014 # Disable auto refresh and quieten vis messages whilst scene and
0015 # trajectories are established:
0016 /vis/viewer/set/autoRefresh false
0017 /vis/verbose errors
0018 #
0019 # Draw geometry:
0020 /vis/viewer/set/specialMeshRendering
0021 /vis/viewer/set/specialMeshRenderingOption surfaces
0022 /vis/drawVolume
0023 #
0024 #
0025 # Specify style (surface, wireframe, auxiliary edges,...)
0026 #/vis/viewer/set/style wireframe
0027 /vis/viewer/set/auxiliaryEdge true
0028 /vis/viewer/set/lineSegmentsPerCircle 100
0029 #
0030 # Draw smooth trajectories at end of event, showing trajectory points
0031 # as markers 2 pixels wide:
0032 /vis/scene/add/trajectories smooth
0033 /vis/modeling/trajectories/create/drawByCharge
0034 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0035 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0036 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0037 #
0038 # Draw hits at end of event:
0039 #/vis/scene/add/hits
0040 #
0041 # To draw only gammas:
0042 #/vis/filtering/trajectories/create/particleFilter
0043 #/vis/filtering/trajectories/particleFilter-0/add gamma
0044 #
0045 # To invert the above, drawing all particles except gammas,
0046 # keep the above two lines but also add:
0047 #/vis/filtering/trajectories/particleFilter-0/invert true
0048 #
0049 # Many other options are available with /vis/modeling and /vis/filtering.
0050 # For example, to select colour by particle ID:
0051 #/vis/modeling/trajectories/create/drawByParticleID
0052 #/vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts true
0053 # To select or override default colours (note: e+ is blue by default):
0054 #/vis/modeling/trajectories/list
0055 #/vis/modeling/trajectories/drawByParticleID-0/set e+ yellow
0056 #
0057 # To superimpose all of the events from a given run:
0058 /vis/scene/endOfEventAction accumulate
0059 #
0060 # Decorations
0061 #
0062 # Axes, scale, etc.
0063 /vis/scene/add/scale   # Simple scale line
0064 /vis/scene/add/axes   50 0 -60 20 cm # Simple axes: x=red, y=green, z=blue.
0065 /vis/scene/add/eventID # Drawn at end of event
0066 /vis/scene/add/date    # Date stamp
0067 #
0068 # Frame
0069 /vis/set/colour red
0070 /vis/set/lineWidth 2
0071 /vis/scene/add/frame   # Simple frame around the view
0072 #/vis/set/colour        # Revert to default colour (white)
0073 /vis/set/lineWidth     # Revert to default line width (1.)
0074 #
0075 # To get nice view
0076 # Make the "World" box invisible
0077 /vis/geometry/set/visibility worldLogical 0 false
0078 /vis/geometry/set/visibility phantomLogical 0 false
0079 /vis/viewer/set/style surface
0080 /vis/viewer/set/hiddenMarker true
0081 /vis/viewer/set/background 1 1 1 1 
0082 #
0083 # Specify view angle:
0084 /vis/viewer/set/upVector 0 0 1
0085 /vis/viewer/set/lightsVector -1 0 0
0086 /vis/viewer/zoomTo 5
0087 #/vis/viewer/set/viewpointVector -0.5 -1 0.3
0088 /vis/viewer/set/viewpointVector 0 -1 0
0089 /vis/viewer/set/targetPoint 0 0 0 mm
0090 #
0091 # Re-establish auto refreshing and verbosity:
0092 /vis/viewer/set/autoRefresh true
0093 /vis/verbose warnings
0094 #
0095