Geant4  10.01.p02
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)
 
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)
 

Protected Member Functions

G4ThreeVectorListCreateRotatedVertices (const G4AffineTransform &pT, G4int &noPV) 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
 

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
 

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 69 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 131 of file G4Ellipsoid.cc.

References fpPolyhedron.

G4Ellipsoid::G4Ellipsoid ( __void__ &  a)

Definition at line 119 of file G4Ellipsoid.cc.

G4Ellipsoid::G4Ellipsoid ( const G4Ellipsoid rhs)

Definition at line 140 of file G4Ellipsoid.cc.

Member Function Documentation

G4VSolid * G4Ellipsoid::Clone ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 971 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 187 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 1087 of file G4Ellipsoid.cc.

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

Referenced by GetPolyhedron().

+ Here is the caller graph for this function:

G4ThreeVectorList * G4Ellipsoid::CreateRotatedVertices ( const G4AffineTransform pT,
G4int noPV 
) const
protected

Definition at line 846 of file G4Ellipsoid.cc.

References G4VSolid::DumpInfo(), FatalException, G4Exception(), kMeshAngleDefault, G4INCL::Math::pi, G4AffineTransform::TransformPoint(), xSemiAxis, ySemiAxis, zBottomCut, zSemiAxis, and zTopCut.

Referenced by CalculateExtent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4Ellipsoid::DescribeYourselfTo ( G4VGraphicsScene scene) const
virtual

Implements G4VSolid.

Definition at line 1073 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 521 of file G4Ellipsoid.cc.

References A, 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 614 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 657 of file G4Ellipsoid.cc.

References A, 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 780 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:

G4double G4Ellipsoid::GetCubicVolume ( )
inlinevirtual

Reimplemented from G4VSolid.

G4GeometryType G4Ellipsoid::GetEntityType ( ) const
virtual

Implements G4VSolid.

Definition at line 962 of file G4Ellipsoid.cc.

G4VisExtent G4Ellipsoid::GetExtent ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 1078 of file G4Ellipsoid.cc.

References semiAxisMax.

G4ThreeVector G4Ellipsoid::GetPointOnSurface ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 1005 of file G4Ellipsoid.cc.

References alpha, G4INCL::Math::pi, G4INCL::DeJongSpin::shoot(), sqr(), 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 1093 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(), 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(), 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(), and G4tgbGeometryDumper::GetSolidParams().

+ Here is the caller graph for this function:

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

Implements G4VSolid.

Definition at line 445 of file G4Ellipsoid.cc.

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

Referenced by CalculateExtent(), 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 157 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 980 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 487 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 144 of file G4Ellipsoid.hh.

Referenced by operator=().

G4Polyhedron* G4Ellipsoid::fpPolyhedron
mutableprotected

Definition at line 137 of file G4Ellipsoid.hh.

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

G4bool G4Ellipsoid::fRebuildPolyhedron
mutableprotected

Definition at line 136 of file G4Ellipsoid.hh.

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

G4double G4Ellipsoid::fSurfaceArea
private

Definition at line 145 of file G4Ellipsoid.hh.

Referenced by operator=().

G4double G4Ellipsoid::halfCarTolerance
private

Definition at line 142 of file G4Ellipsoid.hh.

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

G4double G4Ellipsoid::halfRadTolerance
private

Definition at line 142 of file G4Ellipsoid.hh.

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

G4double G4Ellipsoid::kRadTolerance
private

Definition at line 141 of file G4Ellipsoid.hh.

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

G4double G4Ellipsoid::semiAxisMax
private

Definition at line 146 of file G4Ellipsoid.hh.

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


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