Geant4-11
Namespaces | Functions | Variables
pyG4VTouchable.cc File Reference
#include <boost/python.hpp>
#include "G4VTouchable.hh"
#include "G4VPhysicalVolume.hh"
#include "G4VSolid.hh"

Go to the source code of this file.

Namespaces

namespace  pyG4VTouchable
 

Functions

 pyG4VTouchable::BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS (f_GetTranslation, GetTranslation, 0, 1) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetRotation
 
void export_G4VTouchable ()
 

Variables

 pyG4VTouchable::GetRotation
 

Function Documentation

◆ export_G4VTouchable()

void export_G4VTouchable ( )

Definition at line 65 of file pyG4VTouchable.cc.

66{
67 class_<G4VTouchable, G4VTouchable*, boost::noncopyable>
68 ("G4VTouchable", "touchable class", no_init)
69 .def("GetTranslation", &G4VTouchable::GetTranslation,
70 f_GetTranslation()
71 [return_value_policy<return_by_value>()])
72 .def("GetRotation", &G4VTouchable::GetRotation,
73 f_GetRotation()
74 [return_value_policy<reference_existing_object>()])
75 .def("GetVolume", &G4VTouchable::GetVolume,
76 f_GetVolume()
77 [return_value_policy<reference_existing_object>()])
78 .def("GetSolid", &G4VTouchable::GetSolid,
79 f_GetSolid()
80 [return_value_policy<reference_existing_object>()])
81 .def("GetReplicaNumber", &G4VTouchable::GetReplicaNumber,
82 f_GetReplicaNumber())
83 .def("GetHistoryDepth", &G4VTouchable::GetHistoryDepth)
84 .def("MoveUpHistory", &G4VTouchable::MoveUpHistory,
85 f_MoveUpHistory())
86 ;
87}
virtual G4int MoveUpHistory(G4int num_levels=1)
Definition: G4VTouchable.cc:58
virtual const G4ThreeVector & GetTranslation(G4int depth=0) const =0
virtual G4VSolid * GetSolid(G4int depth=0) const
Definition: G4VTouchable.cc:42
virtual const G4RotationMatrix * GetRotation(G4int depth=0) const =0
virtual G4VPhysicalVolume * GetVolume(G4int depth=0) const
Definition: G4VTouchable.cc:34
virtual G4int GetHistoryDepth() const
Definition: G4VTouchable.cc:74
virtual G4int GetReplicaNumber(G4int depth=0) const
Definition: G4VTouchable.cc:50

References G4VTouchable::GetHistoryDepth(), G4VTouchable::GetReplicaNumber(), G4VTouchable::GetRotation(), G4VTouchable::GetSolid(), G4VTouchable::GetTranslation(), G4VTouchable::GetVolume(), and G4VTouchable::MoveUpHistory().

Referenced by BOOST_PYTHON_MODULE().