32 #include <boost/python.hpp> 33 #include "G4VTouchable.hh" 34 #include "G4VPhysicalVolume.hh" 35 #include "G4VSolid.hh" 55 GetReplicaNumber, 0, 1)
68 class_<G4VTouchable, G4VTouchable*, boost::noncopyable>
69 (
"G4VTouchable",
"touchable class", no_init)
70 .def(
"GetTranslation", &G4VTouchable::GetTranslation,
72 [return_value_policy<return_by_value>()])
75 [return_value_policy<reference_existing_object>()])
76 .def(
"GetVolume", &G4VTouchable::GetVolume,
78 [return_value_policy<reference_existing_object>()])
79 .def(
"GetSolid", &G4VTouchable::GetSolid,
81 [return_value_policy<reference_existing_object>()])
82 .def(
"GetReplicaNumber", &G4VTouchable::GetReplicaNumber,
84 .def(
"GetHistoryDepth", &G4VTouchable::GetHistoryDepth)
85 .def(
"MoveUpHistory", &G4VTouchable::MoveUpHistory,
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetTranslation, GetTranslation, 0, 1) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetRotation
void export_G4VTouchable()