Warning, /geant4/examples/extended/visualization/userVisAction/README is written in an unsupported language. File is not indexed.
0001 =========================================================
0002 Geant4 - an Object-Oriented Toolkit for Simulation in HEP
0003 =========================================================
0004
0005 examples/extended/visualization/userVisAction
0006 ---------------------------------------------
0007
0008 This example illustrates how to create a "vis action".
0009
0010 The idea is that you register a vis action with the vis manager and
0011 activate it by a command /vis/scene/add/userAction. In this case, it
0012 draws a simple logo.
0013
0014 1) UVA_VisAction.cc defines a G4VUserVisAction and implements a Draw
0015 method.
0016
0017 2) In the main program, UVA_VisAction is instantiated and
0018 its pointer registerd with the visualization manager. You may
0019 optionally specify an extent at this point to assist the viewers to
0020 locate the objects.
0021
0022 3) To visualise, use the usual Geant4 vis commands to create a view
0023 and scene, then add the vis action to the scene with
0024 /vis/scene/add/userAction - 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