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

Go to the source code of this file.

Typedefs

typedef G4Transform3D XXX
 

Functions

void export_G4Transform3D ()
 

Typedef Documentation

typedef G4Transform3D XXX

Definition at line 39 of file pyG4Transform3D.cc.

Function Documentation

void export_G4Transform3D ( )

Definition at line 44 of file pyG4Transform3D.cc.

45 {
46  class_<G4Transform3D>("G4Transform3D", "geometrical 3D transformation")
47  // constructors
48  .def(init<const G4RotationMatrix&, const G4ThreeVector&>())
49  .def(init<const XXX&>())
50 
51  // property
52  .add_property("xx", &XXX::xx)
53  .add_property("xy", &XXX::xy)
54  .add_property("xz", &XXX::xz)
55  .add_property("yx", &XXX::yx)
56  .add_property("yy", &XXX::yy)
57  .add_property("yz", &XXX::yz)
58  .add_property("zx", &XXX::zx)
59  .add_property("zy", &XXX::zy)
60  .add_property("zz", &XXX::zz)
61  .add_property("dx", &XXX::dx)
62  .add_property("dy", &XXX::dy)
63  .add_property("dz", &XXX::dz)
64  .def_readonly("Identity", &XXX::Identity)
65 
66  // methods
67  .def("inverse", &XXX::inverse)
68  .def("getRotation" , &XXX::getRotation)
69  .def("getTranslation", &XXX::getTranslation)
70 
71  // operators
72  .def(self == self)
73  .def(self != self)
74  .def(self * self)
75  ;
76 }

Here is the caller graph for this function: