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

Go to the source code of this file.

Namespaces

namespace  pyG4Sphere
 

Functions

G4SpherepyG4Sphere::CreateSphere (const G4String &name, G4double pRmin, G4double pRmax, G4double pSPhi, G4double pDPhi, G4double pSTheta, G4double pDTheta)
 
void export_G4Sphere ()
 

Function Documentation

◆ export_G4Sphere()

void export_G4Sphere ( )

Definition at line 56 of file pyG4Sphere.cc.

57{
58 class_<G4Sphere, G4Sphere*, bases<G4VSolid> >
59 ("G4Sphere", "Sphere solid class", no_init)
60 // constructors
61 .def(init<const G4String&, G4double, G4double, G4double,
63 // ---
64 .def("GetOuterRadius", &G4Sphere::GetOuterRadius)
65 .def("GetStartPhiAngle", &G4Sphere::GetStartPhiAngle)
66 .def("GetDeltaPhiAngle", &G4Sphere::GetDeltaPhiAngle)
67 .def("GetStartThetaAngle", &G4Sphere::GetStartThetaAngle)
68 .def("GetDeltaThetaAngle", &G4Sphere::GetDeltaThetaAngle)
69 .def("SetOuterRadius", &G4Sphere::SetOuterRadius)
70 .def("SetStartPhiAngle", &G4Sphere::SetStartPhiAngle)
71 .def("SetDeltaPhiAngle", &G4Sphere::SetDeltaPhiAngle)
72 .def("SetStartThetaAngle", &G4Sphere::SetStartThetaAngle)
73 .def("SetDeltaThetaAngle", &G4Sphere::SetDeltaThetaAngle)
74 // operators
75 .def(self_ns::str(self))
76 ;
77
78 // Create solid
79 def("CreateSphere", CreateSphere, return_value_policy<manage_new_object>());
80
81}
double G4double
Definition: G4Types.hh:83
G4double GetStartPhiAngle() const
void SetDeltaPhiAngle(G4double newDphi)
void SetStartThetaAngle(G4double newSTheta)
G4double GetDeltaPhiAngle() const
void SetOuterRadius(G4double newRmax)
void SetDeltaThetaAngle(G4double newDTheta)
G4double GetOuterRadius() const
G4double GetDeltaThetaAngle() const
G4double GetStartThetaAngle() const
void SetStartPhiAngle(G4double newSphi, G4bool trig=true)
G4Sphere * CreateSphere(const G4String &name, G4double pRmin, G4double pRmax, G4double pSPhi, G4double pDPhi, G4double pSTheta, G4double pDTheta)
Definition: pyG4Sphere.cc:41

References pyG4Sphere::CreateSphere(), G4Sphere::GetDeltaPhiAngle(), G4Sphere::GetDeltaThetaAngle(), G4Sphere::GetOuterRadius(), G4Sphere::GetStartPhiAngle(), G4Sphere::GetStartThetaAngle(), G4Sphere::SetDeltaPhiAngle(), G4Sphere::SetDeltaThetaAngle(), G4Sphere::SetOuterRadius(), G4Sphere::SetStartPhiAngle(), and G4Sphere::SetStartThetaAngle().

Referenced by BOOST_PYTHON_MODULE().