Geant4  10.03
G4Trd Class Reference

#include <G4Trd.hh>

+ Inheritance diagram for G4Trd:
+ Collaboration diagram for G4Trd:

Public Types

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

Public Member Functions

 G4Trd (const G4String &pName, G4double pdx1, G4double pdx2, G4double pdy1, G4double pdy2, G4double pdz)
 
 ~G4Trd ()
 
G4double GetXHalfLength1 () const
 
G4double GetXHalfLength2 () const
 
G4double GetYHalfLength1 () const
 
G4double GetYHalfLength2 () const
 
G4double GetZHalfLength () const
 
void SetXHalfLength1 (G4double val)
 
void SetXHalfLength2 (G4double val)
 
void SetYHalfLength1 (G4double val)
 
void SetYHalfLength2 (G4double val)
 
void SetZHalfLength (G4double val)
 
G4double GetCubicVolume ()
 
G4double GetSurfaceArea ()
 
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
 
void CheckAndSetAllParameters (G4double pdx1, G4double pdx2, G4double pdy1, G4double pdy2, G4double pdz)
 
void SetAllParameters (G4double pdx1, G4double pdx2, G4double pdy1, G4double pdy2, G4double pdz)
 
G4GeometryType GetEntityType () const
 
G4ThreeVector GetPointOnSurface () const
 
G4VSolidClone () const
 
std::ostream & StreamInfo (std::ostream &os) const
 
void DescribeYourselfTo (G4VGraphicsScene &scene) const
 
G4PolyhedronCreatePolyhedron () const
 
 G4Trd (__void__ &)
 
 G4Trd (const G4Trd &rhs)
 
G4Trdoperator= (const G4Trd &rhs)
 
G4ThreeVector ApproxSurfaceNormal (const G4ThreeVector &p) const
 
- 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 G4VisExtent GetExtent () 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
 

Private Attributes

G4double fDx1
 
G4double fDx2
 
G4double fDy1
 
G4double fDy2
 
G4double fDz
 

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 72 of file G4Trd.hh.

Member Enumeration Documentation

Enumerator
kUndefined 
kPX 
kMX 
kPY 
kMY 
kPZ 
kMZ 

Definition at line 159 of file G4Trd.hh.

Constructor & Destructor Documentation

G4Trd::G4Trd ( const G4String pName,
G4double  pdx1,
G4double  pdx2,
G4double  pdy1,
G4double  pdy2,
G4double  pdz 
)

Definition at line 64 of file G4Trd.cc.

References CheckAndSetAllParameters().

Referenced by Clone().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4Trd::~G4Trd ( )

Definition at line 132 of file G4Trd.cc.

G4Trd::G4Trd ( __void__ &  a)

Definition at line 123 of file G4Trd.cc.

G4Trd::G4Trd ( const G4Trd rhs)

Definition at line 140 of file G4Trd.cc.

Member Function Documentation

G4ThreeVector G4Trd::ApproxSurfaceNormal ( const G4ThreeVector p) const

Definition at line 410 of file G4Trd.cc.

References fcos(), fDx1, fDx2, fDy1, fDy2, and fDz.

Referenced by SurfaceNormal().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Implements G4VSolid.

Definition at line 227 of file G4Trd.cc.

References G4BoundingEnvelope::BoundingBoxVsVoxelLimits(), G4BoundingEnvelope::CalculateExtent(), Extent(), GetXHalfLength1(), GetXHalfLength2(), GetYHalfLength1(), GetYHalfLength2(), and GetZHalfLength().

+ Here is the call graph for this function:

void G4Trd::CheckAndSetAllParameters ( G4double  pdx1,
G4double  pdx2,
G4double  pdy1,
G4double  pdy2,
G4double  pdz 
)

Definition at line 77 of file G4Trd.cc.

References FatalException, G4CSGSolid::fCubicVolume, fDx1, fDx2, fDy1, fDy2, fDz, G4CSGSolid::fRebuildPolyhedron, G4CSGSolid::fSurfaceArea, G4endl, G4Exception(), G4VSolid::GetName(), G4VSolid::kCarTolerance, and G4INCL::Math::max().

Referenced by G4Trd(), and SetAllParameters().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4VSolid * G4Trd::Clone ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 1229 of file G4Trd.cc.

References G4Trd().

+ Here is the call graph for this function:

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

Reimplemented from G4VSolid.

Definition at line 185 of file G4Trd.cc.

References G4VPVParameterisation::ComputeDimensions().

+ Here is the call graph for this function:

G4Polyhedron * G4Trd::CreatePolyhedron ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 1333 of file G4Trd.cc.

References fDx1, fDx2, fDy1, fDy2, and fDz.

void G4Trd::DescribeYourselfTo ( G4VGraphicsScene scene) const
virtual

Implements G4VSolid.

Definition at line 1328 of file G4Trd.cc.

References G4VGraphicsScene::AddSolid().

+ Here is the call graph for this function:

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

Implements G4VSolid.

Definition at line 503 of file G4Trd.cc.

References fDx1, fDx2, fDy1, fDy2, fDz, G4VSolid::kCarTolerance, kInfinity, and smax.

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

Implements G4VSolid.

Definition at line 729 of file G4Trd.cc.

References fDx1, fDx2, fDy1, fDy2, and fDz.

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

Implements G4VSolid.

Definition at line 776 of file G4Trd.cc.

References G4VSolid::DumpInfo(), fDx1, fDx2, fDy1, fDy2, fDz, G4Exception(), JustWarning, G4VSolid::kCarTolerance, kInfinity, kMX, kMY, kMZ, kPX, kPY, kPZ, and kUndefined.

+ Here is the call graph for this function:

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

Implements G4VSolid.

Definition at line 1168 of file G4Trd.cc.

References G4VSolid::DumpInfo(), fDx1, fDx2, fDy1, fDy2, fDz, G4cout, G4endl, G4Exception(), Inside(), JustWarning, kOutside, and mm.

+ Here is the call graph for this function:

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

Reimplemented from G4VSolid.

Definition at line 196 of file G4Trd.cc.

References G4VSolid::DumpInfo(), G4Exception(), G4VSolid::GetName(), GetXHalfLength1(), GetXHalfLength2(), GetYHalfLength1(), GetYHalfLength2(), GetZHalfLength(), JustWarning, and G4INCL::Math::max().

Referenced by CalculateExtent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4Trd::GetCubicVolume ( )
inlinevirtual

Reimplemented from G4VSolid.

G4GeometryType G4Trd::GetEntityType ( ) const
virtual

Implements G4VSolid.

Definition at line 1220 of file G4Trd.cc.

G4ThreeVector G4Trd::GetPointOnSurface ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 1265 of file G4Trd.cc.

References fDx1, fDx2, fDy1, fDy2, fDz, and G4UniformRand.

G4double G4Trd::GetSurfaceArea ( )
inlinevirtual

Reimplemented from G4VSolid.

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

Implements G4VSolid.

Definition at line 278 of file G4Trd.cc.

References fDx1, fDx2, fDy1, fDy2, fDz, G4VSolid::kCarTolerance, kInside, kOutside, and kSurface.

Referenced by DistanceToOut().

+ Here is the caller graph for this function:

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

Definition at line 150 of file G4Trd.cc.

References fDx1, fDx2, fDy1, fDy2, fDz, and G4CSGSolid::operator=().

+ Here is the call graph for this function:

void G4Trd::SetAllParameters ( G4double  pdx1,
G4double  pdx2,
G4double  pdy1,
G4double  pdy2,
G4double  pdz 
)

Definition at line 173 of file G4Trd.cc.

References CheckAndSetAllParameters().

Referenced by G4ParameterisationTrdX::ComputeDimensions(), G4ParameterisationTrdY::ComputeDimensions(), and G4ParameterisationTrdZ::ComputeDimensions().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4Trd::SetXHalfLength1 ( G4double  val)
inline

Referenced by G4GDMLParameterisation::ComputeDimensions(), and export_G4Trd().

+ Here is the caller graph for this function:

void G4Trd::SetXHalfLength2 ( G4double  val)
inline

Referenced by G4GDMLParameterisation::ComputeDimensions(), and export_G4Trd().

+ Here is the caller graph for this function:

void G4Trd::SetYHalfLength1 ( G4double  val)
inline

Referenced by G4GDMLParameterisation::ComputeDimensions(), and export_G4Trd().

+ Here is the caller graph for this function:

void G4Trd::SetYHalfLength2 ( G4double  val)
inline

Referenced by G4GDMLParameterisation::ComputeDimensions(), and export_G4Trd().

+ Here is the caller graph for this function:

void G4Trd::SetZHalfLength ( G4double  val)
inline

Referenced by G4GDMLParameterisation::ComputeDimensions(), and export_G4Trd().

+ Here is the caller graph for this function:

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

Reimplemented from G4CSGSolid.

Definition at line 1238 of file G4Trd.cc.

References fDx1, fDx2, fDy1, fDy2, fDz, G4VSolid::GetName(), and mm.

+ Here is the call graph for this function:

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

Implements G4VSolid.

Definition at line 341 of file G4Trd.cc.

References ApproxSurfaceNormal(), fcos(), fDx1, fDx2, fDy1, fDy2, fDz, G4Exception(), JustWarning, and G4VSolid::kCarTolerance.

+ Here is the call graph for this function:

Member Data Documentation


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