Geant4  10.03
G4Box Class Reference

#include <G4Box.hh>

+ Inheritance diagram for G4Box:
+ Collaboration diagram for G4Box:

Public Member Functions

 G4Box (const G4String &pName, G4double pX, G4double pY, G4double pZ)
 
virtual ~G4Box ()
 
void ComputeDimensions (G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
 
void Extent (G4ThreeVector &pMin, G4ThreeVector &pMax) const
 
G4bool CalculateExtent (const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const
 
G4double GetXHalfLength () const
 
G4double GetYHalfLength () const
 
G4double GetZHalfLength () const
 
void SetXHalfLength (G4double dx)
 
void SetYHalfLength (G4double dy)
 
void SetZHalfLength (G4double dz)
 
G4double GetCubicVolume ()
 
G4double GetSurfaceArea ()
 
EInside Inside (const G4ThreeVector &p) const
 
G4ThreeVector SurfaceNormal (const G4ThreeVector &p) const
 
G4double DistanceToIn (const G4ThreeVector &p, const G4ThreeVector &v) const
 
G4double DistanceToIn (const G4ThreeVector &p) const
 
G4double DistanceToOut (const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=0, G4ThreeVector *n=0) const
 
G4double DistanceToOut (const G4ThreeVector &p) const
 
G4GeometryType GetEntityType () const
 
G4ThreeVector GetPointOnSurface () const
 
G4VSolidClone () const
 
std::ostream & StreamInfo (std::ostream &os) const
 
void DescribeYourselfTo (G4VGraphicsScene &scene) const
 
G4VisExtent GetExtent () const
 
G4PolyhedronCreatePolyhedron () const
 
 G4Box (__void__ &)
 
 G4Box (const G4Box &rhs)
 
G4Boxoperator= (const G4Box &rhs)
 
- Public Member Functions inherited from G4CSGSolid
 G4CSGSolid (const G4String &pName)
 
virtual ~G4CSGSolid ()
 
virtual G4PolyhedronGetPolyhedron () const
 
 G4CSGSolid (__void__ &)
 
 G4CSGSolid (const G4CSGSolid &rhs)
 
G4CSGSolidoperator= (const G4CSGSolid &rhs)
 
- Public Member Functions inherited from G4VSolid
 G4VSolid (const G4String &name)
 
virtual ~G4VSolid ()
 
G4bool operator== (const G4VSolid &s) const
 
G4String GetName () const
 
void SetName (const G4String &name)
 
G4double GetTolerance () const
 
void DumpInfo () const
 
virtual const G4VSolidGetConstituentSolid (G4int no) const
 
virtual G4VSolidGetConstituentSolid (G4int no)
 
virtual const G4DisplacedSolidGetDisplacedSolidPtr () const
 
virtual G4DisplacedSolidGetDisplacedSolidPtr ()
 
 G4VSolid (__void__ &)
 
 G4VSolid (const G4VSolid &rhs)
 
G4VSolidoperator= (const G4VSolid &rhs)
 
G4double EstimateCubicVolume (G4int nStat, G4double epsilon) const
 
G4double EstimateSurfaceArea (G4int nStat, G4double ell) const
 

Protected Types

enum  ESide {
  kUndefined, kPX, kMX, kPY,
  kMY, kPZ, kMZ
}
 

Private Member Functions

G4ThreeVector ApproxSurfaceNormal (const G4ThreeVector &p) const
 

Private Attributes

G4double fDx
 
G4double fDy
 
G4double fDz
 
G4double delta
 

Additional Inherited Members

- Protected Member Functions inherited from G4CSGSolid
G4double GetRadiusInRing (G4double rmin, G4double rmax) const
 
- Protected Member Functions inherited from G4VSolid
void CalculateClippedPolygonExtent (G4ThreeVectorList &pPolygon, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis, G4double &pMin, G4double &pMax) const
 
void ClipCrossSection (G4ThreeVectorList *pVertices, const G4int pSectionIndex, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis, G4double &pMin, G4double &pMax) const
 
void ClipBetweenSections (G4ThreeVectorList *pVertices, const G4int pSectionIndex, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis, G4double &pMin, G4double &pMax) const
 
void ClipPolygon (G4ThreeVectorList &pPolygon, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis) const
 
- Protected Attributes inherited from G4CSGSolid
G4double fCubicVolume
 
G4double fSurfaceArea
 
G4bool fRebuildPolyhedron
 
G4PolyhedronfpPolyhedron
 
- Protected Attributes inherited from G4VSolid
G4double kCarTolerance
 

Detailed Description

Definition at line 64 of file G4Box.hh.

Member Enumeration Documentation

enum G4Box::ESide
protected
Enumerator
kUndefined 
kPX 
kMX 
kPY 
kMY 
kPZ 
kMZ 

Definition at line 135 of file G4Box.hh.

Constructor & Destructor Documentation

G4Box::G4Box ( const G4String pName,
G4double  pX,
G4double  pY,
G4double  pZ 
)

Definition at line 63 of file G4Box.cc.

References delta, FatalException, G4endl, G4Exception(), G4VSolid::GetName(), and G4VSolid::kCarTolerance.

Referenced by Clone().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4Box::~G4Box ( )
virtual

Definition at line 95 of file G4Box.cc.

G4Box::G4Box ( __void__ &  a)

Definition at line 86 of file G4Box.cc.

G4Box::G4Box ( const G4Box rhs)

Definition at line 103 of file G4Box.cc.

Member Function Documentation

G4ThreeVector G4Box::ApproxSurfaceNormal ( const G4ThreeVector p) const
private

Definition at line 375 of file G4Box.cc.

References fDx, fDy, and fDz.

Referenced by SurfaceNormal().

+ Here is the caller graph for this function:

G4bool G4Box::CalculateExtent ( const EAxis  pAxis,
const G4VoxelLimits pVoxelLimit,
const G4AffineTransform pTransform,
G4double pMin,
G4double pMax 
) const
virtual

Implements G4VSolid.

Definition at line 233 of file G4Box.cc.

References G4BoundingEnvelope::CalculateExtent(), and Extent().

+ Here is the call graph for this function:

G4VSolid * G4Box::Clone ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 864 of file G4Box.cc.

References G4Box().

+ Here is the call graph for this function:

void G4Box::ComputeDimensions ( G4VPVParameterisation p,
const G4int  n,
const G4VPhysicalVolume pRep 
)
virtual

Reimplemented from G4VSolid.

Definition at line 199 of file G4Box.cc.

References G4VPVParameterisation::ComputeDimensions().

+ Here is the call graph for this function:

G4Polyhedron * G4Box::CreatePolyhedron ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 883 of file G4Box.cc.

References fDx, fDy, and fDz.

Referenced by G4GMocrenFileSceneHandler::AddSolid(), and StandaloneVisAction::Draw().

+ Here is the caller graph for this function:

void G4Box::DescribeYourselfTo ( G4VGraphicsScene scene) const
virtual

Implements G4VSolid.

Definition at line 873 of file G4Box.cc.

References G4VGraphicsScene::AddSolid().

+ Here is the call graph for this function:

G4double G4Box::DistanceToIn ( const G4ThreeVector p,
const G4ThreeVector v 
) const
virtual

Implements G4VSolid.

Definition at line 436 of file G4Box.cc.

References delta, fDx, fDy, fDz, kInfinity, and smax.

Referenced by G4SurfaceVoxelizer::DistanceToFirst().

+ Here is the caller graph for this function:

G4double G4Box::DistanceToIn ( const G4ThreeVector p) const
virtual

Implements G4VSolid.

Definition at line 550 of file G4Box.cc.

References fDx, fDy, and fDz.

G4double G4Box::DistanceToOut ( const G4ThreeVector p,
const G4ThreeVector v,
const G4bool  calcNorm = false,
G4bool validNorm = 0,
G4ThreeVector n = 0 
) const
virtual

Implements G4VSolid.

Definition at line 573 of file G4Box.cc.

References delta, G4VSolid::DumpInfo(), fDx, fDy, fDz, G4cout, G4endl, G4Exception(), JustWarning, kInfinity, kMX, kMY, kMZ, kPX, kPY, kPZ, kUndefined, and mm.

+ Here is the call graph for this function:

G4double G4Box::DistanceToOut ( const G4ThreeVector p) const
virtual

Implements G4VSolid.

Definition at line 748 of file G4Box.cc.

References G4VSolid::DumpInfo(), fDx, fDy, fDz, G4cout, G4endl, G4Exception(), Inside(), JustWarning, kOutside, and mm.

+ Here is the call graph for this function:

void G4Box::Extent ( G4ThreeVector pMin,
G4ThreeVector pMax 
) const
virtual

Reimplemented from G4VSolid.

Definition at line 210 of file G4Box.cc.

References G4VSolid::DumpInfo(), fDx, fDy, fDz, G4Exception(), G4VSolid::GetName(), and JustWarning.

Referenced by CalculateExtent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4Box::GetCubicVolume ( )
inlinevirtual

Reimplemented from G4VSolid.

G4GeometryType G4Box::GetEntityType ( ) const
virtual

Implements G4VSolid.

Definition at line 792 of file G4Box.cc.

G4VisExtent G4Box::GetExtent ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 878 of file G4Box.cc.

References fDx, fDy, and fDz.

G4ThreeVector G4Box::GetPointOnSurface ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 825 of file G4Box.cc.

References fDx, fDy, fDz, and G4UniformRand.

G4double G4Box::GetSurfaceArea ( )
inlinevirtual

Reimplemented from G4VSolid.

EInside G4Box::Inside ( const G4ThreeVector p) const
virtual

Implements G4VSolid.

Definition at line 252 of file G4Box.cc.

References delta, fDx, fDy, fDz, kInside, kOutside, and kSurface.

Referenced by DistanceToOut().

+ Here is the caller graph for this function:

G4Box & G4Box::operator= ( const G4Box rhs)

Definition at line 112 of file G4Box.cc.

References delta, fDx, fDy, fDz, and G4CSGSolid::operator=().

+ Here is the call graph for this function:

std::ostream & G4Box::StreamInfo ( std::ostream &  os) const
virtual

Reimplemented from G4CSGSolid.

Definition at line 801 of file G4Box.cc.

References fDx, fDy, fDz, G4VSolid::GetName(), and mm.

+ Here is the call graph for this function:

G4ThreeVector G4Box::SurfaceNormal ( const G4ThreeVector p) const
virtual

Implements G4VSolid.

Definition at line 285 of file G4Box.cc.

References ApproxSurfaceNormal(), delta, fDx, fDy, fDz, G4Exception(), and JustWarning.

+ Here is the call graph for this function:

Member Data Documentation

G4double G4Box::delta
private

Definition at line 147 of file G4Box.hh.

Referenced by DistanceToIn(), DistanceToOut(), G4Box(), Inside(), operator=(), and SurfaceNormal().


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