Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4GeometryManager Class Reference

#include <G4GeometryManager.hh>

Public Member Functions

G4bool CloseGeometry (G4bool pOptimise=true, G4bool verbose=false, G4VPhysicalVolume *vol=0)
 
void OpenGeometry (G4VPhysicalVolume *vol=0)
 
G4bool IsGeometryClosed ()
 
void SetWorldMaximumExtent (G4double worldExtent)
 

Static Public Member Functions

static G4GeometryManagerGetInstance ()
 

Protected Member Functions

 G4GeometryManager ()
 

Detailed Description

Definition at line 55 of file G4GeometryManager.hh.

Constructor & Destructor Documentation

◆ G4GeometryManager()

G4GeometryManager::G4GeometryManager ( )
protected

Definition at line 69 of file G4GeometryManager.cc.

70 : fIsClosed(false)
71{
72}

Member Function Documentation

◆ CloseGeometry()

G4bool G4GeometryManager::CloseGeometry ( G4bool  pOptimise = true,
G4bool  verbose = false,
G4VPhysicalVolume vol = 0 
)

Definition at line 81 of file G4GeometryManager.cc.

83{
84 if (!fIsClosed)
85 {
86 if (pVolume)
87 {
88 BuildOptimisations(pOptimise, pVolume);
89 }
90 else
91 {
92 BuildOptimisations(pOptimise, verbose);
93 }
94 fIsClosed=true;
95 }
96 return true;
97}

Referenced by G4TheRayTracer::CreateBitMap(), and G4TheRayTracer::StoreUserActions().

◆ GetInstance()

◆ IsGeometryClosed()

G4bool G4GeometryManager::IsGeometryClosed ( )

Definition at line 125 of file G4GeometryManager.cc.

126{
127 return fIsClosed;
128}

◆ OpenGeometry()

void G4GeometryManager::OpenGeometry ( G4VPhysicalVolume vol = 0)

Definition at line 105 of file G4GeometryManager.cc.

106{
107 if (fIsClosed)
108 {
109 if (pVolume)
110 {
111 DeleteOptimisations(pVolume);
112 }
113 else
114 {
115 DeleteOptimisations();
116 }
117 fIsClosed=false;
118 }
119}

Referenced by G4ErrorPropagatorManager::CloseGeometry(), G4TheRayTracer::CreateBitMap(), G4GDMLMessenger::SetNewValue(), G4TheRayTracer::StoreUserActions(), and G4RunManagerKernel::~G4RunManagerKernel().

◆ SetWorldMaximumExtent()

void G4GeometryManager::SetWorldMaximumExtent ( G4double  worldExtent)

Definition at line 327 of file G4GeometryManager.cc.

328{
329 if (G4SolidStore::GetInstance()->size())
330 {
331 // Sanity check to assure that extent is fixed BEFORE creating
332 // any geometry object (solids in this case)
333 //
334 G4Exception("G4GeometryManager::SetMaximumExtent()",
335 "GeomMgt0003", FatalException,
336 "Extent can be set only BEFORE creating any geometry object!");
337 }
339}
@ FatalException
static void SetSurfaceTolerance(G4double worldExtent)
static G4GeometryTolerance * GetInstance()
static G4SolidStore * GetInstance()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

The documentation for this class was generated from the following files: