LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
pymodG4visualization.cc File Reference
#include <boost/python.hpp>

Go to the source code of this file.

Functions

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 ()
 
 BOOST_PYTHON_MODULE (G4visualization)
 

Function Documentation

BOOST_PYTHON_MODULE ( G4visualization  )

Definition at line 63 of file pymodG4visualization.cc.

References export_G4ASCIITree(), export_G4DAWNFILE(), export_G4HepRep(), export_G4HepRepFile(), export_G4RayTracer(), export_G4VGraphicsSystem(), export_G4VisManager(), export_G4VRML1File(), and export_G4VRML2File().

64 {
74 
75 #ifdef G4VIS_USE_OPENGLX
76  export_G4OpenGLStoredX();
77  export_G4OpenGLImmediateX();
78 #endif
79 
80 #ifdef G4VIS_USE_OPENGLXM
81  export_G4OpenGLStoredXm();
82  export_G4OpenGLImmediateXm();
83 #endif
84 
85 #ifdef G4VIS_USE_RAYTRACERX
86  export_G4RayTracerX();
87 #endif
88 
89 }
void export_G4VisManager()
void export_G4RayTracer()
void export_G4VRML2File()
void export_G4ASCIITree()
void export_G4HepRepFile()
void export_G4DAWNFILE()
Definition: pyG4DAWNFILE.cc:39
void export_G4VRML1File()
void export_G4VGraphicsSystem()
void export_G4HepRep()
Definition: pyG4HepRep.cc:39
void export_G4ASCIITree ( )

Definition at line 39 of file pyG4ASCIITree.cc.

Referenced by BOOST_PYTHON_MODULE().

40 {
41  class_<G4ASCIITree, G4ASCIITree*, bases<G4VGraphicsSystem> >
42  ("G4ASCIITree", "ASCII tree visualization module")
43  ;
44 }
void export_G4DAWNFILE ( )

Definition at line 39 of file pyG4DAWNFILE.cc.

Referenced by BOOST_PYTHON_MODULE().

40 {
41  class_<G4DAWNFILE, G4DAWNFILE*, bases<G4VGraphicsSystem> >
42  ("G4DAWNFILE", "DAWN(file) visualization module")
43  ;
44 }
void export_G4HepRep ( )

Definition at line 39 of file pyG4HepRep.cc.

Referenced by BOOST_PYTHON_MODULE().

40 {
41  class_<G4HepRep, G4HepRep*, bases<G4VGraphicsSystem> >
42  ("G4HepRep", "HepRep visualization module")
43  ;
44 }
void export_G4HepRepFile ( )

Definition at line 39 of file pyG4HepRepFile.cc.

Referenced by BOOST_PYTHON_MODULE().

40 {
41  class_<G4HepRepFile, G4HepRepFile*, bases<G4VGraphicsSystem> >
42  ("G4HepRepFile", "HepRep(File) visualization module")
43  ;
44 }
void export_G4RayTracer ( )

Definition at line 39 of file pyG4RayTracer.cc.

Referenced by BOOST_PYTHON_MODULE().

40 {
41  class_<G4RayTracer, G4RayTracer*, bases<G4VGraphicsSystem> >
42  ("G4RayTracer", "RayTracer visualization module")
43  ;
44 }
void export_G4VGraphicsSystem ( )

Definition at line 39 of file pyG4VGraphicsSystem.cc.

Referenced by BOOST_PYTHON_MODULE().

40 {
41  class_<G4VGraphicsSystem, G4VGraphicsSystem*, boost::noncopyable>
42  ("G4VGraphicsSystem", "base class of graphics system", no_init)
43  ;
44 }
void export_G4VisManager ( )

Definition at line 76 of file pyG4VisManager.cc.

References PyG4VisManager::_get_concrete_instance(), pyG4VisManager::f1_SetVerboseLevel, pyG4VisManager::f2_SetVerboseLevel, pyG4VisManager::f3_SetVerboseLevel, Initialize(), and value.

Referenced by BOOST_PYTHON_MODULE().

77 {
78  scope in_PyG4VisManager =
79  class_<PyG4VisManager, boost::noncopyable>
80  ("G4VisManager", "visualization manager")
81  // ---
82  .def("GetConcreteInstance", &PyG4VisManager::_get_concrete_instance,
83  "Get an instance of G4VisManager",
84  return_value_policy<reference_existing_object>())
85  .staticmethod("GetConcreteInstance")
86  // ---
87  .def("SetVerboseLevel", f1_SetVerboseLevel)
88  .def("SetVerboseLevel", f2_SetVerboseLevel)
89  .def("SetVerboseLevel", f3_SetVerboseLevel)
90  .def("GetVerbosity", &PyG4VisManager::GetVerbosity)
91  .staticmethod("GetVerbosity")
92  .def("Initialize", &PyG4VisManager::Initialize)
93  .def("RegisterGraphicsSystem", &PyG4VisManager::RegisterGraphicsSystem)
94  ;
95 
96  // enum LineStyle
97  enum_<G4VisManager::Verbosity>("Verbosity")
98  .value("quiet", G4VisManager::quiet)
99  .value("startup", G4VisManager::startup)
100  .value("errors", G4VisManager::errors)
101  .value("warnings", G4VisManager::warnings)
102  .value("confirmations", G4VisManager::confirmations)
103  .value("parameters", G4VisManager::parameters)
104  .value("all", G4VisManager::all)
105  ;
106 }
void(PyG4VisManager::* f2_SetVerboseLevel)(const G4String &)
void Initialize()
Definition: errprop.cc:100
void(PyG4VisManager::* f3_SetVerboseLevel)(G4VisManager::Verbosity)
static PyG4VisManager * _get_concrete_instance()
double value
Definition: spectrum.C:18
void(PyG4VisManager::* f1_SetVerboseLevel)(G4int)
void export_G4VRML1File ( )

Definition at line 39 of file pyG4VRML1File.cc.

Referenced by BOOST_PYTHON_MODULE().

40 {
41  class_<G4VRML1File, G4VRML1File*, bases<G4VGraphicsSystem> >
42  ("G4VRML1File", "VRML-1(file) visualization module")
43  ;
44 }
void export_G4VRML2File ( )

Definition at line 39 of file pyG4VRML2File.cc.

Referenced by BOOST_PYTHON_MODULE().

40 {
41  class_<G4VRML2File, G4VRML2File*, bases<G4VGraphicsSystem> >
42  ("G4VRML2File", "VRML-2(file) visualization module")
43  ;
44 }