Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/extended/visualization/userVisAction/README.md is written in an unsupported language. File is not indexed.

0001 \page ExampleuserVisAction Example userVisAction
0002 
0003 examples/extended/visualization/userVisAction
0004 
0005 This example illustrates how to create a "vis action".
0006 
0007 The idea is that you register a vis action with the vis manager and
0008 activate it by a command `/vis/scene/add/userAction`.  In this case, it
0009 draws a simple logo.
0010 
0011 1) UVA_VisAction.cc defines a G4VUserVisAction and implements a Draw
0012    method.
0013       
0014 2) In the main() program, UVA_VisAction is instantiated and
0015    its pointer registerd with the visualization manager. You may
0016    optionally specify an extent at this point to assist the viewers to
0017    locate the objects.
0018 
0019 3) To visualise, use the usual Geant4 vis commands to create a view
0020    and scene, then add the vis action to the scene with
0021 ```
0022 /vis/scene/add/userAction 
0023 ```
0024    see vis.mac.
0025 
0026 Note: The system needs an "extent" in order to point the virtual
0027 camera and adjust its field of view, etc.  This defines the "standard
0028 view".  You may zoom, etc., from this standard view.  The extent may
0029 be specified as suggested above or by using /vis/scene/add/extent.
0030 
0031 
0032 John Allison
0033 27th November 2014