Geant4  10.00.p03
G4GenericPolycone Class Reference

#include <G4GenericPolycone.hh>

+ Inheritance diagram for G4GenericPolycone:
+ Collaboration diagram for G4GenericPolycone:

Public Member Functions

 G4GenericPolycone (const G4String &name, G4double phiStart, G4double phiTotal, G4int numRZ, const G4double r[], const G4double z[])
 
virtual ~G4GenericPolycone ()
 
EInside Inside (const G4ThreeVector &p) const
 
G4double DistanceToIn (const G4ThreeVector &p, const G4ThreeVector &v) const
 
G4double DistanceToIn (const G4ThreeVector &p) const
 
G4ThreeVector GetPointOnSurface () const
 
G4GeometryType GetEntityType () const
 
G4VSolidClone () const
 
std::ostream & StreamInfo (std::ostream &os) const
 
G4PolyhedronCreatePolyhedron () const
 
G4bool Reset ()
 
G4double GetStartPhi () const
 
G4double GetEndPhi () const
 
G4bool IsOpen () const
 
G4int GetNumRZCorner () const
 
G4PolyconeSideRZ GetCorner (G4int index) const
 
 G4GenericPolycone (__void__ &)
 
 G4GenericPolycone (const G4GenericPolycone &source)
 
G4GenericPolyconeoperator= (const G4GenericPolycone &source)
 
- Public Member Functions inherited from G4VCSGfaceted
 G4VCSGfaceted (const G4String &name)
 
virtual ~G4VCSGfaceted ()
 
 G4VCSGfaceted (const G4VCSGfaceted &source)
 
G4VCSGfacetedoperator= (const G4VCSGfaceted &source)
 
virtual G4bool CalculateExtent (const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pmin, G4double &pmax) const
 
virtual G4ThreeVector SurfaceNormal (const G4ThreeVector &p) const
 
virtual G4double DistanceToOut (const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=0, G4ThreeVector *n=0) const
 
virtual G4double DistanceToOut (const G4ThreeVector &p) const
 
virtual void DescribeYourselfTo (G4VGraphicsScene &scene) const
 
virtual G4VisExtent GetExtent () const
 
virtual G4PolyhedronGetPolyhedron () const
 
G4int GetCubVolStatistics () const
 
G4double GetCubVolEpsilon () const
 
void SetCubVolStatistics (G4int st)
 
void SetCubVolEpsilon (G4double ep)
 
G4int GetAreaStatistics () const
 
G4double GetAreaAccuracy () const
 
void SetAreaStatistics (G4int st)
 
void SetAreaAccuracy (G4double ep)
 
virtual G4double GetCubicVolume ()
 
virtual G4double GetSurfaceArea ()
 
 G4VCSGfaceted (__void__ &)
 
- 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

void Create (G4double phiStart, G4double phiTotal, G4ReduciblePolygon *rz)
 
void CopyStuff (const G4GenericPolycone &source)
 
- Protected Member Functions inherited from G4VCSGfaceted
virtual G4double DistanceTo (const G4ThreeVector &p, const G4bool outgoing) const
 
G4ThreeVector GetPointOnSurfaceGeneric () const
 
void CopyStuff (const G4VCSGfaceted &source)
 
void DeleteStuff ()
 
- 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 startPhi
 
G4double endPhi
 
G4bool phiIsOpen
 
G4int numCorner
 
G4PolyconeSideRZcorners
 
G4EnclosingCylinderenclosingCylinder
 
- Protected Attributes inherited from G4VCSGfaceted
G4int numFace
 
G4VCSGface ** faces
 
G4double fCubicVolume
 
G4double fSurfaceArea
 
G4bool fRebuildPolyhedron
 
G4PolyhedronfpPolyhedron
 
- Protected Attributes inherited from G4VSolid
G4double kCarTolerance
 

Detailed Description

Definition at line 70 of file G4GenericPolycone.hh.

Constructor & Destructor Documentation

G4GenericPolycone::G4GenericPolycone ( const G4String name,
G4double  phiStart,
G4double  phiTotal,
G4int  numRZ,
const G4double  r[],
const G4double  z[] 
)

Definition at line 59 of file G4GenericPolycone.cc.

References Create().

Referenced by Clone().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4GenericPolycone::~G4GenericPolycone ( )
virtual

Definition at line 262 of file G4GenericPolycone.cc.

References corners, and enclosingCylinder.

G4GenericPolycone::G4GenericPolycone ( __void__ &  a)

Definition at line 252 of file G4GenericPolycone.cc.

G4GenericPolycone::G4GenericPolycone ( const G4GenericPolycone source)

Definition at line 272 of file G4GenericPolycone.cc.

References CopyStuff().

+ Here is the call graph for this function:

Member Function Documentation

G4VSolid * G4GenericPolycone::Clone ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 423 of file G4GenericPolycone.cc.

References G4GenericPolycone().

+ Here is the call graph for this function:

void G4GenericPolycone::CopyStuff ( const G4GenericPolycone source)
protected

Definition at line 302 of file G4GenericPolycone.cc.

References corners, enclosingCylinder, endPhi, G4VCSGfaceted::fpPolyhedron, G4VCSGfaceted::fRebuildPolyhedron, numCorner, phiIsOpen, and startPhi.

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

+ Here is the caller graph for this function:

void G4GenericPolycone::Create ( G4double  phiStart,
G4double  phiTotal,
G4ReduciblePolygon rz 
)
protected
G4Polyhedron * G4GenericPolycone::CreatePolyhedron ( ) const
virtual

Creates user defined polyhedron. This function allows to the user to define arbitrary polyhedron. The faces of the polyhedron should be either triangles or planar quadrilateral. Nodes of a face are defined by indexes pointing to the elements in the xyz array. Numeration of the elements in the array starts from 1 (like in fortran). The indexes can be positive or negative. Negative sign means that the corresponding edge is invisible. The normal of the face should be directed to exterior of the polyhedron.

Parameters
Nnodesnumber of nodes
Nfacesnumber of faces
xyznodes
faces_vecfaces (quadrilaterals or triangles)
Returns
status of the operation - is non-zero in case of problem

Implements G4VCSGfaceted.

Definition at line 470 of file G4GenericPolycone.cc.

References a, A, ab, corners, endPhi, G4Exception(), G4VSolid::GetName(), JustWarning, G4VSolid::kCarTolerance, numCorner, phiIsOpen, G4PolyconeSideRZ::r, startPhi, and G4PolyconeSideRZ::z.

Referenced by G4ArrowModel::G4ArrowModel().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Reimplemented from G4VCSGfaceted.

Definition at line 376 of file G4GenericPolycone.cc.

References G4VCSGfaceted::DistanceToIn(), enclosingCylinder, kInfinity, and G4EnclosingCylinder::ShouldMiss().

+ Here is the call graph for this function:

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

Reimplemented from G4VCSGfaceted.

Definition at line 395 of file G4GenericPolycone.cc.

References G4VCSGfaceted::DistanceToIn().

+ Here is the call graph for this function:

G4PolyconeSideRZ G4GenericPolycone::GetCorner ( G4int  index) const
inline

Referenced by G4tgbVolume::BuildSolidForDivision(), G4GDMLWriteSolids::GenericPolyconeWrite(), and G4tgbGeometryDumper::GetSolidParams().

+ Here is the caller graph for this function:

G4double G4GenericPolycone::GetEndPhi ( ) const
inline

Referenced by G4tgbVolume::BuildSolidForDivision(), G4GDMLWriteSolids::GenericPolyconeWrite(), and G4tgbGeometryDumper::GetSolidParams().

+ Here is the caller graph for this function:

G4GeometryType G4GenericPolycone::GetEntityType ( ) const
virtual

Reimplemented from G4VCSGfaceted.

Definition at line 414 of file G4GenericPolycone.cc.

G4int G4GenericPolycone::GetNumRZCorner ( ) const
inline

Referenced by G4tgbVolume::BuildSolidForDivision(), G4GDMLWriteSolids::GenericPolyconeWrite(), and G4tgbGeometryDumper::GetSolidParams().

+ Here is the caller graph for this function:

G4ThreeVector G4GenericPolycone::GetPointOnSurface ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 461 of file G4GenericPolycone.cc.

References G4VCSGfaceted::GetPointOnSurfaceGeneric().

+ Here is the call graph for this function:

G4double G4GenericPolycone::GetStartPhi ( ) const
inline

Referenced by G4tgbVolume::BuildSolidForDivision(), G4GDMLWriteSolids::GenericPolyconeWrite(), and G4tgbGeometryDumper::GetSolidParams().

+ Here is the caller graph for this function:

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

Reimplemented from G4VCSGfaceted.

Definition at line 356 of file G4GenericPolycone.cc.

References enclosingCylinder, G4VCSGfaceted::Inside(), kOutside, and G4EnclosingCylinder::MustBeOutside().

+ Here is the call graph for this function:

G4bool G4GenericPolycone::IsOpen ( ) const
inline
G4GenericPolycone & G4GenericPolycone::operator= ( const G4GenericPolycone source)

Definition at line 282 of file G4GenericPolycone.cc.

References CopyStuff(), corners, enclosingCylinder, and G4VCSGfaceted::operator=().

+ Here is the call graph for this function:

G4bool G4GenericPolycone::Reset ( )

Definition at line 337 of file G4GenericPolycone.cc.

References G4endl, G4Exception(), G4VSolid::GetName(), and JustWarning.

+ Here is the call graph for this function:

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

Reimplemented from G4VCSGfaceted.

Definition at line 431 of file G4GenericPolycone.cc.

References corners, degree, endPhi, G4VSolid::GetName(), numCorner, G4PolyconeSideRZ::r, startPhi, and G4PolyconeSideRZ::z.

+ Here is the call graph for this function:

Member Data Documentation

G4PolyconeSideRZ* G4GenericPolycone::corners
protected
G4EnclosingCylinder* G4GenericPolycone::enclosingCylinder
protected
G4double G4GenericPolycone::endPhi
protected

Definition at line 140 of file G4GenericPolycone.hh.

Referenced by CopyStuff(), Create(), CreatePolyhedron(), and StreamInfo().

G4int G4GenericPolycone::numCorner
protected

Definition at line 142 of file G4GenericPolycone.hh.

Referenced by CopyStuff(), Create(), CreatePolyhedron(), and StreamInfo().

G4bool G4GenericPolycone::phiIsOpen
protected

Definition at line 141 of file G4GenericPolycone.hh.

Referenced by CopyStuff(), Create(), and CreatePolyhedron().

G4double G4GenericPolycone::startPhi
protected

Definition at line 139 of file G4GenericPolycone.hh.

Referenced by CopyStuff(), Create(), CreatePolyhedron(), and StreamInfo().


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