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

Go to the source code of this file.

Namespaces

namespace  pyG4Para
 

Functions

G4ParapyG4Para::CreatePara (const G4String &name, G4double pDx, G4double pDy, G4double pDz, G4double pAlpha, G4double pTheta, G4double pPhi)
 
void export_G4Para ()
 

Function Documentation

◆ export_G4Para()

void export_G4Para ( )

Definition at line 55 of file pyG4Para.cc.

56{
57 class_<G4Para, G4Para*, bases<G4VSolid> >
58 ("G4Para", "Skewed box sold class", no_init)
59 // constructors
60 .def(init<const G4String&, G4double, G4double, G4double,
62 // ---
63 .def("GetZHalfLength", &G4Para::GetZHalfLength)
64 .def("GetSymAxis", &G4Para::GetSymAxis)
65 .def("GetYHalfLength", &G4Para::GetYHalfLength)
66 .def("GetXHalfLength", &G4Para::GetXHalfLength)
67 .def("GetTanAlpha", &G4Para::GetTanAlpha)
68 .def("SetXHalfLength", &G4Para::SetXHalfLength)
69 .def("SetYHalfLength", &G4Para::SetYHalfLength)
70 .def("SetZHalfLength", &G4Para::SetZHalfLength)
71 .def("SetAlpha", &G4Para::SetAlpha)
72 .def("SetTanAlpha", &G4Para::SetTanAlpha)
73 .def("SetThetaAndPhi", &G4Para::SetThetaAndPhi)
74 .def("SetAllParameters", &G4Para::SetAllParameters)
75 // operators
76 .def(self_ns::str(self))
77 ;
78
79 // Create solid
80 def("CreatePara", CreatePara, return_value_policy<manage_new_object>());
81}
double G4double
Definition: G4Types.hh:83
void SetYHalfLength(G4double val)
void SetTanAlpha(G4double val)
G4double GetTanAlpha() const
void SetThetaAndPhi(double pTheta, double pPhi)
void SetZHalfLength(G4double val)
G4ThreeVector GetSymAxis() const
void SetXHalfLength(G4double val)
void SetAllParameters(G4double pDx, G4double pDy, G4double pDz, G4double pAlpha, G4double pTheta, G4double pPhi)
Definition: G4Para.cc:185
G4double GetYHalfLength() const
G4double GetZHalfLength() const
void SetAlpha(G4double alpha)
G4double GetXHalfLength() const
G4Para * CreatePara(const G4String &name, G4double pDx, G4double pDy, G4double pDz, G4double pAlpha, G4double pTheta, G4double pPhi)
Definition: pyG4Para.cc:41

References pyG4Para::CreatePara(), G4Para::GetSymAxis(), G4Para::GetTanAlpha(), G4Para::GetXHalfLength(), G4Para::GetYHalfLength(), G4Para::GetZHalfLength(), G4Para::SetAllParameters(), G4Para::SetAlpha(), G4Para::SetTanAlpha(), G4Para::SetThetaAndPhi(), G4Para::SetXHalfLength(), G4Para::SetYHalfLength(), and G4Para::SetZHalfLength().

Referenced by BOOST_PYTHON_MODULE().