Geant4
10.00.p02
|
#include <G4Polyhedra.hh>
Protected Attributes | |
G4int | numSide |
G4double | startPhi |
G4double | endPhi |
G4bool | phiIsOpen |
G4bool | genericPgon |
G4int | numCorner |
G4PolyhedraSideRZ * | corners |
G4PolyhedraHistorical * | original_parameters |
G4EnclosingCylinder * | enclosingCylinder |
Protected Attributes inherited from G4VCSGfaceted | |
G4int | numFace |
G4VCSGface ** | faces |
G4double | fCubicVolume |
G4double | fSurfaceArea |
G4Polyhedron * | fpPolyhedron |
Protected Attributes inherited from G4VSolid | |
G4double | kCarTolerance |
Definition at line 81 of file G4Polyhedra.hh.
G4Polyhedra::G4Polyhedra | ( | const G4String & | name, |
G4double | phiStart, | ||
G4double | phiTotal, | ||
G4int | numSide, | ||
G4int | numZPlanes, | ||
const G4double | zPlane[], | ||
const G4double | rInner[], | ||
const G4double | rOuter[] | ||
) |
Definition at line 79 of file G4Polyhedra.cc.
References Create(), DBL_EPSILON, G4VSolid::DumpInfo(), FatalErrorInArgument, G4endl, G4Exception(), G4VSolid::GetName(), G4PolyhedraHistorical::Num_z_planes, G4PolyhedraHistorical::numSide, G4PolyhedraHistorical::Opening_angle, original_parameters, G4PolyhedraHistorical::Rmax, G4PolyhedraHistorical::Rmin, G4ReduciblePolygon::ScaleA(), G4PolyhedraHistorical::Start_angle, and G4PolyhedraHistorical::Z_values.
Referenced by Clone().
G4Polyhedra::G4Polyhedra | ( | const G4String & | name, |
G4double | phiStart, | ||
G4double | phiTotal, | ||
G4int | numSide, | ||
G4int | numRZ, | ||
const G4double | r[], | ||
const G4double | z[] | ||
) |
Definition at line 165 of file G4Polyhedra.cc.
References Create(), FatalErrorInArgument, G4endl, G4Exception(), G4VSolid::GetName(), and SetOriginalParameters().
|
virtual |
Definition at line 387 of file G4Polyhedra.cc.
References corners, enclosingCylinder, and original_parameters.
G4Polyhedra::G4Polyhedra | ( | __void__ & | a | ) |
Definition at line 376 of file G4Polyhedra.cc.
G4Polyhedra::G4Polyhedra | ( | const G4Polyhedra & | source | ) |
Definition at line 399 of file G4Polyhedra.cc.
References CopyStuff().
|
virtual |
Reimplemented from G4VSolid.
Definition at line 587 of file G4Polyhedra.cc.
References G4Polyhedra().
|
virtual |
Reimplemented from G4VSolid.
Definition at line 567 of file G4Polyhedra.cc.
References G4VPVParameterisation::ComputeDimensions().
|
protected |
Definition at line 429 of file G4Polyhedra.cc.
References corners, enclosingCylinder, endPhi, G4VCSGfaceted::fpPolyhedron, genericPgon, G4VCSGfaceted::GetPolyhedron(), numCorner, numSide, original_parameters, phiIsOpen, and startPhi.
Referenced by G4Polyhedra(), and operator=().
|
protected |
Definition at line 201 of file G4Polyhedra.cc.
References G4ReduciblePolygon::Amin(), G4ReduciblePolygon::Area(), G4ReduciblePolygonIterator::Begin(), corners, G4ReduciblePolygon::CrossesItself(), DBL_EPSILON, enclosingCylinder, endPhi, G4VCSGfaceted::faces, FatalErrorInArgument, G4endl, G4Exception(), G4ReduciblePolygonIterator::GetA(), G4ReduciblePolygonIterator::GetB(), G4VSolid::GetName(), G4VSolid::kCarTolerance, kInfinity, G4ReduciblePolygonIterator::Next(), numCorner, G4VCSGfaceted::numFace, numSide, G4ReduciblePolygon::NumVertices(), phiIsOpen, G4PolyhedraSideRZ::r, G4ReduciblePolygon::RemoveDuplicateVertices(), G4ReduciblePolygon::RemoveRedundantVertices(), G4ReduciblePolygon::ReverseOrder(), startPhi, and G4PolyhedraSideRZ::z.
Referenced by G4Polyhedra(), and Reset().
|
virtual |
Creates user defined polyhedron. This function allows to the user to define arbitrary polyhedron. The faces of the polyhedron should be either triangles or planar quadrilateral. Nodes of a face are defined by indexes pointing to the elements in the xyz array. Numeration of the elements in the array starts from 1 (like in fortran). The indexes can be positive or negative. Negative sign means that the corresponding edge is invisible. The normal of the face should be directed to exterior of the polyhedron.
Nnodes | number of nodes |
Nfaces | number of faces |
xyz | nodes |
faces_vec | faces (quadrilaterals or triangles) |
Implements G4VCSGfaceted.
Definition at line 915 of file G4Polyhedra.cc.
References a, A, ab, corners, endPhi, G4Exception(), genericPgon, G4VSolid::GetName(), JustWarning, G4VSolid::kCarTolerance, G4PolyhedraHistorical::Num_z_planes, numCorner, G4PolyhedraHistorical::numSide, numSide, G4PolyhedraHistorical::Opening_angle, original_parameters, phiIsOpen, G4PolyhedraSideRZ::r, G4PolyhedraHistorical::Rmax, G4PolyhedraHistorical::Rmin, G4PolyhedraHistorical::Start_angle, startPhi, G4PolyhedraSideRZ::z, and G4PolyhedraHistorical::Z_values.
|
protected |
|
virtual |
Reimplemented from G4VCSGfaceted.
Definition at line 539 of file G4Polyhedra.cc.
References G4VCSGfaceted::DistanceToIn(), enclosingCylinder, kInfinity, and G4EnclosingCylinder::ShouldMiss().
|
virtual |
Reimplemented from G4VCSGfaceted.
Definition at line 558 of file G4Polyhedra.cc.
References G4VCSGfaceted::DistanceToIn().
|
inline |
Referenced by G4tgbGeometryDumper::GetSolidParams(), and G4GDMLWriteSolids::PolyhedraWrite().
|
inline |
Referenced by G4tgbVolume::BuildSolidForDivision(), G4VParameterisationPolyhedra::ConvertRadiusFactor(), export_G4Polyhedra(), G4ParameterisationPolyhedraPhi::G4ParameterisationPolyhedraPhi(), G4VParameterisationPolyhedra::G4VParameterisationPolyhedra(), and G4ParameterisationPolyhedraPhi::GetMaxParameter().
|
virtual |
Reimplemented from G4VCSGfaceted.
Definition at line 578 of file G4Polyhedra.cc.
|
inline |
Referenced by export_G4Polyhedra(), G4tgbGeometryDumper::GetSolidParams(), and G4GDMLWriteSolids::PolyhedraWrite().
|
inline |
Referenced by G4tgbVolume::BuildSolidForDivision(), export_G4Polyhedra(), G4ParameterisationPolyhedraPhi::G4ParameterisationPolyhedraPhi(), and G4tgbGeometryDumper::GetSolidParams().
|
inline |
Referenced by G4tgbVolume::BuildSolidForDivision(), G4ParameterisationPolyhedraPhi::CheckParametersValidity(), G4GDMLParameterisation::ComputeDimensions(), G4ParameterisationPolyhedraRho::ComputeDimensions(), G4ParameterisationPolyhedraPhi::ComputeDimensions(), G4VParameterisationPolyhedra::ConvertRadiusFactor(), G4ParameterisationPolyhedraRho::G4ParameterisationPolyhedraRho(), G4VParameterisationPolyhedra::G4VParameterisationPolyhedra(), G4ParameterisationPolyhedraRho::GetMaxParameter(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Polyhedra_dimensionsWrite(), and G4GDMLWriteSolids::PolyhedraWrite().
|
protected |
Definition at line 649 of file G4Polyhedra.cc.
References CLHEP::normal(), and G4INCL::DeJongSpin::shoot().
Referenced by GetPointOnSurface().
|
virtual |
Reimplemented from G4VSolid.
Definition at line 698 of file G4Polyhedra.cc.
References a, endPhi, genericPgon, GetPointOnPlane(), G4VCSGfaceted::GetPointOnSurfaceGeneric(), G4PolyhedraHistorical::Num_z_planes, numSide, original_parameters, phiIsOpen, G4PolyhedraHistorical::Rmax, G4PolyhedraHistorical::Rmin, G4INCL::DeJongSpin::shoot(), sqr(), startPhi, and G4PolyhedraHistorical::Z_values.
|
protected |
|
protected |
Definition at line 681 of file G4Polyhedra.cc.
References G4INCL::DeJongSpin::shoot().
|
inline |
Referenced by G4tgbVolume::BuildSolidForDivision(), G4VParameterisationPolyhedra::ConvertRadiusFactor(), export_G4Polyhedra(), G4ParameterisationPolyhedraPhi::G4ParameterisationPolyhedraPhi(), G4VParameterisationPolyhedra::G4VParameterisationPolyhedra(), G4ParameterisationPolyhedraPhi::GetMaxParameter(), and G4tgbGeometryDumper::GetSolidParams().
|
virtual |
Reimplemented from G4VCSGfaceted.
Definition at line 519 of file G4Polyhedra.cc.
References enclosingCylinder, G4VCSGfaceted::Inside(), kOutside, and G4EnclosingCylinder::MustBeOutside().
|
inline |
Referenced by export_G4Polyhedra(), G4VParameterisationPolyhedra::G4VParameterisationPolyhedra(), and G4GDMLWriteSolids::PolyhedraWrite().
|
inline |
G4Polyhedra & G4Polyhedra::operator= | ( | const G4Polyhedra & | source | ) |
Definition at line 409 of file G4Polyhedra.cc.
References CopyStuff(), corners, enclosingCylinder, G4VCSGfaceted::operator=(), and original_parameters.
G4bool G4Polyhedra::Reset | ( | ) |
Definition at line 477 of file G4Polyhedra.cc.
References corners, Create(), G4VCSGfaceted::DeleteStuff(), enclosingCylinder, G4endl, G4Exception(), genericPgon, G4VSolid::GetName(), JustWarning, G4PolyhedraHistorical::Num_z_planes, G4PolyhedraHistorical::numSide, G4PolyhedraHistorical::Opening_angle, original_parameters, G4PolyhedraHistorical::Rmax, G4PolyhedraHistorical::Rmin, G4PolyhedraHistorical::Start_angle, and G4PolyhedraHistorical::Z_values.
Referenced by G4GDMLParameterisation::ComputeDimensions(), G4ParameterisationPolyhedraRho::ComputeDimensions(), G4ParameterisationPolyhedraPhi::ComputeDimensions(), and G4ParameterisationPolyhedraZ::ComputeDimensions().
|
inline |
Referenced by G4GDMLParameterisation::ComputeDimensions(), G4ParameterisationPolyhedraRho::ComputeDimensions(), G4ParameterisationPolyhedraPhi::ComputeDimensions(), G4ParameterisationPolyhedraZ::ComputeDimensions(), and G4Polyhedra().
|
protected |
Definition at line 1171 of file G4Polyhedra.cc.
References G4ReduciblePolygon::Bmax(), corners, endPhi, G4endl, G4Exception(), G4VSolid::GetName(), JustWarning, G4VSolid::kCarTolerance, G4PolyhedraHistorical::Num_z_planes, numCorner, G4PolyhedraHistorical::numSide, numSide, G4PolyhedraHistorical::Opening_angle, original_parameters, G4PolyhedraSideRZ::r, G4PolyhedraHistorical::Rmax, G4PolyhedraHistorical::Rmin, G4PolyhedraHistorical::Start_angle, startPhi, G4ReduciblePolygon::StartWithZMin(), z, G4PolyhedraSideRZ::z, and G4PolyhedraHistorical::Z_values.
|
virtual |
Reimplemented from G4VCSGfaceted.
Definition at line 596 of file G4Polyhedra.cc.
References corners, degree, endPhi, genericPgon, G4VSolid::GetName(), G4PolyhedraHistorical::Num_z_planes, numCorner, original_parameters, G4PolyhedraSideRZ::r, G4PolyhedraHistorical::Rmax, G4PolyhedraHistorical::Rmin, startPhi, G4PolyhedraSideRZ::z, and G4PolyhedraHistorical::Z_values.
|
protected |
Definition at line 186 of file G4Polyhedra.hh.
Referenced by CopyStuff(), Create(), CreatePolyhedron(), operator=(), Reset(), SetOriginalParameters(), StreamInfo(), and ~G4Polyhedra().
|
protected |
Definition at line 189 of file G4Polyhedra.hh.
Referenced by CopyStuff(), Create(), DistanceToIn(), Inside(), operator=(), Reset(), and ~G4Polyhedra().
|
protected |
Definition at line 182 of file G4Polyhedra.hh.
Referenced by CopyStuff(), Create(), CreatePolyhedron(), GetPointOnSurface(), SetOriginalParameters(), and StreamInfo().
|
protected |
Definition at line 184 of file G4Polyhedra.hh.
Referenced by CopyStuff(), CreatePolyhedron(), GetPointOnSurface(), Reset(), and StreamInfo().
|
protected |
Definition at line 185 of file G4Polyhedra.hh.
Referenced by CopyStuff(), Create(), CreatePolyhedron(), SetOriginalParameters(), and StreamInfo().
|
protected |
Definition at line 180 of file G4Polyhedra.hh.
Referenced by CopyStuff(), Create(), CreatePolyhedron(), GetPointOnSurface(), and SetOriginalParameters().
|
protected |
Definition at line 187 of file G4Polyhedra.hh.
Referenced by CopyStuff(), CreatePolyhedron(), G4Polyhedra(), GetPointOnSurface(), operator=(), Reset(), SetOriginalParameters(), StreamInfo(), and ~G4Polyhedra().
|
protected |
Definition at line 183 of file G4Polyhedra.hh.
Referenced by CopyStuff(), Create(), CreatePolyhedron(), and GetPointOnSurface().
|
protected |
Definition at line 181 of file G4Polyhedra.hh.
Referenced by CopyStuff(), Create(), CreatePolyhedron(), GetPointOnSurface(), SetOriginalParameters(), and StreamInfo().