Geant4  10.01.p02
G4UGenericTrap Class Reference

#include <G4UGenericTrap.hh>

+ Inheritance diagram for G4UGenericTrap:
+ Collaboration diagram for G4UGenericTrap:

Public Member Functions

 G4UGenericTrap (const G4String &name, G4double halfZ, const std::vector< G4TwoVector > &vertices)
 
 ~G4UGenericTrap ()
 
UGenericTrapGetShape () const
 
G4double GetZHalfLength () const
 
G4int GetNofVertices () const
 
G4TwoVector GetVertex (G4int index) const
 
const std::vector< G4TwoVector > & GetVertices () const
 
G4double GetTwistAngle (G4int index) const
 
G4bool IsTwisted () const
 
G4int GetVisSubdivisions () const
 
void SetVisSubdivisions (G4int subdiv)
 
void SetZHalfLength (G4double)
 
 G4UGenericTrap (__void__ &)
 
 G4UGenericTrap (const G4UGenericTrap &source)
 
G4UGenericTrapoperator= (const G4UGenericTrap &source)
 
G4PolyhedronCreatePolyhedron () const
 
- Public Member Functions inherited from G4USolid
 G4USolid (const G4String &pName, VUSolid *shape)
 
virtual ~G4USolid ()
 
G4bool operator== (const G4USolid &s) const
 
virtual G4bool CalculateExtent (const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const
 
virtual EInside Inside (const G4ThreeVector &p) const
 
virtual G4ThreeVector SurfaceNormal (const G4ThreeVector &p) const
 
virtual G4double DistanceToIn (const G4ThreeVector &p, const G4ThreeVector &v) const
 
virtual G4double DistanceToIn (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 ComputeDimensions (G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
 
virtual G4double GetCubicVolume ()
 
virtual G4double GetSurfaceArea ()
 
virtual G4GeometryType GetEntityType () const
 
virtual G4ThreeVector GetPointOnSurface () const
 
virtual G4VSolidClone () const
 
virtual std::ostream & StreamInfo (std::ostream &os) const
 
virtual void DescribeYourselfTo (G4VGraphicsScene &scene) const
 
virtual G4VisExtent GetExtent () const
 
virtual G4PolyhedronGetPolyhedron () const
 
 G4USolid (__void__ &)
 
 G4USolid (const G4USolid &rhs)
 
G4USolidoperator= (const G4USolid &rhs)
 
VUSolidGetSolid () const
 
- 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)
 

Additional Inherited Members

- Protected Member Functions inherited from G4USolid
G4ThreeVectorListCreateRotatedVertices (const G4AffineTransform &pT) 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 inherited from G4USolid
VUSolidfShape
 
G4bool fRebuildPolyhedron
 
G4PolyhedronfPolyhedron
 
- Protected Attributes inherited from G4VSolid
G4double kCarTolerance
 

Detailed Description

Definition at line 52 of file G4UGenericTrap.hh.

Constructor & Destructor Documentation

G4UGenericTrap::G4UGenericTrap ( const G4String name,
G4double  halfZ,
const std::vector< G4TwoVector > &  vertices 
)

Definition at line 42 of file G4UGenericTrap.cc.

References GetShape(), UGenericTrap::Initialise(), n, VUSolid::SetName(), and SetZHalfLength().

+ Here is the call graph for this function:

G4UGenericTrap::~G4UGenericTrap ( )

Definition at line 72 of file G4UGenericTrap.cc.

G4UGenericTrap::G4UGenericTrap ( __void__ &  a)

Definition at line 62 of file G4UGenericTrap.cc.

G4UGenericTrap::G4UGenericTrap ( const G4UGenericTrap source)

Definition at line 81 of file G4UGenericTrap.cc.

Member Function Documentation

G4Polyhedron * G4UGenericTrap::CreatePolyhedron ( ) const
virtual

Reimplemented from G4USolid.

Definition at line 105 of file G4UGenericTrap.cc.

References G4PolyhedronArbitrary::AddFacet(), G4PolyhedronArbitrary::AddVertex(), UGenericTrap::GetMaximumBBox(), UGenericTrap::GetMinimumBBox(), GetShape(), GetTwistAngle(), GetVertex(), GetVisSubdivisions(), GetZHalfLength(), G4PolyhedronArbitrary::InvertFacets(), IsTwisted(), G4PolyhedronArbitrary::SetReferences(), UVector3::x(), UVector3::y(), and UVector3::z().

+ Here is the call graph for this function:

G4int G4UGenericTrap::GetNofVertices ( ) const
inline

Definition at line 100 of file G4UGenericTrap.hh.

References UGenericTrap::GetNofVertices(), and GetShape().

+ Here is the call graph for this function:

UGenericTrap * G4UGenericTrap::GetShape ( ) const
inline

Definition at line 91 of file G4UGenericTrap.hh.

References G4USolid::fShape.

Referenced by CreatePolyhedron(), G4UGenericTrap(), GetNofVertices(), GetTwistAngle(), GetVertex(), GetVertices(), GetVisSubdivisions(), GetZHalfLength(), IsTwisted(), SetVisSubdivisions(), and SetZHalfLength().

+ Here is the caller graph for this function:

G4double G4UGenericTrap::GetTwistAngle ( G4int  index) const
inline

Definition at line 119 of file G4UGenericTrap.hh.

References GetShape(), and UGenericTrap::GetTwistAngle().

Referenced by CreatePolyhedron().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4TwoVector G4UGenericTrap::GetVertex ( G4int  index) const
inline

Definition at line 104 of file G4UGenericTrap.hh.

References GetShape(), UGenericTrap::GetVertex(), UVector2::x, and UVector2::y.

Referenced by CreatePolyhedron().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const std::vector< G4TwoVector > & G4UGenericTrap::GetVertices ( ) const
inline

Definition at line 109 of file G4UGenericTrap.hh.

References GetShape(), UGenericTrap::GetVertices(), and n.

+ Here is the call graph for this function:

G4int G4UGenericTrap::GetVisSubdivisions ( ) const
inline

Definition at line 127 of file G4UGenericTrap.hh.

References GetShape(), and UGenericTrap::GetVisSubdivisions().

Referenced by CreatePolyhedron().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4UGenericTrap::GetZHalfLength ( ) const
inline

Definition at line 96 of file G4UGenericTrap.hh.

References GetShape(), and UGenericTrap::GetZHalfLength().

Referenced by CreatePolyhedron().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4UGenericTrap::IsTwisted ( ) const
inline

Definition at line 123 of file G4UGenericTrap.hh.

References GetShape(), and UGenericTrap::IsTwisted().

Referenced by CreatePolyhedron().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4UGenericTrap & G4UGenericTrap::operator= ( const G4UGenericTrap source)

Definition at line 92 of file G4UGenericTrap.cc.

References G4USolid::operator=().

+ Here is the call graph for this function:

void G4UGenericTrap::SetVisSubdivisions ( G4int  subdiv)
inline

Definition at line 132 of file G4UGenericTrap.hh.

References GetShape(), and UGenericTrap::SetVisSubdivisions().

+ Here is the call graph for this function:

void G4UGenericTrap::SetZHalfLength ( G4double  halfZ)
inline

Definition at line 137 of file G4UGenericTrap.hh.

References GetShape(), and UGenericTrap::SetZHalfLength().

Referenced by G4UGenericTrap().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


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