Geant4
10.02.p02
|
#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 55 of file G4ClippablePolygon.hh.
|
private |
Definition at line 57 of file G4ClippablePolygon.hh.
G4ClippablePolygon::G4ClippablePolygon | ( | ) |
Definition at line 48 of file G4ClippablePolygon.cc.
References G4GeometryTolerance::GetInstance(), G4GeometryTolerance::GetSurfaceTolerance(), and kCarTolerance.
|
virtual |
Definition at line 58 of file G4ClippablePolygon.cc.
|
virtual |
Definition at line 66 of file G4ClippablePolygon.cc.
References vertices.
Referenced by G4Hype::AddPolyToExtent(), G4TwistedTubs::AddPolyToExtent(), G4EllipticalTube::CalculateExtent(), G4Hype::CalculateExtent(), G4EllipticalCone::CalculateExtent(), G4PolyPhiFace::CalculateExtent(), G4PolyconeSide::CalculateExtent(), and G4PolyhedraSide::CalculateExtent().
|
virtual |
Definition at line 296 of file G4ClippablePolygon.cc.
References Empty(), GetMaxPoint(), GetNormal(), GetPlanerExtent(), kCarTolerance, G4INCL::Math::max(), normal, and vertices.
Referenced by G4SolidExtentList::AddSurface().
|
virtual |
Definition at line 75 of file G4ClippablePolygon.cc.
References vertices.
Referenced by G4EllipticalTube::CalculateExtent(), G4EllipticalCone::CalculateExtent(), and G4PolyconeSide::CalculateExtent().
|
virtual |
Definition at line 84 of file G4ClippablePolygon.cc.
References ClipAlongOneAxis(), G4VoxelLimits::IsLimited(), kXAxis, kYAxis, kZAxis, and vertices.
|
virtual |
Definition at line 401 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 445 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 117 of file G4ClippablePolygon.cc.
References vertices.
Referenced by G4SolidExtentList::AddSurface(), and G4SolidExtentList::GetExtent().
|
virtual |
Definition at line 190 of file G4ClippablePolygon.cc.
References FatalException, G4Exception(), G4INCL::Math::max(), and vertices.
Referenced by BehindOf().
|
virtual |
Definition at line 159 of file G4ClippablePolygon.cc.
References FatalException, G4Exception(), G4INCL::Math::min(), and vertices.
Referenced by InFrontOf().
|
inline |
Referenced by BehindOf(), G4SolidExtentList::GetExtent(), and InFrontOf().
|
inline |
|
virtual |
Definition at line 361 of file G4ClippablePolygon.cc.
References vertices.
Referenced by BehindOf(), and InFrontOf().
|
virtual |
Definition at line 231 of file G4ClippablePolygon.cc.
References Empty(), GetMinPoint(), GetNormal(), GetPlanerExtent(), kCarTolerance, G4INCL::Math::min(), normal, and vertices.
Referenced by G4SolidExtentList::AddSurface().
|
virtual |
Definition at line 101 of file G4ClippablePolygon.cc.
References ClipAlongOneAxis(), G4VoxelLimits::IsLimited(), kXAxis, kYAxis, kZAxis, and vertices.
Referenced by G4Hype::AddPolyToExtent(), G4TwistedTubs::AddPolyToExtent(), G4EllipticalTube::CalculateExtent(), G4Hype::CalculateExtent(), G4EllipticalCone::CalculateExtent(), G4PolyPhiFace::CalculateExtent(), G4PolyconeSide::CalculateExtent(), and G4PolyhedraSide::CalculateExtent().
|
inline |
Referenced by G4Hype::AddPolyToExtent(), G4TwistedTubs::AddPolyToExtent(), G4EllipticalTube::CalculateExtent(), G4Hype::CalculateExtent(), G4EllipticalCone::CalculateExtent(), G4PolyPhiFace::CalculateExtent(), G4PolyconeSide::CalculateExtent(), and G4PolyhedraSide::CalculateExtent().
|
protected |
Definition at line 123 of file G4ClippablePolygon.hh.
Referenced by BehindOf(), G4ClippablePolygon(), and InFrontOf().
|
protected |
Definition at line 122 of file G4ClippablePolygon.hh.
Referenced by BehindOf(), and InFrontOf().
|
protected |
Definition at line 121 of file G4ClippablePolygon.hh.
Referenced by AddVertexInOrder(), BehindOf(), ClearAllVertices(), Clip(), ClipAlongOneAxis(), GetExtent(), GetMaxPoint(), GetMinPoint(), GetPlanerExtent(), InFrontOf(), and PartialClip().