Geant4  10.04
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
G4ExtrudedSolid Class Reference
Inheritance diagram for G4ExtrudedSolid:
G4TessellatedSolid G4VSolid

Classes

struct  line
 
struct  plane
 
struct  ZSection
 

Public Member Functions

 G4ExtrudedSolid (const G4String &pName, const std::vector< G4TwoVector > &polygon, const std::vector< ZSection > &zsections)
 
 G4ExtrudedSolid (const G4String &pName, const std::vector< G4TwoVector > &polygon, G4double halfZ, const G4TwoVector &off1, G4double scale1, const G4TwoVector &off2, G4double scale2)
 
virtual ~G4ExtrudedSolid ()
 
G4int GetNofVertices () const
 
G4TwoVector GetVertex (G4int index) const
 
std::vector< G4TwoVectorGetPolygon () const
 
G4int GetNofZSections () const
 
ZSection GetZSection (G4int index) const
 
std::vector< ZSectionGetZSections () 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
 
void BoundingLimits (G4ThreeVector &pMin, G4ThreeVector &pMax) const
 
G4bool CalculateExtent (const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const
 
G4GeometryType GetEntityType () const
 
G4VSolidClone () const
 
std::ostream & StreamInfo (std::ostream &os) const
 
 G4ExtrudedSolid (__void__ &)
 
 G4ExtrudedSolid (const G4ExtrudedSolid &rhs)
 
G4ExtrudedSolidoperator= (const G4ExtrudedSolid &rhs)
 
- Public Member Functions inherited from G4TessellatedSolid
 G4TessellatedSolid ()
 
virtual ~G4TessellatedSolid ()
 
 G4TessellatedSolid (const G4String &name)
 
 G4TessellatedSolid (__void__ &)
 
 G4TessellatedSolid (const G4TessellatedSolid &ts)
 
G4TessellatedSolidoperator= (const G4TessellatedSolid &right)
 
G4TessellatedSolidoperator+= (const G4TessellatedSolid &right)
 
G4bool AddFacet (G4VFacet *aFacet)
 
G4VFacetGetFacet (G4int i) const
 
G4int GetNumberOfFacets () const
 
virtual G4bool Normal (const G4ThreeVector &p, G4ThreeVector &n) const
 
virtual G4double SafetyFromOutside (const G4ThreeVector &p, G4bool aAccurate=false) const
 
virtual G4double SafetyFromInside (const G4ThreeVector &p, G4bool aAccurate=false) const
 
virtual G4ThreeVector GetPointOnSurface () const
 
virtual G4double GetSurfaceArea ()
 
virtual G4double GetCubicVolume ()
 
void SetSolidClosed (const G4bool t)
 
G4bool GetSolidClosed () const
 
void SetMaxVoxels (G4int max)
 
G4VoxelizerGetVoxels ()
 
void BoundingLimits (G4ThreeVector &pMin, G4ThreeVector &pMax) const
 
G4double GetMinXExtent () const
 
G4double GetMaxXExtent () const
 
G4double GetMinYExtent () const
 
G4double GetMaxYExtent () const
 
G4double GetMinZExtent () const
 
G4double GetMaxZExtent () const
 
virtual G4PolyhedronCreatePolyhedron () const
 
virtual G4PolyhedronGetPolyhedron () const
 
virtual void DescribeYourselfTo (G4VGraphicsScene &scene) const
 
virtual G4VisExtent GetExtent () const
 
G4int AllocatedMemoryWithoutVoxels ()
 
G4int AllocatedMemory ()
 
void DisplayAllocatedMemory ()
 
- 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)
 
G4double EstimateCubicVolume (G4int nStat, G4double epsilon) const
 
G4double EstimateSurfaceArea (G4int nStat, G4double ell) const
 

Private Member Functions

void ComputeProjectionParameters ()
 
void ComputeLateralPlanes ()
 
G4bool PointInPolygon (const G4ThreeVector &p) const
 
G4double DistanceToPolygonSqr (const G4ThreeVector &p) const
 
G4ThreeVector ApproxSurfaceNormal (const G4ThreeVector &p) const
 
G4ThreeVector GetVertex (G4int iz, G4int ind) const
 
G4TwoVector ProjectPoint (const G4ThreeVector &point) const
 
G4bool IsSameLine (const G4TwoVector &p, const G4TwoVector &l1, const G4TwoVector &l2) const
 
G4bool IsSameLineSegment (const G4TwoVector &p, const G4TwoVector &l1, const G4TwoVector &l2) const
 
G4bool IsSameSide (const G4TwoVector &p1, const G4TwoVector &p2, const G4TwoVector &l1, const G4TwoVector &l2) const
 
G4bool IsPointInside (const G4TwoVector &a, const G4TwoVector &b, const G4TwoVector &c, const G4TwoVector &p) const
 
G4double GetAngle (const G4TwoVector &p0, const G4TwoVector &pa, const G4TwoVector &pb) const
 
G4VFacetMakeDownFacet (G4int ind1, G4int ind2, G4int ind3) const
 
G4VFacetMakeUpFacet (G4int ind1, G4int ind2, G4int ind3) const
 
G4bool AddGeneralPolygonFacets ()
 
G4bool MakeFacets ()
 

Private Attributes

G4int fNv
 
G4int fNz
 
std::vector< G4TwoVectorfPolygon
 
std::vector< ZSectionfZSections
 
std::vector< std::vector< G4int > > fTriangles
 
G4bool fIsConvex
 
G4GeometryType fGeometryType
 
G4int fSolidType
 
std::vector< planefPlanes
 
std::vector< linefLines
 
std::vector< G4doublefLengths
 
std::vector< G4doublefKScales
 
std::vector< G4doublefScale0s
 
std::vector< G4TwoVectorfKOffsets
 
std::vector< G4TwoVectorfOffset0s
 

Additional Inherited Members

- 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
 
- Protected Attributes inherited from G4TessellatedSolid
G4double kCarToleranceHalf
 
- Protected Attributes inherited from G4VSolid
G4double kCarTolerance
 

Constructor & Destructor Documentation

G4ExtrudedSolid ( const G4String pName,
const std::vector< G4TwoVector > &  polygon,
const std::vector< ZSection > &  zsections 
)
G4ExtrudedSolid ( const G4String pName,
const std::vector< G4TwoVector > &  polygon,
G4double  halfZ,
const G4TwoVector off1,
G4double  scale1,
const G4TwoVector off2,
G4double  scale2 
)
virtual ~G4ExtrudedSolid ( )
virtual
G4ExtrudedSolid ( __void__ &  )

Member Function Documentation

G4int GetNofVertices ( ) const
G4TwoVector GetVertex ( G4int  index) const
std::vector<G4TwoVector> GetPolygon ( ) const
G4int GetNofZSections ( ) const
ZSection GetZSection ( G4int  index) const
std::vector<ZSection> GetZSections ( ) const
EInside Inside ( const G4ThreeVector p) const
virtual

Reimplemented from G4TessellatedSolid.

G4ThreeVector SurfaceNormal ( const G4ThreeVector p) const
virtual

Reimplemented from G4TessellatedSolid.

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

Reimplemented from G4TessellatedSolid.

G4double DistanceToIn ( const G4ThreeVector p) const
virtual

Reimplemented from G4TessellatedSolid.

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

Reimplemented from G4TessellatedSolid.

G4double DistanceToOut ( const G4ThreeVector p) const
virtual

Reimplemented from G4TessellatedSolid.

void BoundingLimits ( G4ThreeVector pMin,
G4ThreeVector pMax 
) const
virtual

Reimplemented from G4VSolid.

G4bool CalculateExtent ( const EAxis  pAxis,
const G4VoxelLimits pVoxelLimit,
const G4AffineTransform pTransform,
G4double pMin,
G4double pMax 
) const
virtual

Reimplemented from G4TessellatedSolid.

G4GeometryType GetEntityType ( ) const
virtual

Reimplemented from G4TessellatedSolid.

G4VSolid* Clone ( ) const
virtual

Reimplemented from G4TessellatedSolid.

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

Reimplemented from G4TessellatedSolid.

G4ExtrudedSolid& operator= ( const G4ExtrudedSolid rhs)
void ComputeProjectionParameters ( )
private
void ComputeLateralPlanes ( )
private
G4bool PointInPolygon ( const G4ThreeVector p) const
private
G4double DistanceToPolygonSqr ( const G4ThreeVector p) const
private
G4ThreeVector ApproxSurfaceNormal ( const G4ThreeVector p) const
private
G4ThreeVector GetVertex ( G4int  iz,
G4int  ind 
) const
private
G4TwoVector ProjectPoint ( const G4ThreeVector point) const
private
G4bool IsSameLine ( const G4TwoVector p,
const G4TwoVector l1,
const G4TwoVector l2 
) const
private
G4bool IsSameLineSegment ( const G4TwoVector p,
const G4TwoVector l1,
const G4TwoVector l2 
) const
private
G4bool IsSameSide ( const G4TwoVector p1,
const G4TwoVector p2,
const G4TwoVector l1,
const G4TwoVector l2 
) const
private
G4bool IsPointInside ( const G4TwoVector a,
const G4TwoVector b,
const G4TwoVector c,
const G4TwoVector p 
) const
private
G4double GetAngle ( const G4TwoVector p0,
const G4TwoVector pa,
const G4TwoVector pb 
) const
private
G4VFacet* MakeDownFacet ( G4int  ind1,
G4int  ind2,
G4int  ind3 
) const
private
G4VFacet* MakeUpFacet ( G4int  ind1,
G4int  ind2,
G4int  ind3 
) const
private
G4bool AddGeneralPolygonFacets ( )
private
G4bool MakeFacets ( )
private

Member Data Documentation

G4int fNv
private
G4int fNz
private
std::vector<G4TwoVector> fPolygon
private
std::vector<ZSection> fZSections
private
std::vector< std::vector<G4int> > fTriangles
private
G4bool fIsConvex
private
G4GeometryType fGeometryType
private
G4int fSolidType
private
std::vector<plane> fPlanes
private
std::vector<line> fLines
private
std::vector<G4double> fLengths
private
std::vector<G4double> fKScales
private
std::vector<G4double> fScale0s
private
std::vector<G4TwoVector> fKOffsets
private
std::vector<G4TwoVector> fOffset0s
private