Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyG4LogicalVolume.cc File Reference
#include <boost/python.hpp>
#include "G4Version.hh"
#include "G4LogicalVolume.hh"
#include "G4Material.hh"
#include "G4VSolid.hh"
#include "G4FieldManager.hh"
#include "G4VSensitiveDetector.hh"
#include "G4UserLimits.hh"
#include "G4SmartVoxelHeader.hh"
#include "G4MaterialCutsCouple.hh"
#include "G4FastSimulationManager.hh"
#include "G4VisAttributes.hh"
Include dependency graph for pyG4LogicalVolume.cc:

Go to the source code of this file.

Namespaces

 pyG4LogicalVolume
 

Functions

void export_G4LogicalVolume ()
 

Variables

void(G4LogicalVolume::* pyG4LogicalVolume::f1_SetVisAttributes )(const G4VisAttributes *) = &G4LogicalVolume::SetVisAttributes
 
void(G4LogicalVolume::* pyG4LogicalVolume::f2_SetVisAttributes )(const G4VisAttributes &) = &G4LogicalVolume::SetVisAttributes
 
G4VSolid *(G4LogicalVolume::* pyG4LogicalVolume::f1_GetSolid )() const = &G4LogicalVolume::GetSolid
 
void(G4LogicalVolume::* pyG4LogicalVolume::f1_SetSolid )(G4VSolid *) = &G4LogicalVolume::SetSolid
 

Function Documentation

void export_G4LogicalVolume ( )

Definition at line 72 of file pyG4LogicalVolume.cc.

73 {
74  class_<G4LogicalVolume, G4LogicalVolume*, boost::noncopyable>
75  ("G4LogicalVolume", "logical volume class", no_init)
76  // constructors
77  .def(init<G4VSolid*, G4Material*, const G4String& >())
78  .def(init<G4VSolid*, G4Material*, const G4String&,
79  G4FieldManager* >())
80  .def(init<G4VSolid*, G4Material*, const G4String&,
82  .def(init<G4VSolid*, G4Material*, const G4String&,
84  G4UserLimits* >())
85  .def(init<G4VSolid*, G4Material*, const G4String&,
87  G4UserLimits*, G4bool >())
88  // ---
89  .def("GetName", &G4LogicalVolume::GetName,
90  return_value_policy<reference_existing_object>())
91  .def("SetName", &G4LogicalVolume::SetName)
92  // ---
93  .def("GetNoDaughters", &G4LogicalVolume::GetNoDaughters)
94  .def("GetDaughter", &G4LogicalVolume::GetDaughter,
95  return_internal_reference<>())
96  .def("AddDaughter", &G4LogicalVolume::AddDaughter)
97  .def("IsDaughter", &G4LogicalVolume::IsDaughter)
98  .def("IsAncestor", &G4LogicalVolume::IsAncestor)
99  .def("RemoveDaughter", &G4LogicalVolume::RemoveDaughter)
100  .def("ClearDaughters", &G4LogicalVolume::ClearDaughters)
101  .def("TotalVolumeEntities", &G4LogicalVolume::TotalVolumeEntities)
102  // ----
103  .def("GetSolid", f1_GetSolid,
104  return_internal_reference<>())
105  .def("SetSolid", f1_SetSolid)
106  .def("GetMaterial", &G4LogicalVolume::GetMaterial,
107  return_internal_reference<>())
108  .def("SetMaterial", &G4LogicalVolume::SetMaterial)
109  .def("UpdateMaterial", &G4LogicalVolume::UpdateMaterial)
110  // ---
111  .def("GetMass", &G4LogicalVolume::GetMass, f_GetMass())
112  .def("GetFieldManager", &G4LogicalVolume::GetFieldManager,
113  return_internal_reference<>())
114  .def("SetFieldManager", &G4LogicalVolume::SetFieldManager)
115  .def("GetSensitiveDetector", &G4LogicalVolume::GetSensitiveDetector,
116  return_internal_reference<>())
117  .def("SetSensitiveDetector", &G4LogicalVolume::SetSensitiveDetector)
118  .def("GetUserLimits", &G4LogicalVolume::GetUserLimits,
119  return_internal_reference<>())
120  .def("SetUserLimits", &G4LogicalVolume::SetUserLimits)
121  // ---
122  .def("GetVoxelHeader", &G4LogicalVolume::GetVoxelHeader,
123  return_internal_reference<>())
124  .def("SetVoxelHeader", &G4LogicalVolume::SetVoxelHeader)
125  .def("GetSmartless", &G4LogicalVolume::GetSmartless)
126  .def("SetSmartless", &G4LogicalVolume::SetSmartless)
127  .def("IsToOptimise", &G4LogicalVolume::IsToOptimise)
128  .def("SetOptimisation", &G4LogicalVolume::SetOptimisation)
129  // ---
130  .def("IsRootRegion", &G4LogicalVolume::IsRootRegion)
131  .def("SetRegionRootFlag", &G4LogicalVolume::SetRegionRootFlag)
132  .def("IsRegion", &G4LogicalVolume::IsRegion)
133  .def("SetRegion", &G4LogicalVolume::SetRegion)
134  .def("GetRegion", &G4LogicalVolume::GetRegion,
135  return_internal_reference<>())
136  .def("PropagateRegion", &G4LogicalVolume::PropagateRegion)
137  .def("GetMaterialCutsCouple", &G4LogicalVolume::GetMaterialCutsCouple,
138  return_internal_reference<>())
139  .def("SetMaterialCutsCouple", &G4LogicalVolume::SetMaterialCutsCouple)
140  // ---
141  .def("GetVisAttributes", &G4LogicalVolume::GetVisAttributes,
142  return_internal_reference<>())
143  .def("SetVisAttributes", f1_SetVisAttributes)
144  .def("SetVisAttributes", f2_SetVisAttributes)
145  // ---
146  .def("GetFastSimulationManager",
148  return_internal_reference<>())
149  // ---
150  .def("SetBiasWeight", &G4LogicalVolume::SetBiasWeight)
151  .def("GetBiasWeight", &G4LogicalVolume::GetBiasWeight)
152  ;
153 }
G4SmartVoxelHeader * GetVoxelHeader() const
G4double GetSmartless() const
G4VSolid *(G4LogicalVolume::* f1_GetSolid)() const
G4Material * GetMaterial() const
void UpdateMaterial(G4Material *pMaterial)
void SetRegionRootFlag(G4bool rreg)
void(G4LogicalVolume::* f1_SetSolid)(G4VSolid *)
G4bool IsAncestor(const G4VPhysicalVolume *p) const
void SetUserLimits(G4UserLimits *pULimits)
G4VPhysicalVolume * GetDaughter(const G4int i) const
G4Region * GetRegion() const
void SetFieldManager(G4FieldManager *pFieldMgr, G4bool forceToAllDaughters)
void SetVoxelHeader(G4SmartVoxelHeader *pVoxel)
void SetRegion(G4Region *reg)
G4double GetBiasWeight() const
bool G4bool
Definition: G4Types.hh:79
void SetOptimisation(G4bool optim)
G4FastSimulationManager * GetFastSimulationManager() const
G4bool IsRootRegion() const
G4bool IsRegion() const
const G4VisAttributes * GetVisAttributes() const
void SetMaterialCutsCouple(G4MaterialCutsCouple *cuts)
void PropagateRegion()
G4int TotalVolumeEntities() const
G4int GetNoDaughters() const
G4UserLimits * GetUserLimits() const
void(G4LogicalVolume::* f2_SetVisAttributes)(const G4VisAttributes &)
void(G4LogicalVolume::* f1_SetVisAttributes)(const G4VisAttributes *)
void SetSmartless(G4double s)
G4bool IsDaughter(const G4VPhysicalVolume *p) const
void SetName(const G4String &pName)
const G4MaterialCutsCouple * GetMaterialCutsCouple() const
G4FieldManager * GetFieldManager() const
G4double GetMass(G4bool forced=false, G4bool propagate=true, G4Material *parMaterial=0)
const G4String & GetName() const
G4bool IsToOptimise() const
void SetBiasWeight(G4double w)
void AddDaughter(G4VPhysicalVolume *p)
void SetMaterial(G4Material *pMaterial)
G4VSensitiveDetector * GetSensitiveDetector() const
void SetSensitiveDetector(G4VSensitiveDetector *pSDetector)
void RemoveDaughter(const G4VPhysicalVolume *p)

Here is the call graph for this function:

Here is the caller graph for this function: