Geant4-11
Namespaces | Functions
pyG4Ellipsoid.cc File Reference
#include <boost/python.hpp>
#include "G4Ellipsoid.hh"

Go to the source code of this file.

Namespaces

namespace  pyG4Ellipsoid
 

Functions

G4EllipsoidpyG4Ellipsoid::CreateEllipsoid (const G4String &name, G4double pxSemiAxis, G4double pySemiAxis, G4double pzSemiAxis, G4double pzBottomCut=0, G4double pzTopCut=0)
 
void export_G4Ellipsoid ()
 

Function Documentation

◆ export_G4Ellipsoid()

void export_G4Ellipsoid ( )

Definition at line 61 of file pyG4Ellipsoid.cc.

62{
63 class_<G4Ellipsoid, G4Ellipsoid*, bases<G4VSolid> >
64 ("G4Ellipsoid", "ellipsoid class", no_init)
65 // constructors
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,
69 G4double>())
70 // ---
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)
76 // operators
77 .def(self_ns::str(self))
78 ;
79
80 // Create solid
81 def("CreateEllipsoid", CreateEllipsoid,
82 f_CreateEllipsoid()[return_value_policy<manage_new_object>()]);
83}
double G4double
Definition: G4Types.hh:83
G4double GetSemiAxisMax(G4int i) const
void SetZCuts(G4double newzBottomCut, G4double newzTopCut)
G4double GetZTopCut() const
G4double GetZBottomCut() const
void SetSemiAxis(G4double x, G4double y, G4double z)
G4Ellipsoid * CreateEllipsoid(const G4String &name, G4double pxSemiAxis, G4double pySemiAxis, G4double pzSemiAxis, G4double pzBottomCut=0, G4double pzTopCut=0)

References pyG4Ellipsoid::CreateEllipsoid(), G4Ellipsoid::GetSemiAxisMax(), G4Ellipsoid::GetZBottomCut(), G4Ellipsoid::GetZTopCut(), G4Ellipsoid::SetSemiAxis(), and G4Ellipsoid::SetZCuts().

Referenced by BOOST_PYTHON_MODULE().