Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4USphere Class Reference

#include <G4USphere.hh>

Inheritance diagram for G4USphere:
G4USolid G4VSolid

Public Member Functions

 G4USphere (const G4String &pName, G4double pRmin, G4double pRmax, G4double pSPhi, G4double pDPhi, G4double pSTheta, G4double pDTheta)
 
 ~G4USphere ()
 
void ComputeDimensions (G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
 
G4VSolidClone () const
 
USphereGetShape () const
 
G4double GetInnerRadius () const
 
G4double GetOuterRadius () const
 
G4double GetStartPhiAngle () const
 
G4double GetDeltaPhiAngle () const
 
G4double GetStartThetaAngle () const
 
G4double GetDeltaThetaAngle () const
 
void SetInnerRadius (G4double newRMin)
 
void SetOuterRadius (G4double newRmax)
 
void SetStartPhiAngle (G4double newSphi, G4bool trig=true)
 
void SetDeltaPhiAngle (G4double newDphi)
 
void SetStartThetaAngle (G4double newSTheta)
 
void SetDeltaThetaAngle (G4double newDTheta)
 
 G4USphere (__void__ &)
 
 G4USphere (const G4USphere &rhs)
 
G4USphereoperator= (const G4USphere &rhs)
 
- Public Member Functions inherited from G4USolid
 G4USolid (const G4String &pName, VUSolid *shape)
 
virtual ~G4USolid ()
 
G4bool operator== (const G4USolid &s) const
 
virtual G4bool CalculateExtent (const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const
 
virtual EInside Inside (const G4ThreeVector &p) const
 
virtual G4ThreeVector SurfaceNormal (const G4ThreeVector &p) const
 
virtual G4double DistanceToIn (const G4ThreeVector &p, const G4ThreeVector &v) const
 
virtual G4double DistanceToIn (const G4ThreeVector &p) const
 
virtual G4double DistanceToOut (const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=0, G4ThreeVector *n=0) const
 
virtual G4double DistanceToOut (const G4ThreeVector &p) const
 
virtual G4double GetCubicVolume ()
 
virtual G4double GetSurfaceArea ()
 
virtual G4GeometryType GetEntityType () const
 
virtual G4ThreeVector GetPointOnSurface () const
 
virtual std::ostream & StreamInfo (std::ostream &os) const
 
virtual void DescribeYourselfTo (G4VGraphicsScene &scene) const
 
virtual G4VisExtent GetExtent () const
 
G4PolyhedronCreatePolyhedron () const
 
virtual G4PolyhedronGetPolyhedron () const
 
 G4USolid (__void__ &)
 
 G4USolid (const G4USolid &rhs)
 
G4USolidoperator= (const G4USolid &rhs)
 
VUSolidGetSolid () const
 
- 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
 
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)
 

Additional Inherited Members

- Protected Member Functions inherited from G4USolid
G4ThreeVectorListCreateRotatedVertices (const G4AffineTransform &pT) const
 
- 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
 
G4double EstimateCubicVolume (G4int nStat, G4double epsilon) const
 
G4double EstimateSurfaceArea (G4int nStat, G4double ell) const
 
- Protected Attributes inherited from G4USolid
VUSolidfShape
 
G4PolyhedronfPolyhedron
 
- Protected Attributes inherited from G4VSolid
G4double kCarTolerance
 

Detailed Description

Definition at line 48 of file G4USphere.hh.

Constructor & Destructor Documentation

G4USphere::G4USphere ( const G4String pName,
G4double  pRmin,
G4double  pRmax,
G4double  pSPhi,
G4double  pDPhi,
G4double  pSTheta,
G4double  pDTheta 
)

Definition at line 42 of file G4USphere.cc.

Referenced by Clone().

46  : G4USolid(pName, new USphere(pName, pRmin, pRmax, pSPhi, pDPhi,
47  pSTheta, pDTheta))
48 {
49 }
G4USolid(const G4String &pName, VUSolid *shape)
Definition: G4USolid.cc:44
G4USphere::~G4USphere ( )

Definition at line 65 of file G4USphere.cc.

66 {
67 }
G4USphere::G4USphere ( __void__ &  a)

Definition at line 56 of file G4USphere.cc.

57  : G4USolid(a)
58 {
59 }
G4USolid(const G4String &pName, VUSolid *shape)
Definition: G4USolid.cc:44
G4USphere::G4USphere ( const G4USphere rhs)

Definition at line 73 of file G4USphere.cc.

74  : G4USolid(rhs)
75 {
76 }
G4USolid(const G4String &pName, VUSolid *shape)
Definition: G4USolid.cc:44

Member Function Documentation

G4VSolid * G4USphere::Clone ( ) const
virtual

Reimplemented from G4USolid.

Definition at line 111 of file G4USphere.cc.

References G4USphere().

112 {
113  return new G4USphere(*this);
114 }
G4USphere(const G4String &pName, G4double pRmin, G4double pRmax, G4double pSPhi, G4double pDPhi, G4double pSTheta, G4double pDTheta)
Definition: G4USphere.cc:42
void G4USphere::ComputeDimensions ( G4VPVParameterisation p,
const G4int  n,
const G4VPhysicalVolume pRep 
)
virtual

Reimplemented from G4USolid.

Definition at line 100 of file G4USphere.cc.

References G4VPVParameterisation::ComputeDimensions().

103 {
104  p->ComputeDimensions(*(G4Sphere*)this,n,pRep);
105 }
const G4int n
virtual void ComputeDimensions(G4Box &, const G4int, const G4VPhysicalVolume *) const
G4double G4USphere::GetDeltaPhiAngle ( ) const
inline

Definition at line 117 of file G4USphere.hh.

References USphere::GetDeltaPhiAngle(), and GetShape().

118 {
119  return GetShape()->GetDeltaPhiAngle();
120 }
USphere * GetShape() const
Definition: G4USphere.hh:100
double GetDeltaPhiAngle() const
Definition: USphere.hh:230
G4double G4USphere::GetDeltaThetaAngle ( ) const
inline

Definition at line 125 of file G4USphere.hh.

References USphere::GetDeltaThetaAngle(), and GetShape().

126 {
127  return GetShape()->GetDeltaThetaAngle();
128 }
double GetDeltaThetaAngle() const
Definition: USphere.hh:241
USphere * GetShape() const
Definition: G4USphere.hh:100
G4double G4USphere::GetInnerRadius ( ) const
inline

Definition at line 105 of file G4USphere.hh.

References USphere::GetInnerRadius(), and GetShape().

106 {
107  return GetShape()->GetInnerRadius();
108 }
double GetInnerRadius() const
Definition: USphere.hh:212
USphere * GetShape() const
Definition: G4USphere.hh:100
G4double G4USphere::GetOuterRadius ( ) const
inline

Definition at line 109 of file G4USphere.hh.

References USphere::GetOuterRadius(), and GetShape().

110 {
111  return GetShape()->GetOuterRadius();
112 }
double GetOuterRadius() const
Definition: USphere.hh:218
USphere * GetShape() const
Definition: G4USphere.hh:100
USphere * G4USphere::GetShape ( ) const
inline
G4double G4USphere::GetStartPhiAngle ( ) const
inline

Definition at line 113 of file G4USphere.hh.

References GetShape(), and USphere::GetStartPhiAngle().

114 {
115  return GetShape()->GetStartPhiAngle();
116 }
USphere * GetShape() const
Definition: G4USphere.hh:100
double GetStartPhiAngle() const
Definition: USphere.hh:224
G4double G4USphere::GetStartThetaAngle ( ) const
inline

Definition at line 121 of file G4USphere.hh.

References GetShape(), and USphere::GetStartThetaAngle().

122 {
123  return GetShape()->GetStartThetaAngle();
124 }
USphere * GetShape() const
Definition: G4USphere.hh:100
double GetStartThetaAngle() const
Definition: USphere.hh:236
G4USphere & G4USphere::operator= ( const G4USphere rhs)

Definition at line 82 of file G4USphere.cc.

References G4USolid::operator=().

83 {
84  // Check assignment to self
85  //
86  if (this == &rhs) { return *this; }
87 
88  // Copy base class data
89  //
91 
92  return *this;
93 }
G4USolid & operator=(const G4USolid &rhs)
Definition: G4USolid.cc:370
void G4USphere::SetDeltaPhiAngle ( G4double  newDphi)
inline

Definition at line 144 of file G4USphere.hh.

References G4USolid::fPolyhedron, GetShape(), and USphere::SetDeltaPhiAngle().

145 {
146  GetShape()->SetDeltaPhiAngle(newDphi);
147  fPolyhedron = 0;
148 }
USphere * GetShape() const
Definition: G4USphere.hh:100
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183
void SetDeltaPhiAngle(double newDphi)
Definition: USphere.hh:430
void G4USphere::SetDeltaThetaAngle ( G4double  newDTheta)
inline

Definition at line 154 of file G4USphere.hh.

References G4USolid::fPolyhedron, GetShape(), and USphere::SetDeltaThetaAngle().

155 {
156  GetShape()->SetDeltaThetaAngle(newDTheta);
157  fPolyhedron = 0;
158 }
void SetDeltaThetaAngle(double newDTheta)
Definition: USphere.hh:444
USphere * GetShape() const
Definition: G4USphere.hh:100
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183
void G4USphere::SetInnerRadius ( G4double  newRMin)
inline

Definition at line 130 of file G4USphere.hh.

References G4USolid::fPolyhedron, GetShape(), and USphere::SetInnerRadius().

131 {
132  GetShape()->SetInnerRadius(newRMin);
133  fPolyhedron = 0;
134 }
void SetInnerRadius(double newRMin)
Definition: USphere.hh:401
USphere * GetShape() const
Definition: G4USphere.hh:100
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183
void G4USphere::SetOuterRadius ( G4double  newRmax)
inline

Definition at line 135 of file G4USphere.hh.

References G4USolid::fPolyhedron, GetShape(), and USphere::SetOuterRadius().

136 {
137  GetShape()->SetOuterRadius(newRmax);
138  fPolyhedron = 0;
139 }
USphere * GetShape() const
Definition: G4USphere.hh:100
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183
void SetOuterRadius(double newRmax)
Definition: USphere.hh:407
void G4USphere::SetStartPhiAngle ( G4double  newSphi,
G4bool  trig = true 
)
inline

Definition at line 140 of file G4USphere.hh.

References GetShape(), and USphere::SetStartPhiAngle().

141 {
142  GetShape()->SetStartPhiAngle(newSphi, trig);
143 }
void SetStartPhiAngle(double newSphi, bool trig=true)
Definition: USphere.hh:415
USphere * GetShape() const
Definition: G4USphere.hh:100
void G4USphere::SetStartThetaAngle ( G4double  newSTheta)
inline

Definition at line 149 of file G4USphere.hh.

References G4USolid::fPolyhedron, GetShape(), and USphere::SetStartThetaAngle().

150 {
151  GetShape()->SetStartThetaAngle(newSTheta);
152  fPolyhedron = 0;
153 }
void SetStartThetaAngle(double newSTheta)
Definition: USphere.hh:437
USphere * GetShape() const
Definition: G4USphere.hh:100
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183

The documentation for this class was generated from the following files: