Geant4  10.01.p02
G4EllipticalTube Class Reference

#include <G4EllipticalTube.hh>

+ Inheritance diagram for G4EllipticalTube:
+ Collaboration diagram for G4EllipticalTube:

Public Member Functions

 G4EllipticalTube (const G4String &name, G4double theDx, G4double theDy, G4double theDz)
 
virtual ~G4EllipticalTube ()
 
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
 
G4GeometryType GetEntityType () const
 
G4VSolidClone () const
 
std::ostream & StreamInfo (std::ostream &os) const
 
G4double GetCubicVolume ()
 
G4double GetSurfaceArea ()
 
G4ThreeVector GetPointOnSurface () const
 
G4PolyhedronCreatePolyhedron () const
 
G4PolyhedronGetPolyhedron () const
 
void DescribeYourselfTo (G4VGraphicsScene &scene) const
 
G4VisExtent GetExtent () const
 
G4double GetDx () const
 
G4double GetDy () const
 
G4double GetDz () const
 
void SetDx (const G4double newDx)
 
void SetDy (const G4double newDy)
 
void SetDz (const G4double newDz)
 
 G4EllipticalTube (__void__ &)
 
 G4EllipticalTube (const G4EllipticalTube &rhs)
 
G4EllipticalTubeoperator= (const G4EllipticalTube &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
 
virtual void ComputeDimensions (G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
 
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

G4double CheckXY (const G4double x, const G4double y, const G4double toler) const
 
G4double CheckXY (const G4double x, const G4double y) const
 
G4int IntersectXY (const G4ThreeVector &p, const G4ThreeVector &v, G4double s[2]) 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

G4double dx
 
G4double dy
 
G4double dz
 
- Protected Attributes inherited from G4VSolid
G4double kCarTolerance
 

Private Member Functions

G4ThreeVector ApproxSurfaceNormal (const G4ThreeVector &p) const
 

Private Attributes

G4double halfTol
 
G4double fCubicVolume
 
G4double fSurfaceArea
 
G4bool fRebuildPolyhedron
 
G4PolyhedronfpPolyhedron
 

Detailed Description

Definition at line 56 of file G4EllipticalTube.hh.

Constructor & Destructor Documentation

G4EllipticalTube::G4EllipticalTube ( const G4String name,
G4double  theDx,
G4double  theDy,
G4double  theDz 
)

Definition at line 66 of file G4EllipticalTube.cc.

References dx, dy, dz, halfTol, and G4VSolid::kCarTolerance.

Referenced by Clone().

+ Here is the caller graph for this function:

G4EllipticalTube::~G4EllipticalTube ( )
virtual

Definition at line 96 of file G4EllipticalTube.cc.

References fpPolyhedron.

G4EllipticalTube::G4EllipticalTube ( __void__ &  a)

Definition at line 85 of file G4EllipticalTube.cc.

G4EllipticalTube::G4EllipticalTube ( const G4EllipticalTube rhs)

Definition at line 105 of file G4EllipticalTube.cc.

Member Function Documentation

G4ThreeVector G4EllipticalTube::ApproxSurfaceNormal ( const G4ThreeVector p) const
private

Definition at line 338 of file G4EllipticalTube.cc.

References CheckXY(), DBL_MAX, DBL_MIN, dx, dy, and dz.

Referenced by SurfaceNormal().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4EllipticalTube::CalculateExtent ( const EAxis  pAxis,
const G4VoxelLimits pVoxelLimit,
const G4AffineTransform pTransform,
G4double pmin,
G4double pmax 
) const
virtual
G4double G4EllipticalTube::CheckXY ( const G4double  x,
const G4double  y,
const G4double  toler 
) const
inlineprotected

Referenced by ApproxSurfaceNormal(), DistanceToIn(), DistanceToOut(), Inside(), and SurfaceNormal().

+ Here is the caller graph for this function:

G4double G4EllipticalTube::CheckXY ( const G4double  x,
const G4double  y 
) const
inlineprotected
G4VSolid * G4EllipticalTube::Clone ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 859 of file G4EllipticalTube.cc.

References G4EllipticalTube().

+ Here is the call graph for this function:

G4Polyhedron * G4EllipticalTube::CreatePolyhedron ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 962 of file G4EllipticalTube.cc.

References dx, dy, and dz.

Referenced by GetPolyhedron().

+ Here is the caller graph for this function:

void G4EllipticalTube::DescribeYourselfTo ( G4VGraphicsScene scene) const
virtual

Implements G4VSolid.

Definition at line 998 of file G4EllipticalTube.cc.

References G4VGraphicsScene::AddSolid().

+ Here is the call graph for this function:

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

Implements G4VSolid.

Definition at line 376 of file G4EllipticalTube.cc.

References CheckXY(), dx, dy, dz, halfTol, IntersectXY(), kInfinity, and n.

+ Here is the call graph for this function:

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

Implements G4VSolid.

Definition at line 532 of file G4EllipticalTube.cc.

References CheckXY(), DBL_MIN, dx, dy, dz, and halfTol.

+ Here is the call graph for this function:

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

Implements G4VSolid.

Definition at line 593 of file G4EllipticalTube.cc.

References CheckXY(), G4VSolid::DumpInfo(), dx, dy, dz, G4endl, G4Exception(), halfTol, IntersectXY(), JustWarning, kInfinity, mm, and n.

+ Here is the call graph for this function:

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

Implements G4VSolid.

Definition at line 732 of file G4EllipticalTube.cc.

References DBL_MIN, dx, dy, dz, and halfTol.

G4double G4EllipticalTube::GetCubicVolume ( )
virtual

Reimplemented from G4VSolid.

Definition at line 868 of file G4EllipticalTube.cc.

References fCubicVolume, and G4VSolid::GetCubicVolume().

+ Here is the call graph for this function:

G4double G4EllipticalTube::GetDx ( ) const
inline

Referenced by G4GDMLWriteSolids::EltubeWrite(), export_G4EllipticalTube(), and G4tgbGeometryDumper::GetSolidParams().

+ Here is the caller graph for this function:

G4double G4EllipticalTube::GetDy ( ) const
inline

Referenced by G4GDMLWriteSolids::EltubeWrite(), export_G4EllipticalTube(), and G4tgbGeometryDumper::GetSolidParams().

+ Here is the caller graph for this function:

G4double G4EllipticalTube::GetDz ( ) const
inline

Referenced by G4GDMLWriteSolids::EltubeWrite(), export_G4EllipticalTube(), and G4tgbGeometryDumper::GetSolidParams().

+ Here is the caller graph for this function:

G4GeometryType G4EllipticalTube::GetEntityType ( ) const
virtual

Implements G4VSolid.

Definition at line 850 of file G4EllipticalTube.cc.

G4VisExtent G4EllipticalTube::GetExtent ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 1007 of file G4EllipticalTube.cc.

References dx, dy, and dz.

G4ThreeVector G4EllipticalTube::GetPointOnSurface ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 912 of file G4EllipticalTube.cc.

References dx, dy, dz, G4INCL::Math::pi, G4INCL::DeJongSpin::shoot(), and sqr().

+ Here is the call graph for this function:

G4Polyhedron * G4EllipticalTube::GetPolyhedron ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 978 of file G4EllipticalTube.cc.

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

+ Here is the call graph for this function:

G4double G4EllipticalTube::GetSurfaceArea ( )
virtual

Reimplemented from G4VSolid.

Definition at line 878 of file G4EllipticalTube.cc.

References fSurfaceArea, and G4VSolid::GetSurfaceArea().

+ Here is the call graph for this function:

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

Implements G4VSolid.

Definition at line 262 of file G4EllipticalTube.cc.

References CheckXY(), dz, halfTol, kInside, kOutside, and kSurface.

+ Here is the call graph for this function:

G4int G4EllipticalTube::IntersectXY ( const G4ThreeVector p,
const G4ThreeVector v,
G4double  s[2] 
) const
protected

Definition at line 811 of file G4EllipticalTube.cc.

References a, DBL_MIN, dx, and dy.

Referenced by DistanceToIn(), and DistanceToOut().

+ Here is the caller graph for this function:

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

Definition at line 116 of file G4EllipticalTube.cc.

References dx, dy, dz, fCubicVolume, fpPolyhedron, fRebuildPolyhedron, fSurfaceArea, halfTol, and G4VSolid::operator=().

+ Here is the call graph for this function:

void G4EllipticalTube::SetDx ( const G4double  newDx)
inline

Referenced by export_G4EllipticalTube().

+ Here is the caller graph for this function:

void G4EllipticalTube::SetDy ( const G4double  newDy)
inline

Referenced by export_G4EllipticalTube().

+ Here is the caller graph for this function:

void G4EllipticalTube::SetDz ( const G4double  newDz)
inline

Referenced by export_G4EllipticalTube().

+ Here is the caller graph for this function:

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

Implements G4VSolid.

Definition at line 888 of file G4EllipticalTube.cc.

References dx, dy, dz, G4VSolid::GetName(), and mm.

+ Here is the call graph for this function:

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

Implements G4VSolid.

Definition at line 294 of file G4EllipticalTube.cc.

References ApproxSurfaceNormal(), CheckXY(), dx, dy, dz, G4Exception(), halfTol, and JustWarning.

+ Here is the call graph for this function:

Member Data Documentation

G4double G4EllipticalTube::fCubicVolume
private

Definition at line 149 of file G4EllipticalTube.hh.

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

G4Polyhedron* G4EllipticalTube::fpPolyhedron
mutableprivate

Definition at line 152 of file G4EllipticalTube.hh.

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

G4bool G4EllipticalTube::fRebuildPolyhedron
mutableprivate

Definition at line 151 of file G4EllipticalTube.hh.

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

G4double G4EllipticalTube::fSurfaceArea
private

Definition at line 150 of file G4EllipticalTube.hh.

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

G4double G4EllipticalTube::halfTol
private

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