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.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Name Size       Last modified (GMT) Description
Back Parent directory       2024-12-05 15:16:16
Folder include/       2024-12-05 15:16:16
Folder src/       2024-12-05 15:16:16
File CMakeLists.txt 2093 bytes       2024-12-05 15:16:16
File GNUmakefile 364 bytes       2024-12-05 15:16:16
File History 2811 bytes       2024-12-05 15:16:16
File README 1915 bytes       2024-12-05 15:16:16
C++ file standalone.cc 3207 bytes       2024-12-05 15:16:16
File standalone.mac 569 bytes       2024-12-05 15:16:16

  1      =========================================================
  2      Geant4 - an Object-Oriented Toolkit for Simulation in HEP
  3      =========================================================
  4 
  5                examples/extended/visualization/standalone
  6                ------------------------------------------
  7 
  8 This example illustrates how one might use the Geant4 Visualization
  9 System as a "standalone" graphics library and viewer, i.e, without
 10 the overhead of the run manager and all the actions and physics.
 11 
 12 It makes use of the "user action" feature of the Geant4 vis manager - for
 13 a simple example see examples/extended/visualization/userVisAction.  You
 14 have to encapsulate your drawing in a vis action so that the vis manager
 15 can call it and re-call it as appropriate.
 16 
 17 1) Define a G4VUserVisAction that implements a Draw method.  Two
 18    examples are provided:
 19    - StandaloneVisAction:
 20      - a simple box;
 21      - a Boolean solid;
 22      - an alternative way of drawing a solid by obtaining the
 23        polyhedral representation (included for interest, not as a
 24        recommendation).
 25    - DrawGeometryVisAction:
 26      - Shows how to visualise your geometry alone, i.e., without the
 27        run manager and the physics stuff.
 28       
 29 2) In the main program, the vis actions must be instantiated and
 30    registered with the visualization manager. You may (optionally)
 31    specify an extent to assist the viewers to locate the objects.
 32 
 33 3) To visualise, you need: 
 34    - /vis/scene/add/userAction
 35 
 36 4) Use the usual Geant4 vis commands to create a scene
 37    and view (including the above command) - see standalone.mac.
 38 
 39 Note: The system needs an "extent" in order to point the virtual
 40 camera and adjust its field of view, etc. This defines the "standard
 41 view".  You may zoom, etc., from this standard view.  The extent may
 42 be specified as suggested above or by using /vis/scene/add/extent.
 43 
 44 
 45 John Allison
 46 30th December 2022