Geant4  10.03
G4Ellipsoid Class Reference

#include <G4Ellipsoid.hh>

+ Inheritance diagram for G4Ellipsoid:
+ Collaboration diagram for G4Ellipsoid:

Public Member Functions

 G4Ellipsoid (const G4String &pName, G4double pxSemiAxis, G4double pySemiAxis, G4double pzSemiAxis, G4double pzBottomCut=0, G4double pzTopCut=0)
 
virtual ~G4Ellipsoid ()
 
G4double GetSemiAxisMax (G4int i) const
 
G4double GetZBottomCut () const
 
G4double GetZTopCut () const
 
void SetSemiAxis (G4double x, G4double y, G4double z)
 
void SetZCuts (G4double newzBottomCut, G4double newzTopCut)
 
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=G4bool(false), G4bool *validNorm=0, G4ThreeVector *n=0) const
 
G4double DistanceToOut (const G4ThreeVector &p) const
 
G4GeometryType GetEntityType () const
 
G4VSolidClone () const
 
std::ostream & StreamInfo (std::ostream &os) const
 
G4ThreeVector GetPointOnSurface () const
 
G4PolyhedronGetPolyhedron () const
 
void DescribeYourselfTo (G4VGraphicsScene &scene) const
 
G4VisExtent GetExtent () const
 
G4PolyhedronCreatePolyhedron () const
 
 G4Ellipsoid (__void__ &)
 
 G4Ellipsoid (const G4Ellipsoid &rhs)
 
G4Ellipsoidoperator= (const G4Ellipsoid &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 Attributes

G4bool fRebuildPolyhedron
 
G4PolyhedronfpPolyhedron
 
- Protected Attributes inherited from G4VSolid
G4double kCarTolerance
 

Private Attributes

G4double kRadTolerance
 
G4double halfCarTolerance
 
G4double halfRadTolerance
 
G4double fCubicVolume
 
G4double fSurfaceArea
 
G4double xSemiAxis
 
G4double ySemiAxis
 
G4double zSemiAxis
 
G4double semiAxisMax
 
G4double zBottomCut
 
G4double zTopCut
 

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
 

Detailed Description

Definition at line 60 of file G4Ellipsoid.hh.

Constructor & Destructor Documentation

G4Ellipsoid::G4Ellipsoid ( const G4String pName,
G4double  pxSemiAxis,
G4double  pySemiAxis,
G4double  pzSemiAxis,
G4double  pzBottomCut = 0,
G4double  pzTopCut = 0 
)

Definition at line 73 of file G4Ellipsoid.cc.

References FatalErrorInArgument, G4Exception(), G4GeometryTolerance::GetInstance(), G4VSolid::GetName(), G4GeometryTolerance::GetRadialTolerance(), halfCarTolerance, halfRadTolerance, G4VSolid::kCarTolerance, kRadTolerance, SetSemiAxis(), and SetZCuts().

Referenced by Clone().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4Ellipsoid::~G4Ellipsoid ( )
virtual

Definition at line 135 of file G4Ellipsoid.cc.

References fpPolyhedron.

G4Ellipsoid::G4Ellipsoid ( __void__ &  a)

Definition at line 123 of file G4Ellipsoid.cc.

G4Ellipsoid::G4Ellipsoid ( const G4Ellipsoid rhs)

Definition at line 144 of file G4Ellipsoid.cc.

Member Function Documentation

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

Implements G4VSolid.

Definition at line 231 of file G4Ellipsoid.cc.

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

+ Here is the call graph for this function:

G4VSolid * G4Ellipsoid::Clone ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 654 of file G4Ellipsoid.cc.

References G4Ellipsoid().

+ Here is the call graph for this function:

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

Reimplemented from G4VSolid.

Definition at line 191 of file G4Ellipsoid.cc.

References G4VPVParameterisation::ComputeDimensions().

+ Here is the call graph for this function:

G4Polyhedron * G4Ellipsoid::CreatePolyhedron ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 770 of file G4Ellipsoid.cc.

References xSemiAxis, ySemiAxis, zBottomCut, zSemiAxis, and zTopCut.

Referenced by GetPolyhedron().

+ Here is the caller graph for this function:

void G4Ellipsoid::DescribeYourselfTo ( G4VGraphicsScene scene) const
virtual

Implements G4VSolid.

Definition at line 756 of file G4Ellipsoid.cc.

References G4VGraphicsScene::AddSolid().

+ Here is the call graph for this function:

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

Implements G4VSolid.

Definition at line 328 of file G4Ellipsoid.cc.

References A(), B(), C(), halfCarTolerance, halfRadTolerance, Inside(), kInfinity, kOutside, G4INCL::Math::min(), sqr(), SurfaceNormal(), xSemiAxis, ySemiAxis, zBottomCut, zSemiAxis, and zTopCut.

+ Here is the call graph for this function:

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

Implements G4VSolid.

Definition at line 421 of file G4Ellipsoid.cc.

References xSemiAxis, ySemiAxis, zBottomCut, zSemiAxis, and zTopCut.

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

Implements G4VSolid.

Definition at line 464 of file G4Ellipsoid.cc.

References A(), B(), C(), G4VSolid::DumpInfo(), G4endl, G4Exception(), JustWarning, kInfinity, mm, sqr(), xSemiAxis, ySemiAxis, zBottomCut, zSemiAxis, and zTopCut.

+ Here is the call graph for this function:

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

Implements G4VSolid.

Definition at line 587 of file G4Ellipsoid.cc.

References G4VSolid::DumpInfo(), G4endl, G4Exception(), Inside(), JustWarning, kOutside, mm, xSemiAxis, ySemiAxis, zBottomCut, zSemiAxis, and zTopCut.

+ Here is the call graph for this function:

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

Reimplemented from G4VSolid.

Definition at line 202 of file G4Ellipsoid.cc.

References G4VSolid::DumpInfo(), G4Exception(), G4VSolid::GetName(), GetSemiAxisMax(), GetZBottomCut(), GetZTopCut(), JustWarning, G4INCL::Math::max(), and G4INCL::Math::min().

Referenced by CalculateExtent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4Ellipsoid::GetCubicVolume ( )
inlinevirtual

Reimplemented from G4VSolid.

G4GeometryType G4Ellipsoid::GetEntityType ( ) const
virtual

Implements G4VSolid.

Definition at line 645 of file G4Ellipsoid.cc.

G4VisExtent G4Ellipsoid::GetExtent ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 761 of file G4Ellipsoid.cc.

References semiAxisMax.

G4ThreeVector G4Ellipsoid::GetPointOnSurface ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 688 of file G4Ellipsoid.cc.

References alpha, max3(), pi, G4INCL::DeJongSpin::shoot(), sqr(), twopi, xSemiAxis, ySemiAxis, zBottomCut, zSemiAxis, and zTopCut.

+ Here is the call graph for this function:

G4Polyhedron * G4Ellipsoid::GetPolyhedron ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 776 of file G4Ellipsoid.cc.

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

+ Here is the call graph for this function:

G4double G4Ellipsoid::GetSemiAxisMax ( G4int  i) const
inline

Referenced by G4GDMLWriteParamvol::Ellipsoid_dimensionsWrite(), G4GDMLWriteSolids::EllipsoidWrite(), export_G4Ellipsoid(), Extent(), and G4tgbGeometryDumper::GetSolidParams().

+ Here is the caller graph for this function:

G4double G4Ellipsoid::GetSurfaceArea ( )
inlinevirtual

Reimplemented from G4VSolid.

G4double G4Ellipsoid::GetZBottomCut ( ) const
inline

Referenced by G4GDMLWriteParamvol::Ellipsoid_dimensionsWrite(), G4GDMLWriteSolids::EllipsoidWrite(), export_G4Ellipsoid(), Extent(), and G4tgbGeometryDumper::GetSolidParams().

+ Here is the caller graph for this function:

G4double G4Ellipsoid::GetZTopCut ( ) const
inline

Referenced by G4GDMLWriteParamvol::Ellipsoid_dimensionsWrite(), G4GDMLWriteSolids::EllipsoidWrite(), export_G4Ellipsoid(), Extent(), and G4tgbGeometryDumper::GetSolidParams().

+ Here is the caller graph for this function:

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

Implements G4VSolid.

Definition at line 252 of file G4Ellipsoid.cc.

References halfRadTolerance, kInside, kOutside, kSurface, sqr(), xSemiAxis, ySemiAxis, zBottomCut, zSemiAxis, and zTopCut.

Referenced by DistanceToIn(), and DistanceToOut().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 161 of file G4Ellipsoid.cc.

References fCubicVolume, fpPolyhedron, fRebuildPolyhedron, fSurfaceArea, halfCarTolerance, halfRadTolerance, kRadTolerance, G4VSolid::operator=(), semiAxisMax, xSemiAxis, ySemiAxis, zBottomCut, zSemiAxis, and zTopCut.

+ Here is the call graph for this function:

void G4Ellipsoid::SetSemiAxis ( G4double  x,
G4double  y,
G4double  z 
)
inline

Referenced by G4GDMLParameterisation::ComputeDimensions(), export_G4Ellipsoid(), and G4Ellipsoid().

+ Here is the caller graph for this function:

void G4Ellipsoid::SetZCuts ( G4double  newzBottomCut,
G4double  newzTopCut 
)
inline

Referenced by G4GDMLParameterisation::ComputeDimensions(), export_G4Ellipsoid(), and G4Ellipsoid().

+ Here is the caller graph for this function:

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

Implements G4VSolid.

Definition at line 663 of file G4Ellipsoid.cc.

References G4VSolid::GetName(), mm, semiAxisMax, xSemiAxis, ySemiAxis, zBottomCut, zSemiAxis, and zTopCut.

+ Here is the call graph for this function:

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

Implements G4VSolid.

Definition at line 294 of file G4Ellipsoid.cc.

References xSemiAxis, ySemiAxis, zBottomCut, zSemiAxis, and zTopCut.

Referenced by DistanceToIn().

+ Here is the caller graph for this function:

Member Data Documentation

G4double G4Ellipsoid::fCubicVolume
private

Definition at line 142 of file G4Ellipsoid.hh.

Referenced by operator=().

G4Polyhedron* G4Ellipsoid::fpPolyhedron
mutableprotected

Definition at line 135 of file G4Ellipsoid.hh.

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

G4bool G4Ellipsoid::fRebuildPolyhedron
mutableprotected

Definition at line 134 of file G4Ellipsoid.hh.

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

G4double G4Ellipsoid::fSurfaceArea
private

Definition at line 143 of file G4Ellipsoid.hh.

Referenced by operator=().

G4double G4Ellipsoid::halfCarTolerance
private

Definition at line 140 of file G4Ellipsoid.hh.

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

G4double G4Ellipsoid::halfRadTolerance
private

Definition at line 140 of file G4Ellipsoid.hh.

Referenced by DistanceToIn(), G4Ellipsoid(), Inside(), and operator=().

G4double G4Ellipsoid::kRadTolerance
private

Definition at line 139 of file G4Ellipsoid.hh.

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

G4double G4Ellipsoid::semiAxisMax
private

Definition at line 144 of file G4Ellipsoid.hh.

Referenced by GetExtent(), operator=(), and StreamInfo().

G4double G4Ellipsoid::xSemiAxis
private
G4double G4Ellipsoid::ySemiAxis
private
G4double G4Ellipsoid::zBottomCut
private
G4double G4Ellipsoid::zSemiAxis
private
G4double G4Ellipsoid::zTopCut
private

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