Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions
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.

Referenced by GetInstance().

70  : fIsClosed(false)
71 {
72 }

Member Function Documentation

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

Definition at line 81 of file G4GeometryManager.cc.

Referenced by CML2PhantomConstruction::applyNewCentre(), G4TheRayTracer::CreateBitMap(), export_G4GeometryManager(), G4RunManagerKernel::ResetNavigator(), CML2AcceleratorConstruction::rotateAccelerator(), and G4TheRayTracer::StoreUserActions().

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 }
G4GeometryManager * G4GeometryManager::GetInstance ( void  )
static
G4bool G4GeometryManager::IsGeometryClosed ( )

Definition at line 125 of file G4GeometryManager.cc.

Referenced by export_G4GeometryManager().

126 {
127  return fIsClosed;
128 }
void G4GeometryManager::OpenGeometry ( G4VPhysicalVolume vol = 0)
void G4GeometryManager::SetWorldMaximumExtent ( G4double  worldExtent)

Definition at line 326 of file G4GeometryManager.cc.

References FatalException, G4Exception(), G4GeometryTolerance::GetInstance(), G4SolidStore::GetInstance(), and G4GeometryTolerance::SetSurfaceTolerance().

Referenced by ExN02DetectorConstruction::Construct(), and export_G4GeometryManager().

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
static void SetSurfaceTolerance(G4double worldExtent)
static G4GeometryTolerance * GetInstance()

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