Geant4-11
Typedefs | Functions
pyG4Transform3D.cc File Reference
#include <boost/python.hpp>
#include "G4Transform3D.hh"
#include "G4ThreeVector.hh"
#include "G4RotationMatrix.hh"

Go to the source code of this file.

Typedefs

typedef G4Transform3D XXX
 

Functions

void export_G4Transform3D ()
 

Typedef Documentation

◆ XXX

typedef G4Transform3D XXX

Definition at line 38 of file pyG4Transform3D.cc.

Function Documentation

◆ export_G4Transform3D()

void export_G4Transform3D ( )

Definition at line 43 of file pyG4Transform3D.cc.

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

References CLHEP::HepRotation::inverse(), CLHEP::HepRotation::xx(), CLHEP::HepRotation::xy(), CLHEP::HepRotation::xz(), CLHEP::HepRotation::yx(), CLHEP::HepRotation::yy(), CLHEP::HepRotation::yz(), CLHEP::HepRotation::zx(), CLHEP::HepRotation::zy(), and CLHEP::HepRotation::zz().

Referenced by BOOST_PYTHON_MODULE().