Import Geant4 8.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 14:44:26 +02:00
parent 8a51e0bc40
commit 216a75eeb1
8717 changed files with 360418 additions and 141343 deletions
@@ -0,0 +1,14 @@
# $Id: GNUmakefile,v 1.2 2006/04/25 08:09:45 kmura Exp $
# $Name: geant4-08-01 $
# ===========================================================
# Makefile for building Geant4Py modules
# ===========================================================
include ../../config/config.gmk
# python module name
MODULE := G4visualization#
include $(G4PY_INSTALL)/config/g4py.gmk
include $(G4PY_INSTALL)/config/module.gmk
include $(G4PY_INSTALL)/config/install.gmk
@@ -0,0 +1,47 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4ASCIITree.cc,v 1.5 2006/06/29 15:36:20 gunter Exp $
// $Name: geant4-08-01 $
// ====================================================================
// pyG4ASCIITree.cc
//
// 2005 Q
// ====================================================================
#include <boost/python.hpp>
#include "G4ASCIITree.hh"
using namespace boost::python;
// ====================================================================
// module definition
// ====================================================================
void export_G4ASCIITree()
{
class_<G4ASCIITree, G4ASCIITree*, bases<G4VGraphicsSystem> >
("G4ASCIITree", "ASCII tree visualization module")
;
}
@@ -0,0 +1,47 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4DAWNFILE.cc,v 1.5 2006/06/29 15:36:23 gunter Exp $
// $Name: geant4-08-01 $
// ====================================================================
// pyG4DAWNFILE.cc
//
// 2005 Q
// ====================================================================
#include <boost/python.hpp>
#include "G4DAWNFILE.hh"
using namespace boost::python;
// ====================================================================
// module definition
// ====================================================================
void export_G4DAWNFILE()
{
class_<G4DAWNFILE, G4DAWNFILE*, bases<G4VGraphicsSystem> >
("G4DAWNFILE", "DAWN(file) visualization module")
;
}
@@ -0,0 +1,47 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4HepRep.cc,v 1.5 2006/06/29 15:36:25 gunter Exp $
// $Name: geant4-08-01 $
// ====================================================================
// pyG4HepRep.cc
//
// 2005 Q
// ====================================================================
#include <boost/python.hpp>
#include "G4HepRep.hh"
using namespace boost::python;
// ====================================================================
// module definition
// ====================================================================
void export_G4HepRep()
{
class_<G4HepRep, G4HepRep*, bases<G4VGraphicsSystem> >
("G4HepRep", "HepRep visualization module")
;
}
@@ -0,0 +1,47 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4HepRepFile.cc,v 1.5 2006/06/29 15:36:27 gunter Exp $
// $Name: geant4-08-01 $
// ====================================================================
// pyG4HepRepFile.cc
//
// 2005 Q
// ====================================================================
#include <boost/python.hpp>
#include "G4HepRepFile.hh"
using namespace boost::python;
// ====================================================================
// module definition
// ====================================================================
void export_G4HepRepFile()
{
class_<G4HepRepFile, G4HepRepFile*, bases<G4VGraphicsSystem> >
("G4HepRepFile", "HepRep(File) visualization module")
;
}
@@ -0,0 +1,51 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4OpenGLImmediateX.cc,v 1.5 2006/06/29 15:36:29 gunter Exp $
// $Name: geant4-08-01 $
// ====================================================================
// pyG4OpenGLImmediateX.cc
//
// 2005 Q
// ====================================================================
#ifdef G4VIS_USE_OPENGLX
#include <boost/python.hpp>
#include "G4OpenGLImmediateX.hh"
using namespace boost::python;
// ====================================================================
// module definition
// ====================================================================
void export_G4OpenGLImmediateX()
{
class_<G4OpenGLImmediateX, G4OpenGLImmediateX*, bases<G4VGraphicsSystem> >
("G4OpenGLImmediateX", "OpenGL(Immediate X) visualization module")
;
}
#endif
@@ -0,0 +1,51 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4OpenGLImmediateXm.cc,v 1.5 2006/06/29 15:36:32 gunter Exp $
// $Name: geant4-08-01 $
// ====================================================================
// pyG4OpenGLImmediateXm.cc
//
// 2005 Q
// ====================================================================
#ifdef G4VIS_USE_OPENGLXM
#include <boost/python.hpp>
#include "G4OpenGLImmediateXm.hh"
using namespace boost::python;
// ====================================================================
// module definition
// ====================================================================
void export_G4OpenGLImmediateXm()
{
class_<G4OpenGLImmediateXm, G4OpenGLImmediateXm*, bases<G4VGraphicsSystem> >
("G4OpenGLImmediateXm", "OpenGL(Immediate XM) visualization module")
;
}
#endif
@@ -0,0 +1,50 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4OpenGLStoredX.cc,v 1.5 2006/06/29 15:36:35 gunter Exp $
// $Name: geant4-08-01 $
// ====================================================================
// pyG4OpenGLStoredX.cc
//
// 2005 Q
// ====================================================================
#ifdef G4VIS_USE_OPENGLX
#include <boost/python.hpp>
#include "G4OpenGLStoredX.hh"
using namespace boost::python;
// ====================================================================
// module definition
// ====================================================================
void export_G4OpenGLStoredX()
{
class_<G4OpenGLStoredX, G4OpenGLStoredX*, bases<G4VGraphicsSystem> >
("G4OpenGLStoredX", "OpenGL(Stored X) visualization module")
;
}
#endif
@@ -0,0 +1,50 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4OpenGLStoredXm.cc,v 1.5 2006/06/29 15:36:38 gunter Exp $
// $Name: geant4-08-01 $
// ====================================================================
// pyG4OpenGLStoredXm.cc
//
// 2005 Q
// ====================================================================
#ifdef G4VIS_USE_OPENGLXM
#include <boost/python.hpp>
#include "G4OpenGLStoredXm.hh"
using namespace boost::python;
// ====================================================================
// module definition
// ====================================================================
void export_G4OpenGLStoredXm()
{
class_<G4OpenGLStoredXm, G4OpenGLStoredXm*, bases<G4VGraphicsSystem> >
("G4OpenGLStoredXm", "OpenGL(Stored XM) visualization module")
;
}
#endif
@@ -0,0 +1,47 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4RayTracer.cc,v 1.5 2006/06/29 15:36:41 gunter Exp $
// $Name: geant4-08-01 $
// ====================================================================
// pyG4RayTracer.cc
//
// 2005 Q
// ====================================================================
#include <boost/python.hpp>
#include "G4RayTracer.hh"
using namespace boost::python;
// ====================================================================
// module definition
// ====================================================================
void export_G4RayTracer()
{
class_<G4RayTracer, G4RayTracer*, bases<G4VGraphicsSystem> >
("G4RayTracer", "RayTracer visualization module")
;
}
@@ -0,0 +1,55 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4RayTracerX.cc,v 1.5 2006/06/29 15:36:44 gunter Exp $
// $Name: geant4-08-01 $
// ====================================================================
// pyG4RayTracerX.cc
//
// 2005 Q
// ====================================================================
#ifdef G4VIS_USE_RAYTRACERX
#include "pyG4Version.hh"
#if G4VERSION_NUMBER >= 800
#include <boost/python.hpp>
#include "G4RayTracerX.hh"
using namespace boost::python;
// ====================================================================
// module definition
// ====================================================================
void export_G4RayTracerX()
{
class_<G4RayTracerX, G4RayTracerX*, bases<G4VGraphicsSystem> >
("G4RayTracerX", "RayTracerX visualization module")
;
}
#endif
#endif
@@ -0,0 +1,47 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4VGraphicsSystem.cc,v 1.5 2006/06/29 15:36:47 gunter Exp $
// $Name: geant4-08-01 $
// ====================================================================
// pyG4VGraphicsSystem.cc
//
// 2005 Q
// ====================================================================
#include <boost/python.hpp>
#include "G4VGraphicsSystem.hh"
using namespace boost::python;
// ====================================================================
// module definition
// ====================================================================
void export_G4VGraphicsSystem()
{
class_<G4VGraphicsSystem, G4VGraphicsSystem*, boost::noncopyable>
("G4VGraphicsSystem", "base class of graphics system", no_init)
;
}
@@ -0,0 +1,47 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4VRML1File.cc,v 1.5 2006/06/29 15:36:50 gunter Exp $
// $Name: geant4-08-01 $
// ====================================================================
// pyG4VRML1File.cc
//
// 2005 Q
// ====================================================================
#include <boost/python.hpp>
#include "G4VRML1File.hh"
using namespace boost::python;
// ====================================================================
// module definition
// ====================================================================
void export_G4VRML1File()
{
class_<G4VRML1File, G4VRML1File*, bases<G4VGraphicsSystem> >
("G4VRML1File", "VRML-1(file) visualization module")
;
}
@@ -0,0 +1,47 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4VRML2File.cc,v 1.5 2006/06/29 15:36:53 gunter Exp $
// $Name: geant4-08-01 $
// ====================================================================
// pyG4VRML2File.cc
//
// 2005 Q
// ====================================================================
#include <boost/python.hpp>
#include "G4VRML2File.hh"
using namespace boost::python;
// ====================================================================
// module definition
// ====================================================================
void export_G4VRML2File()
{
class_<G4VRML2File, G4VRML2File*, bases<G4VGraphicsSystem> >
("G4VRML2File", "VRML-2(file) visualization module")
;
}
@@ -0,0 +1,94 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4VisManager.cc,v 1.4 2006/06/29 15:36:56 gunter Exp $
// $Name: geant4-08-01 $
// ====================================================================
// pyG4VisManager.cc
//
// 2005 Q
// ====================================================================
#include <boost/python.hpp>
#include "pyG4Version.hh"
#include "G4VisManager.hh"
#if G4VERSION_NUMBER >= 800
#include "G4TrajectoryModelFactories.hh"
#endif
using namespace boost::python;
// ====================================================================
// wrappers
// ====================================================================
class PyG4VisManager : public G4VisManager {
public:
PyG4VisManager() { SetVerboseLevel(quiet); }
~PyG4VisManager() { }
void SetVerbosity(Verbosity verb) { fVerbosity= verb; }
virtual void RegisterGraphicsSystems() { }
#if G4VERSION_NUMBER >= 800
virtual void RegisterModelFactories() {
RegisterModelFactory(new G4TrajectoryDrawByChargeFactory());
RegisterModelFactory(new G4TrajectoryDrawByParticleIDFactory());
}
#endif
};
// ====================================================================
// module definition
// ====================================================================
void export_G4VisManager()
{
scope in_PyG4VisManager =
class_<PyG4VisManager, boost::noncopyable>
("G4VisManager", "visualization manager")
// ---
.def("GetConcreteInstance", &PyG4VisManager::GetConcreteInstance,
"Get an instance of G4VisManager",
return_value_policy<reference_existing_object>())
.staticmethod("GetConcreteInstance")
// ---
.def("SetVerbosity", &PyG4VisManager::SetVerbosity)
.def("GetVerbosity", &PyG4VisManager::GetVerbosity)
.def("Initialize", &PyG4VisManager::Initialize)
.def("RegisterGraphicsSystem", &PyG4VisManager::RegisterGraphicsSystem)
;
// enum LineStyle
enum_<G4VisManager::Verbosity>("Verbosity")
.value("quiet", G4VisManager::quiet)
.value("startuo", G4VisManager::startup)
.value("errors", G4VisManager::errors)
.value("warnings", G4VisManager::warnings)
.value("confirmations", G4VisManager::confirmations)
.value("parameters", G4VisManager::parameters)
.value("all", G4VisManager::all)
;
}
@@ -0,0 +1,92 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pymodG4visualization.cc,v 1.4 2006/06/29 15:36:59 gunter Exp $
// $Name: geant4-08-01 $
// ====================================================================
// pymodG4visualization.cc [Geant4Py module]
//
// 2005 Q
// ====================================================================
#include <boost/python.hpp>
using namespace boost::python;
// ====================================================================
// module definition
// ====================================================================
void export_G4VisManager();
void export_G4VGraphicsSystem();
void export_G4VRML1File();
void export_G4VRML2File();
void export_G4DAWNFILE();
void export_G4HepRep();
void export_G4HepRepFile();
void export_G4ASCIITree();
void export_G4RayTracer();
#ifdef G4VIS_USE_OPENGLX
void export_G4OpenGLStoredX();
void export_G4OpenGLImmediateX();
#endif
#ifdef G4VIS_USE_OPENGLXM
void export_G4OpenGLStoredXm();
void export_G4OpenGLImmediateXm();
#endif
#ifdef G4VIS_USE_RAYTRACERX
void export_G4RayTracerX();
#endif
BOOST_PYTHON_MODULE(G4visualization)
{
export_G4VisManager();
export_G4VGraphicsSystem();
export_G4VRML1File();
export_G4VRML2File();
export_G4DAWNFILE();
export_G4HepRep();
export_G4HepRepFile();
export_G4ASCIITree();
export_G4RayTracer();
#ifdef G4VIS_USE_OPENGLX
export_G4OpenGLStoredX();
export_G4OpenGLImmediateX();
#endif
#ifdef G4VIS_USE_OPENGLXM
export_G4OpenGLStoredXm();
export_G4OpenGLImmediateXm();
#endif
#ifdef G4VIS_USE_RAYTRACERX
export_G4RayTracerX();
#endif
}