Geant4  10.03
G4Tet Class Reference

#include <G4Tet.hh>

+ Inheritance diagram for G4Tet:
+ Collaboration diagram for G4Tet:

Public Member Functions

 G4Tet (const G4String &pName, G4ThreeVector anchor, G4ThreeVector p2, G4ThreeVector p3, G4ThreeVector p4, G4bool *degeneracyFlag=0)
 
virtual ~G4Tet ()
 
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
 
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
 
G4double GetCubicVolume ()
 
G4double GetSurfaceArea ()
 
G4GeometryType GetEntityType () const
 
G4VSolidClone () const
 
std::ostream & StreamInfo (std::ostream &os) const
 
G4ThreeVector GetPointOnSurface () const
 
void DescribeYourselfTo (G4VGraphicsScene &scene) const
 
G4VisExtent GetExtent () const
 
G4PolyhedronCreatePolyhedron () const
 
G4PolyhedronGetPolyhedron () const
 
 G4Tet (__void__ &)
 
 G4Tet (const G4Tet &rhs)
 
G4Tetoperator= (const G4Tet &rhs)
 
const char * CVSHeaderVers ()
 
const char * CVSFileVers ()
 
void PrintWarnings (G4bool flag)
 
std::vector< G4ThreeVectorGetVertices () const
 
- 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
 

Static Public Member Functions

static G4bool CheckDegeneracy (G4ThreeVector anchor, G4ThreeVector p2, G4ThreeVector p3, G4ThreeVector p4)
 

Private Member Functions

G4ThreeVector GetPointOnFace (G4ThreeVector p1, G4ThreeVector p2, G4ThreeVector p3, G4double &area) const
 

Private Attributes

G4double fCubicVolume
 
G4double fSurfaceArea
 
G4bool fRebuildPolyhedron
 
G4PolyhedronfpPolyhedron
 
G4ThreeVector fAnchor
 
G4ThreeVector fP2
 
G4ThreeVector fP3
 
G4ThreeVector fP4
 
G4ThreeVector fMiddle
 
G4ThreeVector fNormal123
 
G4ThreeVector fNormal142
 
G4ThreeVector fNormal134
 
G4ThreeVector fNormal234
 
G4bool warningFlag
 
G4double fCdotN123
 
G4double fCdotN142
 
G4double fCdotN134
 
G4double fCdotN234
 
G4double fXMin
 
G4double fXMax
 
G4double fYMin
 
G4double fYMax
 
G4double fZMin
 
G4double fZMax
 
G4double fDx
 
G4double fDy
 
G4double fDz
 
G4double fTol
 
G4double fMaxSize
 

Static Private Attributes

static const char CVSVers [] ="$Id: G4Tet.cc 101118 2016-11-07 09:10:59Z gcosmo $"
 

Additional Inherited Members

- 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 G4VSolid
G4double kCarTolerance
 

Detailed Description

Definition at line 66 of file G4Tet.hh.

Constructor & Destructor Documentation

G4Tet::G4Tet ( const G4String pName,
G4ThreeVector  anchor,
G4ThreeVector  p2,
G4ThreeVector  p3,
G4ThreeVector  p4,
G4bool degeneracyFlag = 0 
)

Definition at line 99 of file G4Tet.cc.

References fAnchor, FatalException, fCdotN123, fCdotN134, fCdotN142, fCdotN234, fCubicVolume, fDx, fDy, fDz, fMaxSize, fMiddle, fNormal123, fNormal134, fNormal142, fNormal234, fP2, fP3, fP4, fSurfaceArea, fTol, fXMax, fXMin, fYMax, fYMin, fZMax, fZMin, G4Exception(), G4INCL::Math::max(), and G4INCL::Math::min().

Referenced by CheckDegeneracy(), and Clone().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4Tet::~G4Tet ( )
virtual

Definition at line 215 of file G4Tet.cc.

References fpPolyhedron.

G4Tet::G4Tet ( __void__ &  a)

Definition at line 199 of file G4Tet.cc.

G4Tet::G4Tet ( const G4Tet rhs)

Definition at line 224 of file G4Tet.cc.

Member Function Documentation

G4bool G4Tet::CalculateExtent ( const EAxis  pAxis,
const G4VoxelLimits pVoxelLimit,
const G4AffineTransform pTransform,
G4double pmin,
G4double pmax 
) const
virtual

Implements G4VSolid.

Definition at line 327 of file G4Tet.cc.

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

+ Here is the call graph for this function:

G4bool G4Tet::CheckDegeneracy ( G4ThreeVector  anchor,
G4ThreeVector  p2,
G4ThreeVector  p3,
G4ThreeVector  p4 
)
static

Definition at line 278 of file G4Tet.cc.

References G4Tet().

+ Here is the call graph for this function:

G4VSolid * G4Tet::Clone ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 653 of file G4Tet.cc.

References G4Tet().

+ Here is the call graph for this function:

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

Reimplemented from G4VSolid.

Definition at line 294 of file G4Tet.cc.

G4Polyhedron * G4Tet::CreatePolyhedron ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 786 of file G4Tet.cc.

References fAnchor, fP2, fP3, and fP4.

Referenced by GetPolyhedron().

+ Here is the caller graph for this function:

const char* G4Tet::CVSFileVers ( )
inline

Definition at line 137 of file G4Tet.hh.

References CVSVers.

const char* G4Tet::CVSHeaderVers ( )
inline

Definition at line 135 of file G4Tet.hh.

void G4Tet::DescribeYourselfTo ( G4VGraphicsScene scene) const
virtual

Implements G4VSolid.

Definition at line 768 of file G4Tet.cc.

References G4VGraphicsScene::AddSolid().

+ Here is the call graph for this function:

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

Implements G4VSolid.

Definition at line 463 of file G4Tet.cc.

References fCdotN123, fCdotN134, fCdotN142, fCdotN234, fNormal123, fNormal134, fNormal142, fNormal234, fTol, kInfinity, and G4INCL::Math::max().

+ Here is the call graph for this function:

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

Implements G4VSolid.

Definition at line 544 of file G4Tet.cc.

References fMaxSize, fMiddle, fTol, and G4INCL::Math::max().

+ Here is the call graph for this function:

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

Implements G4VSolid.

Definition at line 556 of file G4Tet.cc.

References G4VSolid::DumpInfo(), fCdotN123, fCdotN134, fCdotN142, fCdotN234, fNormal123, fNormal134, fNormal142, fNormal234, fTol, G4endl, G4Exception(), JustWarning, kInfinity, G4INCL::Math::max(), G4INCL::Math::min(), mm, CLHEP::normal(), and warningFlag.

+ Here is the call graph for this function:

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

Implements G4VSolid.

Definition at line 625 of file G4Tet.cc.

References fCdotN123, fCdotN134, fCdotN142, fCdotN234, fNormal123, fNormal134, fNormal142, fNormal234, fTol, and G4INCL::Math::min().

+ Here is the call graph for this function:

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

Reimplemented from G4VSolid.

Definition at line 304 of file G4Tet.cc.

References G4VSolid::DumpInfo(), fXMax, fXMin, fYMax, fYMin, fZMax, fZMin, 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 G4Tet::GetCubicVolume ( )
virtual

Reimplemented from G4VSolid.

Definition at line 748 of file G4Tet.cc.

References fCubicVolume.

G4GeometryType G4Tet::GetEntityType ( ) const
virtual

Implements G4VSolid.

Definition at line 644 of file G4Tet.cc.

G4VisExtent G4Tet::GetExtent ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 777 of file G4Tet.cc.

References fXMax, fXMin, fYMax, fYMin, fZMax, and fZMin.

G4ThreeVector G4Tet::GetPointOnFace ( G4ThreeVector  p1,
G4ThreeVector  p2,
G4ThreeVector  p3,
G4double area 
) const
private

Definition at line 691 of file G4Tet.cc.

References G4INCL::DeJongSpin::shoot().

Referenced by GetPointOnSurface().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4ThreeVector G4Tet::GetPointOnSurface ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 712 of file G4Tet.cc.

References fAnchor, fP2, fP3, fP4, GetPointOnFace(), and G4INCL::DeJongSpin::shoot().

+ Here is the call graph for this function:

G4Polyhedron * G4Tet::GetPolyhedron ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 805 of file G4Tet.cc.

References CreatePolyhedron(), fpPolyhedron, fRebuildPolyhedron, G4Polyhedron::GetNumberOfRotationStepsAtTimeOfCreation(), and G4TemplateAutoLock< M, L, U >::unlock().

+ Here is the call graph for this function:

G4double G4Tet::GetSurfaceArea ( )
virtual

Reimplemented from G4VSolid.

Definition at line 757 of file G4Tet.cc.

References fSurfaceArea.

std::vector< G4ThreeVector > G4Tet::GetVertices ( ) const

Definition at line 733 of file G4Tet.cc.

References fAnchor, fP2, fP3, and fP4.

Referenced by CalculateExtent(), and G4GDMLWriteSolids::TetWrite().

+ Here is the caller graph for this function:

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

Implements G4VSolid.

Definition at line 372 of file G4Tet.cc.

References fCdotN123, fCdotN134, fCdotN142, fCdotN234, fNormal123, fNormal134, fNormal142, fNormal234, fTol, kInside, kOutside, and kSurface.

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

Definition at line 245 of file G4Tet.cc.

References fAnchor, fCdotN123, fCdotN134, fCdotN142, fCdotN234, fCubicVolume, fDx, fDy, fDz, fMaxSize, fMiddle, fNormal123, fNormal134, fNormal142, fNormal234, fP2, fP3, fP4, fpPolyhedron, fRebuildPolyhedron, fSurfaceArea, fTol, fXMax, fXMin, fYMax, fYMin, fZMax, fZMin, G4VSolid::operator=(), and warningFlag.

+ Here is the call graph for this function:

void G4Tet::PrintWarnings ( G4bool  flag)
inline

Definition at line 139 of file G4Tet.hh.

References warningFlag.

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

Implements G4VSolid.

Definition at line 662 of file G4Tet.cc.

References fAnchor, fNormal123, fNormal134, fNormal142, fNormal234, fP2, fP3, fP4, G4VSolid::GetName(), and mm.

+ Here is the call graph for this function:

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

Member Data Documentation

const char G4Tet::CVSVers ="$Id: G4Tet.cc 101118 2016-11-07 09:10:59Z gcosmo $"
staticprivate

Definition at line 157 of file G4Tet.hh.

Referenced by CVSFileVers().

G4ThreeVector G4Tet::fAnchor
private

Definition at line 161 of file G4Tet.hh.

Referenced by CreatePolyhedron(), G4Tet(), GetPointOnSurface(), GetVertices(), operator=(), and StreamInfo().

G4double G4Tet::fCdotN123
private

Definition at line 166 of file G4Tet.hh.

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

G4double G4Tet::fCdotN134
private

Definition at line 166 of file G4Tet.hh.

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

G4double G4Tet::fCdotN142
private

Definition at line 166 of file G4Tet.hh.

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

G4double G4Tet::fCdotN234
private

Definition at line 166 of file G4Tet.hh.

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

G4double G4Tet::fCubicVolume
private

Definition at line 150 of file G4Tet.hh.

Referenced by G4Tet(), GetCubicVolume(), and operator=().

G4double G4Tet::fDx
private

Definition at line 168 of file G4Tet.hh.

Referenced by G4Tet(), and operator=().

G4double G4Tet::fDy
private

Definition at line 168 of file G4Tet.hh.

Referenced by G4Tet(), and operator=().

G4double G4Tet::fDz
private

Definition at line 168 of file G4Tet.hh.

Referenced by G4Tet(), and operator=().

G4double G4Tet::fMaxSize
private

Definition at line 168 of file G4Tet.hh.

Referenced by DistanceToIn(), G4Tet(), and operator=().

G4ThreeVector G4Tet::fMiddle
private

Definition at line 161 of file G4Tet.hh.

Referenced by DistanceToIn(), G4Tet(), and operator=().

G4ThreeVector G4Tet::fNormal123
private

Definition at line 162 of file G4Tet.hh.

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

G4ThreeVector G4Tet::fNormal134
private

Definition at line 162 of file G4Tet.hh.

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

G4ThreeVector G4Tet::fNormal142
private

Definition at line 162 of file G4Tet.hh.

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

G4ThreeVector G4Tet::fNormal234
private

Definition at line 162 of file G4Tet.hh.

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

G4ThreeVector G4Tet::fP2
private

Definition at line 161 of file G4Tet.hh.

Referenced by CreatePolyhedron(), G4Tet(), GetPointOnSurface(), GetVertices(), operator=(), and StreamInfo().

G4ThreeVector G4Tet::fP3
private

Definition at line 161 of file G4Tet.hh.

Referenced by CreatePolyhedron(), G4Tet(), GetPointOnSurface(), GetVertices(), operator=(), and StreamInfo().

G4ThreeVector G4Tet::fP4
private

Definition at line 161 of file G4Tet.hh.

Referenced by CreatePolyhedron(), G4Tet(), GetPointOnSurface(), GetVertices(), operator=(), and StreamInfo().

G4Polyhedron* G4Tet::fpPolyhedron
mutableprivate

Definition at line 153 of file G4Tet.hh.

Referenced by GetPolyhedron(), operator=(), and ~G4Tet().

G4bool G4Tet::fRebuildPolyhedron
mutableprivate

Definition at line 152 of file G4Tet.hh.

Referenced by GetPolyhedron(), and operator=().

G4double G4Tet::fSurfaceArea
private

Definition at line 150 of file G4Tet.hh.

Referenced by G4Tet(), GetSurfaceArea(), and operator=().

G4double G4Tet::fTol
private

Definition at line 168 of file G4Tet.hh.

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

G4double G4Tet::fXMax
private

Definition at line 167 of file G4Tet.hh.

Referenced by Extent(), G4Tet(), GetExtent(), and operator=().

G4double G4Tet::fXMin
private

Definition at line 167 of file G4Tet.hh.

Referenced by Extent(), G4Tet(), GetExtent(), and operator=().

G4double G4Tet::fYMax
private

Definition at line 167 of file G4Tet.hh.

Referenced by Extent(), G4Tet(), GetExtent(), and operator=().

G4double G4Tet::fYMin
private

Definition at line 167 of file G4Tet.hh.

Referenced by Extent(), G4Tet(), GetExtent(), and operator=().

G4double G4Tet::fZMax
private

Definition at line 167 of file G4Tet.hh.

Referenced by Extent(), G4Tet(), GetExtent(), and operator=().

G4double G4Tet::fZMin
private

Definition at line 167 of file G4Tet.hh.

Referenced by Extent(), G4Tet(), GetExtent(), and operator=().

G4bool G4Tet::warningFlag
private

Definition at line 164 of file G4Tet.hh.

Referenced by DistanceToOut(), operator=(), and PrintWarnings().


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