31 #include <boost/python.hpp> 32 #include "G4Version.hh" 33 #include "G4LogicalVolume.hh" 34 #include "G4Material.hh" 35 #include "G4VSolid.hh" 36 #include "G4FieldManager.hh" 37 #include "G4VSensitiveDetector.hh" 38 #include "G4UserLimits.hh" 39 #include "G4SmartVoxelHeader.hh" 40 #include "G4MaterialCutsCouple.hh" 41 #include "G4FastSimulationManager.hh" 42 #include "G4VisAttributes.hh" 52 = &G4LogicalVolume::SetVisAttributes;
55 = &G4LogicalVolume::SetVisAttributes;
57 G4VSolid*(G4LogicalVolume::*
f1_GetSolid)()
const = &G4LogicalVolume::GetSolid;
60 = &G4LogicalVolume::SetSolid;
73 class_<G4LogicalVolume, G4LogicalVolume*, boost::noncopyable>
74 (
"G4LogicalVolume",
"logical volume class", no_init)
76 .def(init<G4VSolid*, G4Material*, const G4String& >())
77 .def(init<G4VSolid*, G4Material*,
const G4String&,
79 .def(init<G4VSolid*, G4Material*,
const G4String&,
80 G4FieldManager*, G4VSensitiveDetector* >())
81 .def(init<G4VSolid*, G4Material*,
const G4String&,
82 G4FieldManager*, G4VSensitiveDetector*,
84 .def(init<G4VSolid*, G4Material*,
const G4String&,
85 G4FieldManager*, G4VSensitiveDetector*,
86 G4UserLimits*, G4bool >())
88 .def(
"GetName", &G4LogicalVolume::GetName,
89 return_value_policy<reference_existing_object>())
90 .def(
"SetName", &G4LogicalVolume::SetName)
92 .def(
"GetNoDaughters", &G4LogicalVolume::GetNoDaughters)
93 .def(
"GetDaughter", &G4LogicalVolume::GetDaughter,
94 return_internal_reference<>())
95 .def(
"AddDaughter", &G4LogicalVolume::AddDaughter)
96 .def(
"IsDaughter", &G4LogicalVolume::IsDaughter)
97 .def(
"IsAncestor", &G4LogicalVolume::IsAncestor)
98 .def(
"RemoveDaughter", &G4LogicalVolume::RemoveDaughter)
99 .def(
"ClearDaughters", &G4LogicalVolume::ClearDaughters)
100 .def(
"TotalVolumeEntities", &G4LogicalVolume::TotalVolumeEntities)
103 return_internal_reference<>())
105 .def(
"GetMaterial", &G4LogicalVolume::GetMaterial,
106 return_internal_reference<>())
107 .def(
"SetMaterial", &G4LogicalVolume::SetMaterial)
108 .def(
"UpdateMaterial", &G4LogicalVolume::UpdateMaterial)
110 .def(
"GetMass", &G4LogicalVolume::GetMass, f_GetMass())
111 .def(
"GetFieldManager", &G4LogicalVolume::GetFieldManager,
112 return_internal_reference<>())
113 .def(
"SetFieldManager", &G4LogicalVolume::SetFieldManager)
114 .def(
"GetSensitiveDetector", &G4LogicalVolume::GetSensitiveDetector,
115 return_internal_reference<>())
116 .def(
"SetSensitiveDetector", &G4LogicalVolume::SetSensitiveDetector)
117 .def(
"GetUserLimits", &G4LogicalVolume::GetUserLimits,
118 return_internal_reference<>())
119 .def(
"SetUserLimits", &G4LogicalVolume::SetUserLimits)
121 .def(
"GetVoxelHeader", &G4LogicalVolume::GetVoxelHeader,
122 return_internal_reference<>())
123 .def(
"SetVoxelHeader", &G4LogicalVolume::SetVoxelHeader)
124 .def(
"GetSmartless", &G4LogicalVolume::GetSmartless)
125 .def(
"SetSmartless", &G4LogicalVolume::SetSmartless)
126 .def(
"IsToOptimise", &G4LogicalVolume::IsToOptimise)
127 .def(
"SetOptimisation", &G4LogicalVolume::SetOptimisation)
129 .def(
"IsRootRegion", &G4LogicalVolume::IsRootRegion)
130 .def(
"SetRegionRootFlag", &G4LogicalVolume::SetRegionRootFlag)
131 .def(
"IsRegion", &G4LogicalVolume::IsRegion)
132 .def(
"SetRegion", &G4LogicalVolume::SetRegion)
133 .def(
"GetRegion", &G4LogicalVolume::GetRegion,
134 return_internal_reference<>())
135 .def(
"PropagateRegion", &G4LogicalVolume::PropagateRegion)
136 .def(
"GetMaterialCutsCouple", &G4LogicalVolume::GetMaterialCutsCouple,
137 return_internal_reference<>())
138 .def(
"SetMaterialCutsCouple", &G4LogicalVolume::SetMaterialCutsCouple)
140 .def(
"GetVisAttributes", &G4LogicalVolume::GetVisAttributes,
141 return_internal_reference<>())
145 .def(
"GetFastSimulationManager",
146 &G4LogicalVolume::GetFastSimulationManager,
147 return_internal_reference<>())
149 .def(
"SetBiasWeight", &G4LogicalVolume::SetBiasWeight)
150 .def(
"GetBiasWeight", &G4LogicalVolume::GetBiasWeight)
void(G4LogicalVolume::* f2_SetVisAttributes)(const G4VisAttributes &)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateTubeVolume, CreateTubeVolume, 4, 6) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume
G4VSolid *(G4LogicalVolume::* f1_GetSolid)() const
void(G4LogicalVolume::* f1_SetSolid)(G4VSolid *)
void(G4LogicalVolume::* f1_SetVisAttributes)(const G4VisAttributes *)
void export_G4LogicalVolume()