31 #include <boost/python.hpp> 42 G4double pDx, G4double pDy, G4double pDz,
43 G4double pAlpha, G4double pTheta, G4double pPhi)
45 return new G4Para(name, pDx, pDy, pDz, pAlpha, pTheta, pPhi);
57 class_<G4Para, G4Para*, bases<G4VSolid> >
58 (
"G4Para",
"Skewed box sold class", no_init)
60 .def(init<
const G4String&, G4double, G4double, G4double,
61 G4double, G4double, G4double>())
63 .def(
"GetZHalfLength", &G4Para::GetZHalfLength)
64 .def(
"GetSymAxis", &G4Para::GetSymAxis)
65 .def(
"GetYHalfLength", &G4Para::GetYHalfLength)
66 .def(
"GetXHalfLength", &G4Para::GetXHalfLength)
67 .def(
"GetTanAlpha", &G4Para::GetTanAlpha)
68 .def(
"SetXHalfLength", &G4Para::SetXHalfLength)
69 .def(
"SetYHalfLength", &G4Para::SetYHalfLength)
70 .def(
"SetZHalfLength", &G4Para::SetZHalfLength)
71 .def(
"SetAlpha", &G4Para::SetAlpha)
72 .def(
"SetTanAlpha", &G4Para::SetTanAlpha)
73 .def(
"SetThetaAndPhi", &G4Para::SetThetaAndPhi)
74 .def(
"SetAllParameters", &G4Para::SetAllParameters)
76 .def(self_ns::str(
self))
80 def(
"CreatePara",
CreatePara, return_value_policy<manage_new_object>());
G4Para * CreatePara(const G4String &name, G4double pDx, G4double pDy, G4double pDz, G4double pAlpha, G4double pTheta, G4double pPhi)