31 #include <boost/python.hpp> 42 G4double pRmin2, G4double pRmax2, G4double pDz,
43 G4double pSPhi, G4double pDPhi)
45 return new G4Cons(name, pRmin1, pRmax1, pRmin2, pRmax2, pDz, pSPhi, pDPhi);
57 class_<G4Cons, G4Cons*, bases<G4VSolid> >
58 (
"G4Cons",
"Cone solid class", no_init)
60 .def(init<
const G4String&, G4double, G4double, G4double,
61 G4double, G4double, G4double, G4double>())
63 .def(
"GetInnerRadiusMinusZ", &G4Cons::GetInnerRadiusMinusZ)
64 .def(
"GetOuterRadiusMinusZ", &G4Cons::GetOuterRadiusMinusZ)
65 .def(
"GetInnerRadiusPlusZ", &G4Cons::GetInnerRadiusPlusZ)
66 .def(
"GetOuterRadiusPlusZ", &G4Cons::GetOuterRadiusPlusZ)
67 .def(
"GetZHalfLength", &G4Cons::GetZHalfLength)
68 .def(
"GetStartPhiAngle", &G4Cons::GetStartPhiAngle)
69 .def(
"GetDeltaPhiAngle", &G4Cons::GetDeltaPhiAngle)
70 .def(
"SetInnerRadiusMinusZ", &G4Cons::SetInnerRadiusMinusZ)
71 .def(
"SetOuterRadiusMinusZ", &G4Cons::SetOuterRadiusMinusZ)
72 .def(
"SetInnerRadiusPlusZ", &G4Cons::SetInnerRadiusPlusZ)
73 .def(
"SetOuterRadiusPlusZ", &G4Cons::SetOuterRadiusPlusZ)
74 .def(
"SetZHalfLength", &G4Cons::SetZHalfLength)
75 .def(
"SetStartPhiAngle", &G4Cons::SetStartPhiAngle)
76 .def(
"SetDeltaPhiAngle", &G4Cons::SetDeltaPhiAngle)
78 .def(self_ns::str(
self))
82 def(
"CreateCons",
CreateCons, return_value_policy<manage_new_object>());
G4Cons * CreateCons(const G4String &name, G4double pRmin1, G4double pRmax1, G4double pRmin2, G4double pRmax2, G4double pDz, G4double pSPhi, G4double pDPhi)