32 #include <boost/python.hpp> 45 return new G4Box(name, pX, pY, pZ);
57 class_<G4Box, G4Box*, bases<G4VSolid> >
58 (
"G4Box",
"box solid class", no_init)
60 .def(init<const G4String&, G4double, G4double, G4double>())
62 .def(
"GetXHalfLength", &G4Box::GetXHalfLength)
63 .def(
"GetYHalfLength", &G4Box::GetYHalfLength)
64 .def(
"GetZHalfLength", &G4Box::GetZHalfLength)
65 .def(
"SetXHalfLength", &G4Box::SetXHalfLength)
66 .def(
"SetYHalfLength", &G4Box::SetYHalfLength)
67 .def(
"SetZHalfLength", &G4Box::SetZHalfLength)
69 .def(self_ns::str(
self))
73 def(
"CreateBox",
CreateBox, return_value_policy<manage_new_object>());
G4Box * CreateBox(const G4String &name, G4double pX, G4double pY, G4double pZ)