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

Go to the source code of this file.

Namespaces

 pyG4TwistedBox
 

Functions

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

Function Documentation

void export_G4TwistedBox ( )

Definition at line 58 of file pyG4TwistedBox.cc.

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

Here is the call graph for this function:

Here is the caller graph for this function: