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

Go to the source code of this file.

Namespaces

 pyG4Torus
 

Functions

G4ToruspyG4Torus::CreateTorus (const G4String &name, G4double pRmin, G4double pRmax, G4double pRtor, G4double pSPhi, G4double pDPhi)
 
void export_G4Torus ()
 

Function Documentation

void export_G4Torus ( )

Definition at line 55 of file pyG4Torus.cc.

56 {
57  class_<G4Torus, G4Torus*, bases<G4VSolid> >
58  ("G4Torus", "Torus solid class", no_init)
59  // constructors
60  .def(init<const G4String&, G4double, G4double, G4double,
61  G4double, G4double>())
62  // ---
63  .def("GetRmin", &G4Torus::GetRmin)
64  .def("GetRmax", &G4Torus::GetRmax)
65  .def("GetRtor", &G4Torus::GetRtor)
66  .def("GetSPhi", &G4Torus::GetSPhi)
67  .def("GetDPhi", &G4Torus::GetDPhi)
68  // operators
69  .def(self_ns::str(self))
70  ;
71 
72  // Create solid
73  def("CreateTorus", CreateTorus, return_value_policy<manage_new_object>());
74 }
G4double GetSPhi() const
G4Torus * CreateTorus(const G4String &name, G4double pRmin, G4double pRmax, G4double pRtor, G4double pSPhi, G4double pDPhi)
Definition: pyG4Torus.cc:42
G4double GetRmax() const
G4double GetRtor() const
G4double GetRmin() const
G4double GetDPhi() const
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:

Here is the caller graph for this function: