36 #if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
45 G4USphere::G4USphere(
const G4String& pName,
49 : G4USolid(pName, new USphere(pName, pRmin, pRmax, pSPhi, pDPhi,
59 G4USphere::G4USphere( __void__&
a )
68 G4USphere::~G4USphere()
76 G4USphere::G4USphere(
const G4USphere& rhs)
85 G4USphere& G4USphere::operator = (
const G4USphere& rhs)
89 if (
this == &rhs) {
return *
this; }
93 G4USolid::operator=(rhs);
102 G4double G4USphere::GetInnerRadius()
const
104 return GetShape()->GetInnerRadius();
106 G4double G4USphere::GetOuterRadius()
const
108 return GetShape()->GetOuterRadius();
110 G4double G4USphere::GetStartPhiAngle()
const
112 return GetShape()->GetStartPhiAngle();
114 G4double G4USphere::GetDeltaPhiAngle()
const
116 return GetShape()->GetDeltaPhiAngle();
118 G4double G4USphere::GetStartThetaAngle()
const
120 return GetShape()->GetStartThetaAngle();
122 G4double G4USphere::GetDeltaThetaAngle()
const
124 return GetShape()->GetDeltaThetaAngle();
127 void G4USphere::SetInnerRadius(
G4double newRMin)
129 GetShape()->SetInnerRadius(newRMin);
130 fRebuildPolyhedron =
true;
132 void G4USphere::SetOuterRadius(
G4double newRmax)
134 GetShape()->SetOuterRadius(newRmax);
135 fRebuildPolyhedron =
true;
139 GetShape()->SetStartPhiAngle(newSphi, trig);
140 fRebuildPolyhedron =
true;
142 void G4USphere::SetDeltaPhiAngle(
G4double newDphi)
144 GetShape()->SetDeltaPhiAngle(newDphi);
145 fRebuildPolyhedron =
true;
147 void G4USphere::SetStartThetaAngle(
G4double newSTheta)
149 GetShape()->SetStartThetaAngle(newSTheta);
150 fRebuildPolyhedron =
true;
152 void G4USphere::SetDeltaThetaAngle(
G4double newDTheta)
154 GetShape()->SetDeltaThetaAngle(newDTheta);
155 fRebuildPolyhedron =
true;
176 return new G4USphere(*
this);
189 GetStartThetaAngle(),
190 GetDeltaThetaAngle());
193 #endif // G4GEOM_USE_USOLIDS
virtual void ComputeDimensions(G4Box &, const G4int, const G4VPhysicalVolume *) const