31 #include <boost/python.hpp> 42 G4double pRtor, G4double pSPhi, G4double pDPhi)
44 return new G4Torus(name, pRmin, pRmax, pRtor, pSPhi, pDPhi);
56 class_<G4Torus, G4Torus*, bases<G4VSolid> >
57 (
"G4Torus",
"Torus solid class", no_init)
59 .def(init<
const G4String&, G4double, G4double, G4double,
60 G4double, G4double>())
62 .def(
"GetRmin", &G4Torus::GetRmin)
63 .def(
"GetRmax", &G4Torus::GetRmax)
64 .def(
"GetRtor", &G4Torus::GetRtor)
65 .def(
"GetSPhi", &G4Torus::GetSPhi)
66 .def(
"GetDPhi", &G4Torus::GetDPhi)
68 .def(self_ns::str(
self))
72 def(
"CreateTorus",
CreateTorus, return_value_policy<manage_new_object>());
G4Torus * CreateTorus(const G4String &name, G4double pRmin, G4double pRmax, G4double pRtor, G4double pSPhi, G4double pDPhi)