Geant4  10.02.p02
G4QuadrangularFacet Class Reference

#include <G4QuadrangularFacet.hh>

+ Inheritance diagram for G4QuadrangularFacet:
+ Collaboration diagram for G4QuadrangularFacet:

Public Member Functions

 G4QuadrangularFacet (const G4ThreeVector &Pt0, const G4ThreeVector &vt1, const G4ThreeVector &vt2, const G4ThreeVector &vt3, G4FacetVertexType)
 
 G4QuadrangularFacet (const G4QuadrangularFacet &right)
 
 ~G4QuadrangularFacet ()
 
G4QuadrangularFacetoperator= (const G4QuadrangularFacet &right)
 
G4VFacetGetClone ()
 
G4ThreeVector Distance (const G4ThreeVector &p)
 
G4double Distance (const G4ThreeVector &p, G4double minDist)
 
G4double Distance (const G4ThreeVector &p, G4double minDist, const G4bool outgoing)
 
G4double Extent (const G4ThreeVector axis)
 
G4bool Intersect (const G4ThreeVector &p, const G4ThreeVector &v, const G4bool outgoing, G4double &distance, G4double &distFromSurface, G4ThreeVector &normal)
 
G4ThreeVector GetSurfaceNormal () const
 
G4double GetArea ()
 
G4ThreeVector GetPointOnFace () const
 
G4GeometryType GetEntityType () const
 
G4bool IsDefined () const
 
G4int GetNumberOfVertices () const
 
G4ThreeVector GetVertex (G4int i) const
 
void SetVertex (G4int i, const G4ThreeVector &val)
 
void SetVertices (std::vector< G4ThreeVector > *v)
 
G4double GetRadius () const
 
G4ThreeVector GetCircumcentre () const
 
- Public Member Functions inherited from G4VFacet
virtual ~G4VFacet ()
 
G4bool operator== (const G4VFacet &right) const
 
void ApplyTranslation (const G4ThreeVector v)
 
std::ostream & StreamInfo (std::ostream &os) const
 
G4bool IsInside (const G4ThreeVector &p) const
 

Private Member Functions

G4int GetVertexIndex (G4int i) const
 
void SetVertexIndex (G4int i, G4int val)
 
G4int AllocatedMemory ()
 

Private Attributes

G4double fRadius
 
G4ThreeVector fCircumcentre
 
G4TriangularFacet fFacet1
 
G4TriangularFacet fFacet2
 

Additional Inherited Members

- Static Protected Attributes inherited from G4VFacet
static const G4double dirTolerance = 1.0E-14
 
static const G4double kCarTolerance
 

Detailed Description

Definition at line 69 of file G4QuadrangularFacet.hh.

Constructor & Destructor Documentation

G4QuadrangularFacet::G4QuadrangularFacet ( const G4ThreeVector Pt0,
const G4ThreeVector vt1,
const G4ThreeVector vt2,
const G4ThreeVector vt3,
G4FacetVertexType  vertexType 
)

Definition at line 54 of file G4QuadrangularFacet.cc.

References ABSOLUTE, e1, e2, e3, G4cout, G4endl, G4Exception(), G4TriangularFacet::GetSurfaceNormal(), JustWarning, and CLHEP::normal().

Referenced by GetClone().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4QuadrangularFacet::G4QuadrangularFacet ( const G4QuadrangularFacet right)

Definition at line 146 of file G4QuadrangularFacet.cc.

References fFacet1, fFacet2, and fRadius.

G4QuadrangularFacet::~G4QuadrangularFacet ( )

Definition at line 140 of file G4QuadrangularFacet.cc.

Member Function Documentation

G4int G4QuadrangularFacet::AllocatedMemory ( )
inlineprivatevirtual

Implements G4VFacet.

Definition at line 206 of file G4QuadrangularFacet.hh.

References G4TriangularFacet::AllocatedMemory(), fFacet1, and fFacet2.

+ Here is the call graph for this function:

G4ThreeVector G4QuadrangularFacet::Distance ( const G4ThreeVector p)

Definition at line 181 of file G4QuadrangularFacet.cc.

References G4TriangularFacet::Distance(), fFacet1, and fFacet2.

Referenced by Distance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4QuadrangularFacet::Distance ( const G4ThreeVector p,
G4double  minDist 
)
virtual

Implements G4VFacet.

Definition at line 192 of file G4QuadrangularFacet.cc.

References Distance().

+ Here is the call graph for this function:

G4double G4QuadrangularFacet::Distance ( const G4ThreeVector p,
G4double  minDist,
const G4bool  outgoing 
)
virtual

Implements G4VFacet.

Definition at line 201 of file G4QuadrangularFacet.cc.

References G4VFacet::dirTolerance, Distance(), GetSurfaceNormal(), and kInfinity.

+ Here is the call graph for this function:

G4double G4QuadrangularFacet::Extent ( const G4ThreeVector  axis)
virtual

Implements G4VFacet.

Definition at line 218 of file G4QuadrangularFacet.cc.

References GetVertex(), and G4InuclParticleNames::sp.

+ Here is the call graph for this function:

G4double G4QuadrangularFacet::GetArea ( )
virtual

Implements G4VFacet.

Definition at line 266 of file G4QuadrangularFacet.cc.

References fFacet1, fFacet2, and G4TriangularFacet::GetArea().

+ Here is the call graph for this function:

G4ThreeVector G4QuadrangularFacet::GetCircumcentre ( ) const
inlinevirtual

Implements G4VFacet.

Definition at line 142 of file G4QuadrangularFacet.hh.

References fCircumcentre.

G4VFacet * G4QuadrangularFacet::GetClone ( )
virtual

Implements G4VFacet.

Definition at line 171 of file G4QuadrangularFacet.cc.

References ABSOLUTE, G4QuadrangularFacet(), and GetVertex().

+ Here is the call graph for this function:

G4String G4QuadrangularFacet::GetEntityType ( ) const
virtual

Implements G4VFacet.

Definition at line 274 of file G4QuadrangularFacet.cc.

G4int G4QuadrangularFacet::GetNumberOfVertices ( ) const
inlinevirtual

Implements G4VFacet.

Definition at line 126 of file G4QuadrangularFacet.hh.

G4ThreeVector G4QuadrangularFacet::GetPointOnFace ( ) const
virtual

Implements G4VFacet.

Definition at line 255 of file G4QuadrangularFacet.cc.

References fFacet1, fFacet2, G4TriangularFacet::GetPointOnFace(), and G4INCL::DeJongSpin::shoot().

+ Here is the call graph for this function:

G4double G4QuadrangularFacet::GetRadius ( ) const
inlinevirtual

Implements G4VFacet.

Definition at line 137 of file G4QuadrangularFacet.hh.

References fRadius.

G4ThreeVector G4QuadrangularFacet::GetSurfaceNormal ( ) const
virtual

Implements G4VFacet.

Definition at line 281 of file G4QuadrangularFacet.cc.

References fFacet1, and G4TriangularFacet::GetSurfaceNormal().

Referenced by Distance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4ThreeVector G4QuadrangularFacet::GetVertex ( G4int  i) const
inlinevirtual

Implements G4VFacet.

Definition at line 131 of file G4QuadrangularFacet.hh.

References fFacet1, fFacet2, and G4TriangularFacet::GetVertex().

Referenced by Extent(), and GetClone().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4QuadrangularFacet::GetVertexIndex ( G4int  i) const
inlineprivatevirtual

Implements G4VFacet.

Definition at line 179 of file G4QuadrangularFacet.hh.

References fFacet1, fFacet2, and G4TriangularFacet::GetVertexIndex().

+ Here is the call graph for this function:

G4bool G4QuadrangularFacet::Intersect ( const G4ThreeVector p,
const G4ThreeVector v,
const G4bool  outgoing,
G4double distance,
G4double distFromSurface,
G4ThreeVector normal 
)
virtual

Implements G4VFacet.

Definition at line 232 of file G4QuadrangularFacet.cc.

References fFacet1, fFacet2, G4TriangularFacet::Intersect(), and kInfinity.

+ Here is the call graph for this function:

G4bool G4QuadrangularFacet::IsDefined ( ) const
inlinevirtual

Implements G4VFacet.

Definition at line 174 of file G4QuadrangularFacet.hh.

References fFacet1, and G4TriangularFacet::IsDefined().

+ Here is the call graph for this function:

G4QuadrangularFacet & G4QuadrangularFacet::operator= ( const G4QuadrangularFacet right)

Definition at line 157 of file G4QuadrangularFacet.cc.

References fFacet1, fFacet2, and fRadius.

void G4QuadrangularFacet::SetVertex ( G4int  i,
const G4ThreeVector val 
)
inlinevirtual

Implements G4VFacet.

Definition at line 147 of file G4QuadrangularFacet.hh.

References fFacet1, fFacet2, and G4TriangularFacet::SetVertex().

+ Here is the call graph for this function:

void G4QuadrangularFacet::SetVertexIndex ( G4int  i,
G4int  val 
)
inlineprivatevirtual

Implements G4VFacet.

Definition at line 185 of file G4QuadrangularFacet.hh.

References fFacet1, fFacet2, and G4TriangularFacet::SetVertexIndex().

+ Here is the call graph for this function:

void G4QuadrangularFacet::SetVertices ( std::vector< G4ThreeVector > *  v)
inlinevirtual

Implements G4VFacet.

Definition at line 168 of file G4QuadrangularFacet.hh.

References fFacet1, fFacet2, and G4TriangularFacet::SetVertices().

+ Here is the call graph for this function:

Member Data Documentation

G4ThreeVector G4QuadrangularFacet::fCircumcentre
private

Definition at line 117 of file G4QuadrangularFacet.hh.

Referenced by GetCircumcentre().

G4double G4QuadrangularFacet::fRadius
private

Definition at line 116 of file G4QuadrangularFacet.hh.

Referenced by G4QuadrangularFacet(), GetRadius(), and operator=().


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