Warning, /geant4/examples/extended/medical/dna/wholeNuclearDNA/vis.mac is written in an unsupported language. File is not indexed.
0001 # Macro file for the visualization of the DNA geometry parts
0002 # Only volumes that whant to be seen must be placed in the DetectorConstruction
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 # Disable auto refresh and quieten vis messages whilst scene and
0011 # trajectories are established:
0012 /vis/viewer/set/autoRefresh false
0013 /vis/verbose errors
0014 #
0015 # Draw geometry:
0016 /vis/drawVolume
0017 #
0018 # Specify view angle:
0019 #/vis/viewer/set/viewpointVector -1 0 0
0020 #/vis/viewer/set/lightsVector -1 0 0
0021 #
0022 # Specify style (surface, wireframe, auxiliary edges,...)
0023 /vis/viewer/set/style wireframe
0024 /vis/viewer/set/auxiliaryEdge true
0025 /vis/viewer/set/lineSegmentsPerCircle 10
0026 #
0027 # Draw smooth trajectories at end of event, showing trajectory points
0028 # as markers 2 pixels wide:
0029 /vis/scene/add/trajectories smooth
0030 /vis/modeling/trajectories/create/drawByCharge
0031 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0032 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0033 # To superimpose all of the events from a given run:
0034 /vis/scene/endOfEventAction accumulate
0035 #
0036 # Decorations
0037 # Name
0038 /vis/set/textColour green
0039 /vis/set/textLayout right
0040 /vis/set/textLayout # Revert to normal (left adjusted) layout
0041 /vis/set/textColour # Revert to default text colour (blue)
0042 #
0043 # Axes, scale, etc.
0044 #/vis/scene/add/scale # Simple scale line
0045 #/vis/scene/add/axes 0 0 0 m # Simple axes: x=red, y=green, z=blue.
0046 #/vis/scene/add/eventID # Drawn at end of event
0047 #/vis/scene/add/date # Date stamp
0048 #/vis/scene/add/logo2D # Simple logo
0049 #/vis/scene/add/logo # 3D logo
0050 #
0051 # Frame
0052 /vis/set/colour red
0053 /vis/set/lineWidth 2
0054 /vis/scene/add/frame # Simple frame around the view
0055 /vis/set/colour # Revert to default colour (white)
0056 /vis/set/lineWidth # Revert to default line width (1.)
0057 #
0058 # Attach text to one edge of Shape1, with a small, fixed offset
0059 #/vis/scene/add/text 0 6 -4 cm 18 4 4 Shape1
0060 # Attach text to one corner of Shape2, with a small, fixed offset
0061 #/vis/scene/add/text 6 7 10 cm 18 4 4 Shape2
0062 #
0063 # To get nice view
0064 #/vis/geometry/set/visibility logicWorld 0 false
0065 #/vis/geometry/set/visibility Envelope 0 true
0066 /vis/viewer/set/style surface
0067 /vis/viewer/set/hiddenMarker true
0068 #/vis/viewer/set/viewpointThetaPhi 120 150
0069
0070
0071 #
0072 # Re-establish auto refreshing and verbosity:
0073 /vis/viewer/set/autoRefresh true
0074 /vis/verbose warnings
0075 #
0076 # For file-based drivers, use this to create an empty detector view:
0077 #/vis/viewer/flush