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

Go to the source code of this file.

Namespaces

namespace  pyG4TwistedBox
 

Functions

G4TwistedBoxpyG4TwistedBox::CreateTwistedBox (const G4String &name, G4double pPhiTwist, G4double pDx, G4double pDy, G4double pDz)
 
void export_G4TwistedBox ()
 

Function Documentation

◆ export_G4TwistedBox()

void export_G4TwistedBox ( )

Definition at line 57 of file pyG4TwistedBox.cc.

58{
59 class_<G4TwistedBox, G4TwistedBox*, bases<G4VSolid> >
60 ("G4TwistedBox", "twisted box solid class", no_init)
61 // constructors
62 .def(init<const G4String&, G4double, G4double, G4double, G4double>())
63 // ---
64 .def("GetXHalfLength", &G4TwistedBox::GetXHalfLength)
65 .def("GetYHalfLength", &G4TwistedBox::GetYHalfLength)
66 .def("GetZHalfLength", &G4TwistedBox::GetZHalfLength)
67 .def("GetPhiTwist", &G4TwistedBox::GetPhiTwist)
68 // operators
69 .def(self_ns::str(self))
70 ;
71
72 // Create solid
73 def("CreateTwistedBox", CreateTwistedBox,
74 return_value_policy<manage_new_object>());
75
76}
G4double GetPhiTwist() const
Definition: G4TwistedBox.hh:65
G4double GetXHalfLength() const
Definition: G4TwistedBox.hh:62
G4double GetZHalfLength() const
Definition: G4TwistedBox.hh:64
G4double GetYHalfLength() const
Definition: G4TwistedBox.hh:63
G4TwistedBox * CreateTwistedBox(const G4String &name, G4double pPhiTwist, G4double pDx, G4double pDy, G4double pDz)

References pyG4TwistedBox::CreateTwistedBox(), G4TwistedBox::GetPhiTwist(), G4TwistedBox::GetXHalfLength(), G4TwistedBox::GetYHalfLength(), and G4TwistedBox::GetZHalfLength().

Referenced by BOOST_PYTHON_MODULE().