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

Go to the source code of this file.

Namespaces

namespace  pyG4Orb
 

Functions

G4OrbpyG4Orb::CreateOrb (const G4String &name, G4double pRmax)
 
void export_G4Orb ()
 

Function Documentation

◆ export_G4Orb()

void export_G4Orb ( )

Definition at line 53 of file pyG4Orb.cc.

54{
55 class_<G4Orb, G4Orb*, bases<G4VSolid> >
56 ("G4Orb", "Orb solid class", no_init)
57 // constructors
58 .def(init<const G4String&, G4double>())
59 // ---
60 .def("GetRadius", &G4Orb::GetRadius)
61 .def("SetRadius", &G4Orb::SetRadius)
62 // operators
63 .def(self_ns::str(self))
64 ;
65
66 // Create solid
67 def("CreateOrb", CreateOrb, return_value_policy<manage_new_object>());
68
69}
void SetRadius(G4double newRmax)
G4double GetRadius() const
G4Orb * CreateOrb(const G4String &name, G4double pRmax)
Definition: pyG4Orb.cc:41

References pyG4Orb::CreateOrb(), G4Orb::GetRadius(), and G4Orb::SetRadius().

Referenced by BOOST_PYTHON_MODULE().