ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <geant4/tree/geant4-10.6-release/source/geometry/solids/specific/include/G4ClippablePolygon.hh>
Public Member Functions | |
G4ClippablePolygon () | |
virtual | ~G4ClippablePolygon () |
virtual void | AddVertexInOrder (const G4ThreeVector vertex) |
virtual void | ClearAllVertices () |
void | SetNormal (const G4ThreeVector &newNormal) |
const G4ThreeVector | GetNormal () const |
virtual G4bool | Clip (const G4VoxelLimits &voxelLimit) |
virtual G4bool | PartialClip (const G4VoxelLimits &voxelLimit, const EAxis IgnoreMe) |
virtual void | ClipAlongOneAxis (const G4VoxelLimits &voxelLimit, const EAxis axis) |
virtual G4bool | GetExtent (const EAxis axis, G4double &min, G4double &max) const |
virtual const G4ThreeVector * | GetMinPoint (const EAxis axis) const |
virtual const G4ThreeVector * | GetMaxPoint (const EAxis axis) const |
G4int | GetNumVertices () const |
G4bool | Empty () const |
virtual G4bool | InFrontOf (const G4ClippablePolygon &other, EAxis axis) const |
virtual G4bool | BehindOf (const G4ClippablePolygon &other, EAxis axis) const |
virtual G4bool | GetPlanerExtent (const G4ThreeVector &pointOnPlane, const G4ThreeVector &planeNormal, G4double &min, G4double &max) const |
Protected Member Functions | |
void | ClipToSimpleLimits (G4ThreeVectorList &pPolygon, G4ThreeVectorList &outputPolygon, const G4VoxelLimits &pVoxelLimit) |
Protected Attributes | |
G4ThreeVectorList | vertices |
G4ThreeVector | normal |
G4double | kCarTolerance |
Private Types | |
typedef std::vector < G4ThreeVector > | G4ThreeVectorList |
Definition at line 47 of file G4ClippablePolygon.hh.
View newest version in sPHENIX GitHub at line 47 of file G4ClippablePolygon.hh
|
private |
Definition at line 49 of file G4ClippablePolygon.hh.
View newest version in sPHENIX GitHub at line 49 of file G4ClippablePolygon.hh
G4ClippablePolygon::G4ClippablePolygon | ( | ) |
Definition at line 38 of file G4ClippablePolygon.cc.
View newest version in sPHENIX GitHub at line 38 of file G4ClippablePolygon.cc
References G4GeometryTolerance::GetInstance(), G4GeometryTolerance::GetSurfaceTolerance(), and kCarTolerance.
|
virtual |
Definition at line 46 of file G4ClippablePolygon.cc.
View newest version in sPHENIX GitHub at line 46 of file G4ClippablePolygon.cc
|
virtual |
Definition at line 52 of file G4ClippablePolygon.cc.
View newest version in sPHENIX GitHub at line 52 of file G4ClippablePolygon.cc
References vertices.
Referenced by G4PolyPhiFace::CalculateExtent(), G4PolyconeSide::CalculateExtent(), and G4PolyhedraSide::CalculateExtent().
|
virtual |
Definition at line 266 of file G4ClippablePolygon.cc.
View newest version in sPHENIX GitHub at line 266 of file G4ClippablePolygon.cc
References Empty(), GetMaxPoint(), GetNormal(), GetPlanerExtent(), kCarTolerance, max, normal, and vertices.
Referenced by G4SolidExtentList::AddSurface().
|
virtual |
Definition at line 59 of file G4ClippablePolygon.cc.
View newest version in sPHENIX GitHub at line 59 of file G4ClippablePolygon.cc
References vertices.
Referenced by G4PolyconeSide::CalculateExtent().
|
virtual |
Definition at line 66 of file G4ClippablePolygon.cc.
View newest version in sPHENIX GitHub at line 66 of file G4ClippablePolygon.cc
References ClipAlongOneAxis(), G4VoxelLimits::IsLimited(), kXAxis, kYAxis, kZAxis, and vertices.
|
virtual |
Definition at line 368 of file G4ClippablePolygon.cc.
View newest version in sPHENIX GitHub at line 368 of file G4ClippablePolygon.cc
References G4VoxelLimits::AddLimit(), ClipToSimpleLimits(), G4VoxelLimits::GetMaxExtent(), G4VoxelLimits::GetMinExtent(), G4VoxelLimits::IsLimited(), kInfinity, and vertices.
Referenced by Clip(), and PartialClip().
|
protected |
Definition at line 412 of file G4ClippablePolygon.cc.
View newest version in sPHENIX GitHub at line 412 of file G4ClippablePolygon.cc
References G4VoxelLimits::ClipToLimits(), and G4VoxelLimits::Inside().
Referenced by ClipAlongOneAxis().
|
inline |
Referenced by BehindOf(), G4SolidExtentList::GetExtent(), and InFrontOf().
|
virtual |
Definition at line 97 of file G4ClippablePolygon.cc.
View newest version in sPHENIX GitHub at line 97 of file G4ClippablePolygon.cc
References vertices.
Referenced by G4SolidExtentList::AddSurface(), and G4SolidExtentList::GetExtent().
|
virtual |
Definition at line 164 of file G4ClippablePolygon.cc.
View newest version in sPHENIX GitHub at line 164 of file G4ClippablePolygon.cc
References FatalException, G4Exception(), max, and vertices.
Referenced by BehindOf().
|
virtual |
Definition at line 136 of file G4ClippablePolygon.cc.
View newest version in sPHENIX GitHub at line 136 of file G4ClippablePolygon.cc
References FatalException, G4Exception(), min, and vertices.
Referenced by InFrontOf().
|
inline |
Referenced by BehindOf(), G4SolidExtentList::GetExtent(), and InFrontOf().
|
inline |
|
virtual |
Definition at line 329 of file G4ClippablePolygon.cc.
View newest version in sPHENIX GitHub at line 329 of file G4ClippablePolygon.cc
References CLHEP::Hep3Vector::dot(), and vertices.
Referenced by BehindOf(), and InFrontOf().
|
virtual |
Definition at line 202 of file G4ClippablePolygon.cc.
View newest version in sPHENIX GitHub at line 202 of file G4ClippablePolygon.cc
References Empty(), GetMinPoint(), GetNormal(), GetPlanerExtent(), kCarTolerance, min, normal, and vertices.
Referenced by G4SolidExtentList::AddSurface().
|
virtual |
Definition at line 82 of file G4ClippablePolygon.cc.
View newest version in sPHENIX GitHub at line 82 of file G4ClippablePolygon.cc
References ClipAlongOneAxis(), G4VoxelLimits::IsLimited(), kXAxis, kYAxis, kZAxis, and vertices.
Referenced by G4PolyPhiFace::CalculateExtent(), G4PolyconeSide::CalculateExtent(), and G4PolyhedraSide::CalculateExtent().
|
inline |
Referenced by G4PolyPhiFace::CalculateExtent(), G4PolyconeSide::CalculateExtent(), and G4PolyhedraSide::CalculateExtent().
|
protected |
Definition at line 115 of file G4ClippablePolygon.hh.
View newest version in sPHENIX GitHub at line 115 of file G4ClippablePolygon.hh
Referenced by BehindOf(), G4ClippablePolygon(), and InFrontOf().
|
protected |
Definition at line 114 of file G4ClippablePolygon.hh.
View newest version in sPHENIX GitHub at line 114 of file G4ClippablePolygon.hh
Referenced by BehindOf(), and InFrontOf().
|
protected |
Definition at line 113 of file G4ClippablePolygon.hh.
View newest version in sPHENIX GitHub at line 113 of file G4ClippablePolygon.hh
Referenced by AddVertexInOrder(), BehindOf(), ClearAllVertices(), Clip(), ClipAlongOneAxis(), GetExtent(), GetMaxPoint(), GetMinPoint(), GetPlanerExtent(), InFrontOf(), and PartialClip().