Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyG4Sphere.cc File Reference
#include <boost/python.hpp>
#include "G4Sphere.hh"
Include dependency graph for pyG4Sphere.cc:

Go to the source code of this file.

Namespaces

 pyG4Sphere
 

Functions

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

Function Documentation

void export_G4Sphere ( )

Definition at line 57 of file pyG4Sphere.cc.

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

Here is the call graph for this function:

Here is the caller graph for this function: