G4GeometryTolerance Class Reference

#include <G4GeometryTolerance.hh>


Public Member Functions

G4double GetSurfaceTolerance () const
G4double GetAngularTolerance () const
G4double GetRadialTolerance () const

Static Public Member Functions

static G4GeometryToleranceGetInstance ()

Protected Member Functions

 G4GeometryTolerance ()
 ~G4GeometryTolerance ()

Static Protected Member Functions

static void SetSurfaceTolerance (G4double worldExtent)

Friends

class G4GeometryManager


Detailed Description

Definition at line 56 of file G4GeometryTolerance.hh.


Constructor & Destructor Documentation

G4GeometryTolerance::G4GeometryTolerance (  )  [protected]

Definition at line 56 of file G4GeometryTolerance.cc.

00057 {
00058 }

G4GeometryTolerance::~G4GeometryTolerance (  )  [protected]

Definition at line 64 of file G4GeometryTolerance.cc.

00065 {
00066 }


Member Function Documentation

G4double G4GeometryTolerance::GetAngularTolerance (  )  const

Definition at line 92 of file G4GeometryTolerance.cc.

Referenced by G4VTwistSurface::AmIOnLeftSide(), G4tgbVolume::FindOrConstructG4Solid(), G4Cons::G4Cons(), G4CutTubs::G4CutTubs(), G4ReplicaNavigation::G4ReplicaNavigation(), G4Sphere::G4Sphere(), G4Surface::G4Surface(), G4Tubs::G4Tubs(), G4VTwistedFaceted::G4VTwistedFaceted(), and G4Torus::SetAllParameters().

00093 {
00094   return fAngTolerance;
00095 }

G4GeometryTolerance * G4GeometryTolerance::GetInstance (  )  [static]

Definition at line 73 of file G4GeometryTolerance.cc.

Referenced by G4NavigationLogger::AlongComputeStepLog(), G4VTwistSurface::AmIOnLeftSide(), G4PAIPhotonModel::BuildLambdaVector(), G4tgbVolume::BuildSolidForDivision(), G4TwistTubsHypeSide::DistanceToSurface(), G4tgbVolume::FindOrConstructG4Solid(), G4BoundingBox3D::G4BoundingBox3D(), G4ClippablePolygon::G4ClippablePolygon(), G4Cons::G4Cons(), G4Curve::G4Curve(), G4CurveRayIntersection::G4CurveRayIntersection(), G4CutTubs::G4CutTubs(), G4Ellipsoid::G4Ellipsoid(), G4EllipticalCone::G4EllipticalCone(), G4EnclosingCylinder::G4EnclosingCylinder(), G4GeomTestSegment::G4GeomTestSegment(), G4IntersectingCone::G4IntersectingCone(), G4ITNavigator::G4ITNavigator(), G4KnotVector::G4KnotVector(), G4Navigator::G4Navigator(), G4OpBoundaryProcess::G4OpBoundaryProcess(), G4Orb::G4Orb(), G4PathFinder::G4PathFinder(), G4PhantomParameterisation::G4PhantomParameterisation(), G4PlacedSolid::G4PlacedSolid(), G4PolyconeSide::G4PolyconeSide(), G4PolyhedraSide::G4PolyhedraSide(), G4PolyPhiFace::G4PolyPhiFace(), G4PropagatorInField::G4PropagatorInField(), G4ReflectionFactory::G4ReflectionFactory(), G4RegularNavigation::G4RegularNavigation(), G4ReplicaNavigation::G4ReplicaNavigation(), G4Sphere::G4Sphere(), G4SteppingManager::G4SteppingManager(), G4Surface::G4Surface(), G4SurfaceVoxelizer::G4SurfaceVoxelizer(), G4Tubs::G4Tubs(), G4VDivisionParameterisation::G4VDivisionParameterisation(), G4VIntersectionLocator::G4VIntersectionLocator(), G4VoxelSafety::G4VoxelSafety(), G4VSolid::G4VSolid(), G4VTrackTerminator::G4VTrackTerminator(), G4VTwistedFaceted::G4VTwistedFaceted(), G4VTwistSurface::G4VTwistSurface(), G4TwistTubsFlatSide::GetAreaCode(), G4SolidExtentList::GetExtent(), G4tgrUtils::GetRotationFromDirection(), G4ErrorCylSurfaceTarget::GetTangentPlane(), G4BoundingBox3D::Init(), G4Parabola::InitBounded(), G4Hyperbola::InitBounded(), G4ITStepProcessor::Initialize(), G4UnionSolid::Inside(), G4TwistTubsHypeSide::Inside(), G4TwistedTubs::Inside(), G4SubtractionSolid::Inside(), G4PSSphereSurfaceFlux::IsSelectedSurface(), G4PSSphereSurfaceCurrent::IsSelectedSurface(), G4PSFlatSurfaceFlux::IsSelectedSurface(), G4PSFlatSurfaceCurrent::IsSelectedSurface(), G4PSCylinderSurfaceFlux::IsSelectedSurface(), G4PSCylinderSurfaceCurrent::IsSelectedSurface(), G4VoxelNavigation::LocateNextVoxel(), G4ForwardXrayTR::PostStepDoIt(), G4Parabola::Project(), G4Hyperbola::Project(), G4Ellipse::Project(), G4ErrorFreeTrajState::PropagateError(), G4PathFinder::ReLocate(), G4Torus::SetAllParameters(), G4ErrorSurfaceTrajParam::SetParameters(), G4GeometryManager::SetWorldMaximumExtent(), and G4MagInt_Driver::WarnEndPointTooFar().

00074 {
00075   static G4GeometryTolerance theToleranceManager;
00076   if (!fInstance)
00077   {
00078     fInstance = &theToleranceManager;
00079   }
00080   return fInstance;    
00081 }

G4double G4GeometryTolerance::GetRadialTolerance (  )  const

Definition at line 97 of file G4GeometryTolerance.cc.

Referenced by G4TwistTubsHypeSide::DistanceToSurface(), G4Cons::G4Cons(), G4CutTubs::G4CutTubs(), G4Ellipsoid::G4Ellipsoid(), G4EllipticalCone::G4EllipticalCone(), G4Orb::G4Orb(), G4ReplicaNavigation::G4ReplicaNavigation(), G4Sphere::G4Sphere(), G4Tubs::G4Tubs(), G4TwistTubsFlatSide::GetAreaCode(), G4UnionSolid::Inside(), G4TwistTubsHypeSide::Inside(), G4TwistedTubs::Inside(), G4SubtractionSolid::Inside(), G4PathFinder::ReLocate(), and G4Torus::SetAllParameters().

00098 {
00099   return fRadTolerance;
00100 }

G4double G4GeometryTolerance::GetSurfaceTolerance (  )  const

Definition at line 87 of file G4GeometryTolerance.cc.

Referenced by G4PAIPhotonModel::BuildLambdaVector(), G4BoundingBox3D::G4BoundingBox3D(), G4ClippablePolygon::G4ClippablePolygon(), G4Curve::G4Curve(), G4CurveRayIntersection::G4CurveRayIntersection(), G4EnclosingCylinder::G4EnclosingCylinder(), G4GeomTestSegment::G4GeomTestSegment(), G4IntersectingCone::G4IntersectingCone(), G4ITNavigator::G4ITNavigator(), G4KnotVector::G4KnotVector(), G4Navigator::G4Navigator(), G4OpBoundaryProcess::G4OpBoundaryProcess(), G4PathFinder::G4PathFinder(), G4PhantomParameterisation::G4PhantomParameterisation(), G4PlacedSolid::G4PlacedSolid(), G4PolyconeSide::G4PolyconeSide(), G4PolyhedraSide::G4PolyhedraSide(), G4PolyPhiFace::G4PolyPhiFace(), G4PropagatorInField::G4PropagatorInField(), G4ReflectionFactory::G4ReflectionFactory(), G4RegularNavigation::G4RegularNavigation(), G4ReplicaNavigation::G4ReplicaNavigation(), G4SteppingManager::G4SteppingManager(), G4Surface::G4Surface(), G4SurfaceVoxelizer::G4SurfaceVoxelizer(), G4VDivisionParameterisation::G4VDivisionParameterisation(), G4VIntersectionLocator::G4VIntersectionLocator(), G4VoxelSafety::G4VoxelSafety(), G4VSolid::G4VSolid(), G4VTrackTerminator::G4VTrackTerminator(), G4VTwistSurface::G4VTwistSurface(), G4SolidExtentList::GetExtent(), G4tgrUtils::GetRotationFromDirection(), G4ErrorCylSurfaceTarget::GetTangentPlane(), G4BoundingBox3D::Init(), G4ITStepProcessor::Initialize(), G4PSSphereSurfaceFlux::IsSelectedSurface(), G4PSSphereSurfaceCurrent::IsSelectedSurface(), G4PSFlatSurfaceFlux::IsSelectedSurface(), G4PSFlatSurfaceCurrent::IsSelectedSurface(), G4PSCylinderSurfaceFlux::IsSelectedSurface(), G4PSCylinderSurfaceCurrent::IsSelectedSurface(), G4VoxelNavigation::LocateNextVoxel(), G4ForwardXrayTR::PostStepDoIt(), G4ErrorFreeTrajState::PropagateError(), and G4ErrorSurfaceTrajParam::SetParameters().

00088 {
00089   return fCarTolerance;
00090 }

void G4GeometryTolerance::SetSurfaceTolerance ( G4double  worldExtent  )  [static, protected]

Definition at line 107 of file G4GeometryTolerance.cc.

References G4cout, G4endl, G4Exception(), and JustWarning.

Referenced by G4GeometryManager::SetWorldMaximumExtent().

00108 {
00109   if (!fInitialised)
00110   {
00111     fCarTolerance = worldExtent*1E-11;
00112     fInitialised = true;
00113   }
00114   else
00115   {
00116     G4cout << "WARNING - G4GeometryTolerance::SetSurfaceTolerance()" << G4endl
00117            << "          Tolerance can only be set once. Currently set to: "
00118            << fCarTolerance/mm << " mm." << G4endl;
00119     G4Exception("G4GeometryTolerance::SetSurfaceTolerance()",
00120                 "NotApplicable", JustWarning,
00121                 "The tolerance has been already set!");
00122   }
00123 }


Friends And Related Function Documentation

friend class G4GeometryManager [friend]

Definition at line 58 of file G4GeometryTolerance.hh.


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:05 2013 for Geant4 by  doxygen 1.4.7