32 #include <boost/python.hpp> 33 #include "G4Version.hh" 34 #include "G4VPhysicalVolume.hh" 35 #include "G4LogicalVolume.hh" 36 #include "G4VPVParameterisation.hh" 60 class_<G4VPhysicalVolume, G4VPhysicalVolume*, boost::noncopyable>
61 (
"G4VPhysicalVolume",
"physical volume class", no_init)
63 .def(
"SetTranslation", &G4VPhysicalVolume::SetTranslation)
64 .def(
"GetTranslation", &G4VPhysicalVolume::GetTranslation,
65 return_internal_reference<>())
66 .def(
"GetObjectTranslation", &G4VPhysicalVolume::GetObjectTranslation)
67 .def(
"GetFrameTranslation", &G4VPhysicalVolume::GetObjectTranslation)
69 .def(
"SetRotation", &G4VPhysicalVolume::SetRotation)
71 return_internal_reference<>())
73 return_internal_reference<>())
74 .def(
"GetObjectRotationValue", &G4VPhysicalVolume::GetObjectRotationValue)
75 .def(
"GetFrameRotation", &G4VPhysicalVolume::GetFrameRotation,
76 return_internal_reference<>())
78 .def(
"SetLogicalVolume", &G4VPhysicalVolume::SetLogicalVolume)
79 .def(
"SetMotherLogical", &G4VPhysicalVolume::SetMotherLogical)
80 .def(
"GetLogicalVolume", &G4VPhysicalVolume::GetLogicalVolume,
81 return_internal_reference<>())
82 .def(
"GetMotherLogical", &G4VPhysicalVolume::GetMotherLogical,
83 return_internal_reference<>())
85 .def(
"SetName", &G4VPhysicalVolume::SetName)
86 #if G4VERSION_NUMBER <= 801 87 .def(
"GetName", &G4VPhysicalVolume::GetName)
89 .def(
"GetName", &G4VPhysicalVolume::GetName,
90 return_value_policy<return_by_value>())
92 .def(
"SetCopyNo", &G4VPhysicalVolume::SetCopyNo)
93 .def(
"GetCopyNo", &G4VPhysicalVolume::GetCopyNo)
95 .def(
"IsMany", &G4VPhysicalVolume::IsMany)
96 .def(
"IsReplicated", &G4VPhysicalVolume::IsReplicated)
97 .def(
"IsParameterised", &G4VPhysicalVolume::IsParameterised)
98 .def(
"GetMultiplicity", &G4VPhysicalVolume::GetMultiplicity)
99 .def(
"GetParameterisation", &G4VPhysicalVolume::GetParameterisation,
100 return_value_policy<reference_existing_object>())
const G4RotationMatrix *(G4VPhysicalVolume::* f1_GetRotation)() const
G4RotationMatrix *(G4VPhysicalVolume::* f2_GetRotation)()
void export_G4VPhysicalVolume()