84 G4cout <<
"WARNING - Attempt to delete the region store"
85 <<
" while geometry closed !" <<
G4endl;
97 #ifdef G4GEOMETRY_VOXELDEBUG
98 G4cout <<
"Deleting Regions ... ";
101 for(iterator
pos=store->begin();
pos!=store->end(); ++
pos)
104 if (*
pos) {
delete *
pos; }
108 #ifdef G4GEOMETRY_VOXELDEBUG
109 if (store->size() < i-1)
110 {
G4cout <<
"No regions deleted. Already deleted by user ?" <<
G4endl; }
182 if ((*i)->IsModified()) {
return true; }
196 (*i)->RegionModified(
false);
208 if((*i)->IsInMassGeometry() || (*i)->IsInParallelGeometry() || currentWorld)
209 { (*i)->UpdateMaterialList(); }
221 if ((*i)->GetName() ==
name) {
return *i; }
226 message <<
"Region NOT found in store !" <<
G4endl
227 <<
" Region " << name <<
" NOT found in store !" <<
G4endl
228 <<
" Returning NULL pointer.";
261 { (*i)->SetWorld(0); }
267 size_t nPhys = fPhysicalVolumeStore->size();
268 for(
size_t iPhys=0; iPhys<nPhys; iPhys++)
276 { (*i)->SetWorld(fPhys); }
virtual void NotifyDeRegistration()=0
static const G4double pos
void message(RunManager *runmanager)
static G4ThreadLocal G4VStoreNotifier * fgNotifier
void UpdateMaterialList(G4VPhysicalVolume *currentWorld=0)
G4Region * GetRegion(const G4String &name, G4bool verbose=true) const
virtual void NotifyRegistration()=0
G4LogicalVolume * GetMotherLogical() const
static void SetNotifier(G4VStoreNotifier *pNotifier)
static void Register(G4Region *pRegion)
G4bool IsModified() const
static G4ThreadLocal G4bool locked
static G4RegionStore * fgInstance
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
static G4bool IsGeometryClosed()
static G4PhysicalVolumeStore * GetInstance()
static G4RegionStore * GetInstance()
static void DeRegister(G4Region *pRegion)
void ResetRegionModified()
G4GLOB_DLL std::ostream G4cout
G4Region * FindOrCreateRegion(const G4String &name)