31 #include <boost/python.hpp> 32 #include "G4VTouchable.hh" 33 #include "G4VPhysicalVolume.hh" 34 #include "G4VSolid.hh" 54 GetReplicaNumber, 0, 1)
67 class_<G4VTouchable, G4VTouchable*, boost::noncopyable>
68 (
"G4VTouchable",
"touchable class", no_init)
69 .def(
"GetTranslation", &G4VTouchable::GetTranslation,
71 [return_value_policy<return_by_value>()])
74 [return_value_policy<reference_existing_object>()])
75 .def(
"GetVolume", &G4VTouchable::GetVolume,
77 [return_value_policy<reference_existing_object>()])
78 .def(
"GetSolid", &G4VTouchable::GetSolid,
80 [return_value_policy<reference_existing_object>()])
81 .def(
"GetReplicaNumber", &G4VTouchable::GetReplicaNumber,
83 .def(
"GetHistoryDepth", &G4VTouchable::GetHistoryDepth)
84 .def(
"MoveUpHistory", &G4VTouchable::MoveUpHistory,
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetTranslation, GetTranslation, 0, 1) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetRotation
void export_G4VTouchable()