#include <G4BoundingSphereScene.hh>
Definition at line 41 of file G4BoundingSphereScene.hh.
◆ G4BoundingSphereScene()
G4BoundingSphereScene::G4BoundingSphereScene |
( |
G4VModel * |
pModel = 0 | ) |
|
◆ ~G4BoundingSphereScene()
G4BoundingSphereScene::~G4BoundingSphereScene |
( |
| ) |
|
|
virtual |
◆ AccrueBoundingSphere()
void G4BoundingSphereScene::AccrueBoundingSphere |
( |
const G4Point3D & |
centre, |
|
|
G4double |
radius |
|
) |
| |
Definition at line 72 of file G4BoundingSphereScene.cc.
90 G4Point3D newExtremity1 = newCentre - newRadius * unitJoin;
92 G4Point3D newExtremity2 = newCentre + newRadius * unitJoin;
94 if (oldExtremity1 * unitJoin < newExtremity1 * unitJoin) {
95 extremity1 = oldExtremity1;
98 extremity1 = newExtremity1;
101 if (oldExtremity2 * unitJoin > newExtremity2 * unitJoin) {
102 extremity2 = oldExtremity2;
105 extremity2 = newExtremity2;
107 fCentre = 0.5 * (extremity2 + extremity1);
108 fRadius = 0.5 * (extremity2 - extremity1).mag ();
BasicVector3D< T > unit() const
◆ GetBoundingSphereExtent()
G4VisExtent G4BoundingSphereScene::GetBoundingSphereExtent |
( |
| ) |
|
◆ GetCentre()
const G4Point3D& G4BoundingSphereScene::GetCentre |
( |
| ) |
const |
|
inline |
◆ GetRadius()
G4double G4BoundingSphereScene::GetRadius |
( |
| ) |
const |
|
inline |
◆ ProcessVolume()
void G4BoundingSphereScene::ProcessVolume |
( |
const G4VSolid & |
solid | ) |
|
|
privatevirtual |
Implements G4PseudoScene.
Definition at line 50 of file G4BoundingSphereScene.cc.
const G4Transform3D * fpCurrentObjectTransformation
G4double GetExtentRadius() const
virtual G4VisExtent GetExtent() const
const G4Point3D & GetExtentCentre() const
void CurtailDescent() const
void AccrueBoundingSphere(const G4Point3D ¢re, G4double radius)
◆ ResetBoundingSphere()
void G4BoundingSphereScene::ResetBoundingSphere |
( |
| ) |
|
Definition at line 65 of file G4BoundingSphereScene.cc.
const G4Transform3D * fpCurrentObjectTransformation
HepGeom::Point3D< G4double > G4Point3D
◆ SetCentre()
void G4BoundingSphereScene::SetCentre |
( |
const G4Point3D & |
centre | ) |
|
|
inline |
◆ fCentre
◆ fpModel
G4VModel* G4BoundingSphereScene::fpModel |
|
private |
◆ fRadius
The documentation for this class was generated from the following files: