Geant4-11
Namespaces | Functions | Variables
pyG4GDMLParser.cc File Reference
#include <boost/python.hpp>
#include "G4GDMLParser.hh"
#include "G4LogicalVolume.hh"
#include "G4Material.hh"
#include "G4Version.hh"

Go to the source code of this file.

Namespaces

namespace  pyG4GDMLParser
 

Functions

void export_G4GDMLParser ()
 

Variables

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetWorldVolume, GetWorldVolume, 0, 1) void(G4GDMLParser void(G4GDMLParser::* pyG4GDMLParser::f2_Write )(const G4String &, const G4LogicalVolume *, G4bool, const G4String &) = &G4GDMLParser::Write
 

Function Documentation

◆ export_G4GDMLParser()

void export_G4GDMLParser ( )

Definition at line 68 of file pyG4GDMLParser.cc.

69{
70 class_<G4GDMLParser, boost::noncopyable>
71 ("G4GDMLParser", "GDML parser")
72 // ---
73 .def("Read", &G4GDMLParser::Read, f_Read())
74 .def("ReadModule", &G4GDMLParser::ReadModule, f_ReadModule())
75 .def("ParseST", &G4GDMLParser::ParseST,
76 return_value_policy<reference_existing_object>())
77 .def("Write", f1_Write, f_Write())
78 .def("Write", f2_Write, g_Write())
79 .def("GetWorldVolume", &G4GDMLParser::GetWorldVolume,
80 f_GetWorldVolume()
81 [return_value_policy<reference_existing_object>()])
82 ;
83}
G4LogicalVolume * ParseST(const G4String &name, G4Material *medium, G4Material *solid)
G4VPhysicalVolume * GetWorldVolume(const G4String &setupName="Default") const
void Read(const G4String &filename, G4bool Validate=true)
void ReadModule(const G4String &filename, G4bool Validate=true)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetWorldVolume, GetWorldVolume, 0, 1) void(G4GDMLParser void(G4GDMLParser::* f2_Write)(const G4String &, const G4LogicalVolume *, G4bool, const G4String &)

References pyG4GDMLParser::f2_Write, G4GDMLParser::GetWorldVolume(), G4GDMLParser::ParseST(), G4GDMLParser::Read(), and G4GDMLParser::ReadModule().

Referenced by BOOST_PYTHON_MODULE().