47 #if defined(G4GEOM_USE_USOLIDS)
52 class G4USphere :
public G4USolid
71 inline USphere* GetShape()
const;
73 inline G4double GetInnerRadius ()
const;
74 inline G4double GetOuterRadius ()
const;
75 inline G4double GetStartPhiAngle ()
const;
76 inline G4double GetDeltaPhiAngle ()
const;
77 inline G4double GetStartThetaAngle()
const;
78 inline G4double GetDeltaThetaAngle()
const;
80 inline void SetInnerRadius (
G4double newRMin);
81 inline void SetOuterRadius (
G4double newRmax);
83 inline void SetDeltaPhiAngle (
G4double newDphi);
84 inline void SetStartThetaAngle(
G4double newSTheta);
85 inline void SetDeltaThetaAngle(
G4double newDTheta);
95 G4USphere(
const G4USphere& rhs);
96 G4USphere& operator=(
const G4USphere& rhs);
104 inline USphere* G4USphere::GetShape()
const
106 return (USphere*) fShape;
109 inline G4double G4USphere::GetInnerRadius()
const
111 return GetShape()->GetInnerRadius();
113 inline G4double G4USphere::GetOuterRadius()
const
115 return GetShape()->GetOuterRadius();
117 inline G4double G4USphere::GetStartPhiAngle()
const
119 return GetShape()->GetStartPhiAngle();
121 inline G4double G4USphere::GetDeltaPhiAngle()
const
123 return GetShape()->GetDeltaPhiAngle();
125 inline G4double G4USphere::GetStartThetaAngle()
const
127 return GetShape()->GetStartThetaAngle();
129 inline G4double G4USphere::GetDeltaThetaAngle()
const
131 return GetShape()->GetDeltaThetaAngle();
134 inline void G4USphere::SetInnerRadius(
G4double newRMin)
136 GetShape()->SetInnerRadius(newRMin);
137 fRebuildPolyhedron =
true;
139 inline void G4USphere::SetOuterRadius(
G4double newRmax)
141 GetShape()->SetOuterRadius(newRmax);
142 fRebuildPolyhedron =
true;
144 inline void G4USphere::SetStartPhiAngle(
G4double newSphi,
G4bool trig)
146 GetShape()->SetStartPhiAngle(newSphi, trig);
147 fRebuildPolyhedron =
true;
149 inline void G4USphere::SetDeltaPhiAngle(
G4double newDphi)
151 GetShape()->SetDeltaPhiAngle(newDphi);
152 fRebuildPolyhedron =
true;
154 inline void G4USphere::SetStartThetaAngle(
G4double newSTheta)
156 GetShape()->SetStartThetaAngle(newSTheta);
157 fRebuildPolyhedron =
true;
159 inline void G4USphere::SetDeltaThetaAngle(
G4double newDTheta)
161 GetShape()->SetDeltaThetaAngle(newDTheta);
162 fRebuildPolyhedron =
true;
165 #endif // G4GEOM_USE_USOLIDS