LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 64 of file pymodG4visualization.cc.

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

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

Definition at line 40 of file pyG4ASCIITree.cc.

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 40 of file pyG4DAWNFILE.cc.

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 40 of file pyG4HepRep.cc.

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 40 of file pyG4HepRepFile.cc.

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 40 of file pyG4RayTracer.cc.

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 40 of file pyG4VGraphicsSystem.cc.

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 77 of file pyG4VisManager.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 40 of file pyG4VRML1File.cc.

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 40 of file pyG4VRML2File.cc.

Referenced by BOOST_PYTHON_MODULE().

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