32 #include <boost/python.hpp> 33 #include "G4Ellipsoid.hh" 46 G4double pzBottomCut=0,
49 return new G4Ellipsoid(name, pxSemiAxis, pySemiAxis, pzSemiAxis,
50 pzBottomCut, pzTopCut);
64 class_<G4Ellipsoid, G4Ellipsoid*, bases<G4VSolid> >
65 (
"G4Ellipsoid",
"ellipsoid class", no_init)
67 .def(init<const G4String&, G4double, G4double, G4double>())
68 .def(init<const G4String&, G4double, G4double, G4double, G4double>())
69 .def(init<
const G4String&, G4double, G4double, G4double, G4double,
72 .def(
"GetSemiAxisMax", &G4Ellipsoid::GetSemiAxisMax)
73 .def(
"GetZBottomCut", &G4Ellipsoid::GetZBottomCut)
74 .def(
"GetZTopCut", &G4Ellipsoid::GetZTopCut)
75 .def(
"SetSemiAxis", &G4Ellipsoid::SetSemiAxis)
76 .def(
"SetZCuts", &G4Ellipsoid::SetZCuts)
78 .def(self_ns::str(
self))
83 f_CreateEllipsoid()[return_value_policy<manage_new_object>()]);
BOOST_PYTHON_FUNCTION_OVERLOADS(f_func2, func2, 1, 2)
G4Ellipsoid * CreateEllipsoid(const G4String &name, G4double pxSemiAxis, G4double pySemiAxis, G4double pzSemiAxis, G4double pzBottomCut=0, G4double pzTopCut=0)
void export_G4Ellipsoid()