32 #include <boost/python.hpp> 33 #include "G4Version.hh" 34 #include "G4PVPlacement.hh" 35 #include "G4LogicalVolume.hh" 56 class_<G4PVPlacement, G4PVPlacement*, bases<G4VPhysicalVolume>,
58 (
"G4PVPlacement",
"physical volume placement", no_init)
60 .def(init<G4RotationMatrix*,
const G4ThreeVector&,
62 G4LogicalVolume*, G4bool, G4int>())
63 .def(init<
const G4Transform3D&, G4LogicalVolume*,
64 const G4String&, G4LogicalVolume*, G4bool, G4int>())
65 .def(init<G4RotationMatrix*,
const G4ThreeVector&,
67 G4VPhysicalVolume*, G4bool, G4int>())
68 .def(init<
const G4Transform3D&,
const G4String&,
69 G4LogicalVolume*, G4VPhysicalVolume*, G4bool, G4int>())
70 #
if G4VERSION_NUMBER >=800
71 .def(init<G4RotationMatrix*,
const G4ThreeVector&,
73 G4LogicalVolume*, G4bool, G4int, G4bool>())
74 .def(init<
const G4Transform3D&, G4LogicalVolume*,
75 const G4String&, G4LogicalVolume*, G4bool, G4int, G4bool>())
76 .def(init<G4RotationMatrix*,
const G4ThreeVector&,
78 G4VPhysicalVolume*, G4bool, G4int, G4bool>())
79 .def(init<
const G4Transform3D&,
const G4String&,
80 G4LogicalVolume*, G4VPhysicalVolume*, G4bool, G4int, G4bool>())
83 #
if G4VERSION_NUMBER >=800
84 .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()