Back to home page

EIC code displayed by LXR

 
 

    


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

0001 /control/verbose 2
0002 
0003 # Open a viewer
0004 /vis/open
0005 # This opens the default viewer - see examples/basic/B1/vis.mac for a
0006 # more comprehensive overview of options. Also the documentation.
0007 
0008 # Disable auto refresh and quieten vis messages whilst scene and
0009 # trajectories are established:
0010 /vis/viewer/set/autoRefresh false
0011 /vis/verbose errors
0012 
0013 # The above creates a scene handler and a viewer but needs a scene.
0014 # (Normally this would be /vis/drawVolume but we need to specialise.)
0015 /vis/scene/create
0016 /vis/scene/add/userAction
0017 /vis/sceneHandler/attach
0018 
0019 # Decorations
0020 # Axes, scale, etc.
0021 /vis/scene/add/scale   # Simple scale line
0022 /vis/scene/add/axes   50 0 -60 20 cm # Simple axes: x=red, y=green, z=blue.
0023 /vis/scene/add/eventID # Drawn at end of event
0024 /vis/scene/add/date    # Date stamp
0025 #
0026 # Frame
0027 /vis/set/colour red
0028 /vis/set/lineWidth 2
0029 /vis/scene/add/frame   # Simple frame around the view
0030 #/vis/set/colour        # Revert to default colour (white)
0031 /vis/set/lineWidth     # Revert to default line width (1.)
0032 
0033 # To get nice view
0034 # Make the "World" box invisible
0035 /vis/geometry/set/visibility worldLogical 0 false
0036 /vis/geometry/set/visibility phantomLogical 0 false
0037 
0038 # View parameters
0039 /vis/viewer/set/specialMeshRendering
0040 /vis/viewer/set/specialMeshRenderingOption surfaces
0041 /vis/viewer/set/style surface
0042 /vis/viewer/set/hiddenMarker true
0043 /vis/viewer/set/background 1 1 1 1 
0044 #
0045 # Specify view angle:
0046 /vis/viewer/set/upVector 0 0 1
0047 /vis/viewer/set/lightsVector -1 0 0
0048 /vis/viewer/zoomTo 2
0049 #/vis/viewer/set/viewpointVector -0.5 -1 0.3
0050 /vis/viewer/set/viewpointVector 0 -1 0
0051 /vis/viewer/set/targetPoint 0 0 0 mm
0052 #
0053 # Re-establish auto refreshing and verbosity:
0054 /vis/viewer/set/autoRefresh true
0055 /vis/verbose warnings