Geant4  10.00.p01
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)
 
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)
 

Static Public Member Functions

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

Protected Member Functions

G4ThreeVectorListCreateRotatedVertices (const G4AffineTransform &pTransform) 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
 
G4double EstimateCubicVolume (G4int nStat, G4double epsilon) const
 
G4double EstimateSurfaceArea (G4int nStat, G4double ell) const
 

Private Member Functions

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

Private Attributes

G4double fCubicVolume
 
G4double fSurfaceArea
 
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 76263 2013-11-08 11:41:52Z gcosmo $"
 

Additional Inherited Members

- Protected Attributes inherited from G4VSolid
G4double kCarTolerance
 

Detailed Description

Definition at line 65 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 89 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 204 of file G4Tet.cc.

References fpPolyhedron.

G4Tet::G4Tet ( __void__ &  a)

Definition at line 189 of file G4Tet.cc.

G4Tet::G4Tet ( const G4Tet rhs)

Definition at line 213 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
G4bool G4Tet::CheckDegeneracy ( G4ThreeVector  anchor,
G4ThreeVector  p2,
G4ThreeVector  p3,
G4ThreeVector  p4 
)
static

Definition at line 265 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 700 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 281 of file G4Tet.cc.

G4Polyhedron * G4Tet::CreatePolyhedron ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 833 of file G4Tet.cc.

References fAnchor, fP2, fP3, and fP4.

Referenced by GetPolyhedron().

+ Here is the caller graph for this function:

G4ThreeVectorList * G4Tet::CreateRotatedVertices ( const G4AffineTransform pTransform) const
protected

Definition at line 660 of file G4Tet.cc.

References G4VSolid::DumpInfo(), fAnchor, FatalException, fP2, fP3, fP4, G4Exception(), and G4AffineTransform::TransformPoint().

+ Here is the call graph for this function:

const char* G4Tet::CVSFileVers ( )
inline

Definition at line 134 of file G4Tet.hh.

References CVSVers.

const char* G4Tet::CVSHeaderVers ( )
inline

Definition at line 132 of file G4Tet.hh.

void G4Tet::DescribeYourselfTo ( G4VGraphicsScene scene) const
virtual

Implements G4VSolid.

Definition at line 815 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 477 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 558 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 570 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 639 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:

G4double G4Tet::GetCubicVolume ( )
virtual

Reimplemented from G4VSolid.

Definition at line 795 of file G4Tet.cc.

References fCubicVolume.

G4GeometryType G4Tet::GetEntityType ( ) const
virtual

Implements G4VSolid.

Definition at line 691 of file G4Tet.cc.

G4VisExtent G4Tet::GetExtent ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 824 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 738 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 759 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 852 of file G4Tet.cc.

References CreatePolyhedron(), fpPolyhedron, and G4Polyhedron::GetNumberOfRotationStepsAtTimeOfCreation().

+ Here is the call graph for this function:

G4double G4Tet::GetSurfaceArea ( )
virtual

Reimplemented from G4VSolid.

Definition at line 804 of file G4Tet.cc.

References fSurfaceArea.

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

Definition at line 780 of file G4Tet.cc.

References fAnchor, fP2, fP3, and fP4.

Referenced by G4GDMLWriteSolids::TetWrite().

+ Here is the caller graph for this function:

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

Implements G4VSolid.

Definition at line 386 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 234 of file G4Tet.cc.

References fAnchor, fCdotN123, fCdotN134, fCdotN142, fCdotN234, fCubicVolume, fDx, fDy, fDz, fMaxSize, fMiddle, fNormal123, fNormal134, fNormal142, fNormal234, fP2, fP3, fP4, fpPolyhedron, 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 136 of file G4Tet.hh.

References warningFlag.

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

Implements G4VSolid.

Definition at line 709 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 76263 2013-11-08 11:41:52Z gcosmo $"
staticprivate

Definition at line 160 of file G4Tet.hh.

Referenced by CVSFileVers().

G4double G4Tet::fCdotN123
private

Definition at line 169 of file G4Tet.hh.

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

G4double G4Tet::fCdotN134
private

Definition at line 169 of file G4Tet.hh.

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

G4double G4Tet::fCdotN142
private

Definition at line 169 of file G4Tet.hh.

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

G4double G4Tet::fCdotN234
private

Definition at line 169 of file G4Tet.hh.

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

G4double G4Tet::fCubicVolume
private

Definition at line 154 of file G4Tet.hh.

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

G4double G4Tet::fDx
private

Definition at line 171 of file G4Tet.hh.

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

G4double G4Tet::fDy
private

Definition at line 171 of file G4Tet.hh.

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

G4double G4Tet::fDz
private

Definition at line 171 of file G4Tet.hh.

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

G4double G4Tet::fMaxSize
private

Definition at line 171 of file G4Tet.hh.

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

G4ThreeVector G4Tet::fMiddle
private

Definition at line 164 of file G4Tet.hh.

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

G4ThreeVector G4Tet::fNormal123
private

Definition at line 165 of file G4Tet.hh.

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

G4ThreeVector G4Tet::fNormal134
private

Definition at line 165 of file G4Tet.hh.

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

G4ThreeVector G4Tet::fNormal142
private

Definition at line 165 of file G4Tet.hh.

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

G4ThreeVector G4Tet::fNormal234
private

Definition at line 165 of file G4Tet.hh.

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

G4Polyhedron* G4Tet::fpPolyhedron
mutableprivate

Definition at line 156 of file G4Tet.hh.

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

G4double G4Tet::fSurfaceArea
private

Definition at line 154 of file G4Tet.hh.

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

G4double G4Tet::fTol
private

Definition at line 171 of file G4Tet.hh.

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

G4double G4Tet::fXMax
private

Definition at line 170 of file G4Tet.hh.

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

G4double G4Tet::fXMin
private

Definition at line 170 of file G4Tet.hh.

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

G4double G4Tet::fYMax
private

Definition at line 170 of file G4Tet.hh.

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

G4double G4Tet::fYMin
private

Definition at line 170 of file G4Tet.hh.

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

G4double G4Tet::fZMax
private

Definition at line 170 of file G4Tet.hh.

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

G4double G4Tet::fZMin
private

Definition at line 170 of file G4Tet.hh.

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

G4bool G4Tet::warningFlag
private

Definition at line 167 of file G4Tet.hh.

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


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