31 #include <boost/python.hpp> 32 #include "G4Ellipsoid.hh" 45 G4double pzBottomCut=0,
48 return new G4Ellipsoid(name, pxSemiAxis, pySemiAxis, pzSemiAxis,
49 pzBottomCut, pzTopCut);
63 class_<G4Ellipsoid, G4Ellipsoid*, bases<G4VSolid> >
64 (
"G4Ellipsoid",
"ellipsoid class", no_init)
66 .def(init<const G4String&, G4double, G4double, G4double>())
67 .def(init<const G4String&, G4double, G4double, G4double, G4double>())
68 .def(init<
const G4String&, G4double, G4double, G4double, G4double,
71 .def(
"GetSemiAxisMax", &G4Ellipsoid::GetSemiAxisMax)
72 .def(
"GetZBottomCut", &G4Ellipsoid::GetZBottomCut)
73 .def(
"GetZTopCut", &G4Ellipsoid::GetZTopCut)
74 .def(
"SetSemiAxis", &G4Ellipsoid::SetSemiAxis)
75 .def(
"SetZCuts", &G4Ellipsoid::SetZCuts)
77 .def(self_ns::str(
self))
82 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()