Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/extended/visualization/standalone/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/standalone
0006                ------------------------------------------
0007 
0008 This example illustrates how one might use the Geant4 Visualization
0009 System as a "standalone" graphics library and viewer, i.e, without
0010 the overhead of the run manager and all the actions and physics.
0011 
0012 It makes use of the "user action" feature of the Geant4 vis manager - for
0013 a simple example see examples/extended/visualization/userVisAction.  You
0014 have to encapsulate your drawing in a vis action so that the vis manager
0015 can call it and re-call it as appropriate.
0016 
0017 1) Define a G4VUserVisAction that implements a Draw method.  Two
0018    examples are provided:
0019    - StandaloneVisAction:
0020      - a simple box;
0021      - a Boolean solid;
0022      - an alternative way of drawing a solid by obtaining the
0023        polyhedral representation (included for interest, not as a
0024        recommendation).
0025    - DrawGeometryVisAction:
0026      - Shows how to visualise your geometry alone, i.e., without the
0027        run manager and the physics stuff.
0028       
0029 2) In the main program, the vis actions must be instantiated and
0030    registered with the visualization manager. You may (optionally)
0031    specify an extent to assist the viewers to locate the objects.
0032 
0033 3) To visualise, you need: 
0034    - /vis/scene/add/userAction
0035 
0036 4) Use the usual Geant4 vis commands to create a scene
0037    and view (including the above command) - see standalone.mac.
0038 
0039 Note: The system needs an "extent" in order to point the virtual
0040 camera and adjust its field of view, etc. This defines the "standard
0041 view".  You may zoom, etc., from this standard view.  The extent may
0042 be specified as suggested above or by using /vis/scene/add/extent.
0043 
0044 
0045 John Allison
0046 30th December 2022