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

Go to the source code of this file.

Namespaces

 pyG4RotationMatrix
 

Typedefs

typedef G4RotationMatrix XXX
 

Functions

void export_G4RotationMatrix ()
 

Variables

XXX &(XXX::* pyG4RotationMatrix::f1_rotate )(G4double, const G4ThreeVector &) = &XXX::rotate
 
XXX &(XXX::* pyG4RotationMatrix::f2_rotate )(G4double, const G4ThreeVector *) = &XXX::rotate
 

Typedef Documentation

Definition at line 37 of file pyG4RotationMatrix.cc.

Function Documentation

void export_G4RotationMatrix ( )

Definition at line 54 of file pyG4RotationMatrix.cc.

55 {
56  class_<G4RotationMatrix>("G4RotationMatrix", "rotation matrix")
57  // constructors
58  .def(init<const XXX&>())
59 
60  // property
61  .add_property("xx", &XXX::xx)
62  .add_property("xy", &XXX::xy)
63  .add_property("xz", &XXX::xz)
64  .add_property("yx", &XXX::yx)
65  .add_property("yy", &XXX::yy)
66  .add_property("yz", &XXX::yz)
67  .add_property("zx", &XXX::zx)
68  .add_property("zy", &XXX::zy)
69  .add_property("zz", &XXX::zz)
70  .def_readonly("IDENTITY", &XXX::IDENTITY)
71 
72  // methods
73  .def("colX", &XXX::colX)
74  .def("colY", &XXX::colY)
75  .def("colZ", &XXX::colZ)
76  .def("rowX", &XXX::rowX)
77  .def("rowY", &XXX::rowY)
78  .def("rowZ", &XXX::rowZ)
79  .def("getPhi", &XXX::getPhi)
80  .def("getTheta", &XXX::getTheta)
81  .def("getPsi", &XXX::getPsi)
82  .def("phi", &XXX::phi)
83  .def("theta", &XXX::theta)
84  .def("psi", &XXX::psi)
85  .def("getDelta", &XXX::getDelta)
86  .def("getAxis", &XXX::getAxis)
87  .def("delta", &XXX::axis)
88  .def("axis", &XXX::delta)
89  .def("phiX", &XXX::phiX)
90  .def("phiY", &XXX::phiY)
91  .def("phiZ", &XXX::phiZ)
92  .def("thetaX", &XXX::thetaX)
93  .def("thetaY", &XXX::thetaY)
94  .def("thetaZ", &XXX::thetaZ)
95  .def("setPhi", &XXX::setPhi)
96  .def("setTheta", &XXX::setTheta)
97  .def("setPsi", &XXX::setPsi)
98  .def("setAxis", &XXX::setAxis)
99  .def("setDelta", &XXX::setDelta)
100  .def("isIdentity", &XXX::isIdentity)
101  .def("rotateX", &XXX::rotateX,
102  return_value_policy<reference_existing_object>())
103  .def("rotateY", &XXX::rotateY,
104  return_value_policy<reference_existing_object>())
105  .def("rotateZ", &XXX::rotateZ,
106  return_value_policy<reference_existing_object>())
107  .def("rotate", f1_rotate,
108  return_value_policy<reference_existing_object>())
109  .def("rotate", f2_rotate,
110  return_value_policy<reference_existing_object>())
111  .def("rotateAxes", &XXX::rotateAxes,
112  return_value_policy<reference_existing_object>())
113  .def("inverse", &XXX::inverse)
114  .def("invert", &XXX::invert,
115  return_value_policy<reference_existing_object>())
116 
117  // operators
118  .def(self_ns::str(self))
119  .def(self == self)
120  .def(self != self)
121  .def(self > self)
122  .def(self < self)
123  .def(self >= self)
124  .def(self <= self)
125  .def(self * self)
126  .def(self * G4ThreeVector())
127  .def(self *= self)
128  ;
129 }
CLHEP::Hep3Vector G4ThreeVector
XXX &(XXX::* f2_rotate)(G4double, const G4ThreeVector *)
XXX &(XXX::* f1_rotate)(G4double, const G4ThreeVector &)

Here is the caller graph for this function: