Import Geant4 11.4.0 source tree
This commit is contained in:
@@ -1,46 +0,0 @@
|
||||
=========================================================
|
||||
Geant4 - an Object-Oriented Toolkit for Simulation in HEP
|
||||
=========================================================
|
||||
|
||||
examples/extended/visualization/standalone
|
||||
------------------------------------------
|
||||
|
||||
This example illustrates how one might use the Geant4 Visualization
|
||||
System as a "standalone" graphics library and viewer, i.e, without
|
||||
the overhead of the run manager and all the actions and physics.
|
||||
|
||||
It makes use of the "user action" feature of the Geant4 vis manager - for
|
||||
a simple example see examples/extended/visualization/userVisAction. You
|
||||
have to encapsulate your drawing in a vis action so that the vis manager
|
||||
can call it and re-call it as appropriate.
|
||||
|
||||
1) Define a G4VUserVisAction that implements a Draw method. Two
|
||||
examples are provided:
|
||||
- StandaloneVisAction:
|
||||
- a simple box;
|
||||
- a Boolean solid;
|
||||
- an alternative way of drawing a solid by obtaining the
|
||||
polyhedral representation (included for interest, not as a
|
||||
recommendation).
|
||||
- DrawGeometryVisAction:
|
||||
- Shows how to visualise your geometry alone, i.e., without the
|
||||
run manager and the physics stuff.
|
||||
|
||||
2) In the main program, the vis actions must be instantiated and
|
||||
registered with the visualization manager. You may (optionally)
|
||||
specify an extent to assist the viewers to locate the objects.
|
||||
|
||||
3) To visualise, you need:
|
||||
- /vis/scene/add/userAction
|
||||
|
||||
4) Use the usual Geant4 vis commands to create a scene
|
||||
and view (including the above command) - see standalone.mac.
|
||||
|
||||
Note: The system needs an "extent" in order to point the virtual
|
||||
camera and adjust its field of view, etc. This defines the "standard
|
||||
view". You may zoom, etc., from this standard view. The extent may
|
||||
be specified as suggested above or by using /vis/scene/add/extent.
|
||||
|
||||
|
||||
John Allison
|
||||
30th December 2022
|
||||
+5
-9
@@ -1,7 +1,4 @@
|
||||
///\file "visualization/standalone/.README.txt"
|
||||
///\brief Example standalone README page
|
||||
|
||||
/*! \page Examplestandalone Example standalone
|
||||
\page Examplestandalone Example standalone
|
||||
|
||||
examples/extended/visualization/standalone
|
||||
|
||||
@@ -27,12 +24,12 @@ can call it and re-call it as appropriate.
|
||||
- Shows how to visualise your geometry alone, i.e., without the
|
||||
run manager and the physics stuff.
|
||||
|
||||
2) In the main program, the vis actions must be instantiated and
|
||||
2) In the main() program, the vis actions must be instantiated and
|
||||
registered with the visualization manager. You may (optionally)
|
||||
specify an extent to assist the viewers to locate the objects.
|
||||
|
||||
3) To visualise, you need:
|
||||
- /vis/scene/add/userAction
|
||||
- `/vis/scene/add/userAction`
|
||||
|
||||
4) Use the usual Geant4 vis commands to create a scene
|
||||
and view (including the above command) - see standalone.mac.
|
||||
@@ -40,9 +37,8 @@ can call it and re-call it as appropriate.
|
||||
Note: The system needs an "extent" in order to point the virtual
|
||||
camera and adjust its field of view, etc. This defines the "standard
|
||||
view". You may zoom, etc., from this standard view. The extent may
|
||||
be specified as suggested above or by using /vis/scene/add/extent.
|
||||
be specified as suggested above or by using `/vis/scene/add/extent`.
|
||||
|
||||
|
||||
John Allison
|
||||
30th December 2022
|
||||
*/
|
||||
30th December 2022
|
||||
@@ -23,7 +23,6 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
/// \file DetectorConstruction.hh
|
||||
/// \brief Definition of the B1::DetectorConstruction class
|
||||
|
||||
|
||||
@@ -23,10 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file visualization/standalone/include/DrawGeometryVisAction.hh
|
||||
/// \brief Definition of the DrawGeometryVisAction class
|
||||
//
|
||||
//
|
||||
/// \file DrawGeometryVisAction.hh
|
||||
/// \brief Definition of the B1::DrawGeometryVisAction class
|
||||
|
||||
#ifndef DRAWGEOMETRYVISACTION_HH
|
||||
#define DRAWGEOMETRYVISACTION_HH
|
||||
|
||||
@@ -23,10 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file visualization/standalone/include/StandaloneVisAction.hh
|
||||
/// \file StandaloneVisAction.hh
|
||||
/// \brief Definition of the StandaloneVisAction class
|
||||
//
|
||||
//
|
||||
|
||||
#ifndef STANDALONEVISACTION_HH
|
||||
#define STANDALONEVISACTION_HH
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
/// \file DetectorConstruction.cc
|
||||
/// \brief Implementation of the B1::DetectorConstruction class
|
||||
|
||||
|
||||
@@ -23,10 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file visualization/standalone/src/DrawGeometryVisAction.cc
|
||||
/// \file DrawGeometryVisAction.cc
|
||||
/// \brief Implementation of the DrawGeometryVisAction class
|
||||
//
|
||||
//
|
||||
|
||||
#include "DrawGeometryVisAction.hh"
|
||||
|
||||
|
||||
@@ -23,10 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file visualization/standalone/src/StandaloneVisAction.cc
|
||||
/// \file StandaloneVisAction.cc
|
||||
/// \brief Implementation of the StandaloneVisAction class
|
||||
//
|
||||
//
|
||||
|
||||
#include "StandaloneVisAction.hh"
|
||||
|
||||
|
||||
@@ -23,14 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file visualization/standalone/standalone.cc
|
||||
/// \file standalone.cc
|
||||
/// \brief Main program of the visualization/standalone example
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "DrawGeometryVisAction.hh"
|
||||
#include "StandaloneVisAction.hh"
|
||||
|
||||
Reference in New Issue
Block a user