31 #include <boost/python.hpp> 32 #include "G4Version.hh" 33 #include "G4PVPlacement.hh" 34 #include "G4LogicalVolume.hh" 55 class_<G4PVPlacement, G4PVPlacement*, bases<G4VPhysicalVolume>,
57 (
"G4PVPlacement",
"physical volume placement", no_init)
59 .def(init<G4RotationMatrix*,
const G4ThreeVector&,
61 G4LogicalVolume*, G4bool, G4int>())
62 .def(init<
const G4Transform3D&, G4LogicalVolume*,
63 const G4String&, G4LogicalVolume*, G4bool, G4int>())
64 .def(init<G4RotationMatrix*,
const G4ThreeVector&,
66 G4VPhysicalVolume*, G4bool, G4int>())
67 .def(init<
const G4Transform3D&,
const G4String&,
68 G4LogicalVolume*, G4VPhysicalVolume*, G4bool, G4int>())
69 #
if G4VERSION_NUMBER >=800
70 .def(init<G4RotationMatrix*,
const G4ThreeVector&,
72 G4LogicalVolume*, G4bool, G4int, G4bool>())
73 .def(init<
const G4Transform3D&, G4LogicalVolume*,
74 const G4String&, G4LogicalVolume*, G4bool, G4int, G4bool>())
75 .def(init<G4RotationMatrix*,
const G4ThreeVector&,
77 G4VPhysicalVolume*, G4bool, G4int, G4bool>())
78 .def(init<
const G4Transform3D&,
const G4String&,
79 G4LogicalVolume*, G4VPhysicalVolume*, G4bool, G4int, G4bool>())
82 #
if G4VERSION_NUMBER >=800
83 .def(
"CheckOverlaps", &G4PVPlacement::CheckOverlaps, f_CheckOverlaps())
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateTubeVolume, CreateTubeVolume, 4, 6) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume
void export_G4PVPlacement()