31 #include <boost/python.hpp> 44 return new G4Box(name, pX, pY, pZ);
56 class_<G4Box, G4Box*, bases<G4VSolid> >
57 (
"G4Box",
"box solid class", no_init)
59 .def(init<const G4String&, G4double, G4double, G4double>())
61 .def(
"GetXHalfLength", &G4Box::GetXHalfLength)
62 .def(
"GetYHalfLength", &G4Box::GetYHalfLength)
63 .def(
"GetZHalfLength", &G4Box::GetZHalfLength)
64 .def(
"SetXHalfLength", &G4Box::SetXHalfLength)
65 .def(
"SetYHalfLength", &G4Box::SetYHalfLength)
66 .def(
"SetZHalfLength", &G4Box::SetZHalfLength)
68 .def(self_ns::str(
self))
72 def(
"CreateBox",
CreateBox, return_value_policy<manage_new_object>());
G4Box * CreateBox(const G4String &name, G4double pX, G4double pY, G4double pZ)