Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyG4Region.cc File Reference
#include <boost/python.hpp>
#include "G4Version.hh"
#include "G4Region.hh"
#include "G4LogicalVolume.hh"
#include "G4ProductionCuts.hh"
#include "G4VUserRegionInformation.hh"
#include "G4UserLimits.hh"
#include "G4MaterialCutsCouple.hh"
#include "G4FastSimulationManager.hh"
Include dependency graph for pyG4Region.cc:

Go to the source code of this file.

Functions

void export_G4Region ()
 

Function Documentation

void export_G4Region ( )

Definition at line 47 of file pyG4Region.cc.

48 {
49  class_<G4Region, G4Region*, boost::noncopyable>
50  ("G4Region", "region class", no_init)
51  // constructors
52  .def(init<const G4String&>())
53  // ---
54  .def("AddRootLogicalVolume", &G4Region::AddRootLogicalVolume)
55  .def("RemoveRootLogicalVolume", &G4Region::RemoveRootLogicalVolume)
56  .def("SetName", &G4Region::SetName)
57  .def("GetName", &G4Region::GetName,
58  return_value_policy<return_by_value>())
59  .def("RegionModified", &G4Region::RegionModified)
60  .def("IsModified", &G4Region::IsModified)
61  .def("SetProductionCuts", &G4Region::SetProductionCuts)
62  .def("GetProductionCuts", &G4Region::GetProductionCuts,
63  return_internal_reference<>())
64  .def("GetNumberOfMaterials", &G4Region::GetNumberOfMaterials)
65  .def("GetNumberOfRootVolumes", &G4Region::GetNumberOfRootVolumes)
66  .def("UpdateMaterialList", &G4Region::UpdateMaterialList)
67  .def("ClearMaterialList", &G4Region::ClearMaterialList)
68  .def("ScanVolumeTree", &G4Region::ScanVolumeTree)
69  .def("SetUserInformation", &G4Region::SetUserInformation)
70  .def("GetUserInformation", &G4Region::GetUserInformation,
71  return_internal_reference<>())
72 #if G4VERSION_NUMBER >= 710
73  .def("SetUserLimits", &G4Region::SetUserLimits)
74  .def("GetUserLimits", &G4Region::GetUserLimits,
75  return_internal_reference<>())
76 #endif
77  .def("ClearMap", &G4Region::ClearMap)
78  .def("RegisterMaterialCouplePair", &G4Region::RegisterMaterialCouplePair)
79  .def("FindCouple", &G4Region::FindCouple,
80  return_value_policy<reference_existing_object>())
81 #if G4VERSION_NUMBER >= 800
82  .def("SetFastSimulationManager", &G4Region::SetFastSimulationManager)
83  .def("GetFastSimulationManager", &G4Region::GetFastSimulationManager,
84  return_internal_reference<>())
85  .def("ClearFastSimulationManager", &G4Region::ClearFastSimulationManager)
86  .def("GetWorldPhysical", &G4Region::GetWorldPhysical,
87  return_internal_reference<>())
88  .def("SetWorld", &G4Region::SetWorld)
89  .def("BelongsTo", &G4Region::BelongsTo)
90  .def("GetParentRegion", &G4Region::GetParentRegion,
91  return_value_policy<reference_existing_object>())
92 #endif
93  ;
94  }
void RegisterMaterialCouplePair(G4Material *mat, G4MaterialCutsCouple *couple)
void SetUserInformation(G4VUserRegionInformation *ui)
G4ProductionCuts * GetProductionCuts() const
const G4String & GetName() const
void AddRootLogicalVolume(G4LogicalVolume *lv)
Definition: G4Region.cc:290
G4bool IsModified() const
G4VUserRegionInformation * GetUserInformation() const
void RegionModified(G4bool flag)
void ClearMap()
void SetFastSimulationManager(G4FastSimulationManager *fsm)
Definition: G4Region.cc:128
G4VPhysicalVolume * GetWorldPhysical() const
void ScanVolumeTree(G4LogicalVolume *lv, G4bool region)
Definition: G4Region.cc:169
void SetName(const G4String &name)
void ClearFastSimulationManager()
Definition: G4Region.cc:418
G4MaterialCutsCouple * FindCouple(G4Material *mat)
G4bool BelongsTo(G4VPhysicalVolume *thePhys) const
Definition: G4Region.cc:398
void SetWorld(G4VPhysicalVolume *wp)
Definition: G4Region.cc:382
G4Region * GetParentRegion(G4bool &unique) const
Definition: G4Region.cc:453
void SetProductionCuts(G4ProductionCuts *cut)
void SetUserLimits(G4UserLimits *ul)
void UpdateMaterialList()
Definition: G4Region.cc:360
size_t GetNumberOfMaterials() const
size_t GetNumberOfRootVolumes() const
void RemoveRootLogicalVolume(G4LogicalVolume *lv, G4bool scan=true)
Definition: G4Region.cc:319
G4FastSimulationManager * GetFastSimulationManager() const
Definition: G4Region.cc:137
G4UserLimits * GetUserLimits() const
void ClearMaterialList()
Definition: G4Region.cc:349

Here is the call graph for this function:

Here is the caller graph for this function: