75 G4cout <<
"WARNING - Attempt to delete the physical volume store"
76 <<
" while geometry closed !" <<
G4endl;
89#ifdef G4GEOMETRY_VOXELDEBUG
90 G4cout <<
"Deleting Physical Volumes ... ";
93 for(
auto pos=store->cbegin(); pos!=store->cend(); ++pos)
99#ifdef G4GEOMETRY_VOXELDEBUG
100 if (store->size() < i-1)
101 {
G4cout <<
"No volumes deleted. Already deleted by user ?" <<
G4endl; }
117 fgNotifier = pNotifier;
141 if (motherLogical !=
nullptr) { motherLogical->
RemoveDaughter(pVolume); }
162 if ((*i)->GetName() == name) {
return *i; }
166 std::ostringstream message;
167 message <<
"Volume NOT found in store !" <<
G4endl
168 <<
" Volume " << name <<
" NOT found in store !" <<
G4endl
169 <<
" Returning NULL pointer.";
183 if (fgInstance ==
nullptr)
185 fgInstance = &worldStore;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
static G4bool IsGeometryClosed()
void RemoveDaughter(const G4VPhysicalVolume *p)
static G4PhysicalVolumeStore * GetInstance()
G4VPhysicalVolume * GetVolume(const G4String &name, G4bool verbose=true) const
static void Register(G4VPhysicalVolume *pSolid)
static void SetNotifier(G4VStoreNotifier *pNotifier)
static void DeRegister(G4VPhysicalVolume *pSolid)
virtual ~G4PhysicalVolumeStore()
virtual void NotifyRegistration()=0
virtual void NotifyDeRegistration()=0
G4LogicalVolume * GetMotherLogical() const