Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 ( )
protected

Definition at line 69 of file G4GeometryManager.cc.

70  : fIsClosed(false)
71 {
72 }

Here is the caller graph for this function:

Member Function Documentation

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 }

Here is the caller graph for this function:

G4GeometryManager * G4GeometryManager::GetInstance ( )
static

Definition at line 135 of file G4GeometryManager.cc.

136 {
137  if (!fgInstance)
138  {
139  fgInstance = new G4GeometryManager;
140  }
141  return fgInstance;
142 }

Here is the call graph for this function:

Here is the caller graph for this function:

G4bool G4GeometryManager::IsGeometryClosed ( )

Definition at line 125 of file G4GeometryManager.cc.

126 {
127  return fIsClosed;
128 }
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 }

Here is the caller graph for this function:

void G4GeometryManager::SetWorldMaximumExtent ( G4double  worldExtent)

Definition at line 326 of file G4GeometryManager.cc.

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

Here is the call graph for this function:


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