51G4bool G4RegionStore::locked =
false;
83 G4cout <<
"WARNING - Attempt to delete the region store"
84 <<
" while geometry closed !" <<
G4endl;
96#ifdef G4GEOMETRY_VOXELDEBUG
97 G4cout <<
"Deleting Regions ... ";
100 for(iterator pos=store->begin(); pos!=store->end(); ++pos)
103 if (*pos) {
delete *pos; }
107#ifdef G4GEOMETRY_VOXELDEBUG
108 if (store->size() < i-1)
109 {
G4cout <<
"No regions deleted. Already deleted by user ?" <<
G4endl; }
125 fgNotifier = pNotifier;
167 fgInstance = &worldStore;
181 if ((*i)->IsModified()) {
return true; }
195 (*i)->RegionModified(
false);
207 if((*i)->IsInMassGeometry() || (*i)->IsInParallelGeometry() || currentWorld)
208 { (*i)->UpdateMaterialList(); }
220 if ((*i)->GetName() == name) {
return *i; }
224 std::ostringstream message;
225 message <<
"Region NOT found in store !" <<
G4endl
226 <<
" Region " << name <<
" NOT found in store !" <<
G4endl
227 <<
" Returning NULL pointer.";
260 { (*i)->SetWorld(0); }
266 size_t nPhys = fPhysicalVolumeStore->size();
267 for(
size_t iPhys=0; iPhys<nPhys; iPhys++)
275 { (*i)->SetWorld(fPhys); }
G4DLLIMPORT std::ostream G4cout
static G4GeometryManager * GetInstance()
static G4PhysicalVolumeStore * GetInstance()
static G4RegionStore * GetInstance()
static void SetNotifier(G4VStoreNotifier *pNotifier)
void UpdateMaterialList(G4VPhysicalVolume *currentWorld=0)
G4Region * GetRegion(const G4String &name, G4bool verbose=true) const
G4Region * FindOrCreateRegion(const G4String &name)
void ResetRegionModified()
static void Register(G4Region *pSolid)
G4bool IsModified() const
static void DeRegister(G4Region *pSolid)
virtual void NotifyRegistration()=0
virtual void NotifyDeRegistration()=0
G4LogicalVolume * GetMotherLogical() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)