48 #if defined(G4GEOM_USE_USOLIDS)
53 class G4UCons :
public G4USolid
72 inline UCons* GetShape()
const;
74 inline G4double GetInnerRadiusMinusZ()
const;
75 inline G4double GetOuterRadiusMinusZ()
const;
76 inline G4double GetInnerRadiusPlusZ()
const;
77 inline G4double GetOuterRadiusPlusZ()
const;
78 inline G4double GetZHalfLength()
const;
79 inline G4double GetStartPhiAngle()
const;
80 inline G4double GetDeltaPhiAngle()
const;
82 inline void SetInnerRadiusMinusZ (
G4double Rmin1 );
83 inline void SetOuterRadiusMinusZ (
G4double Rmax1 );
84 inline void SetInnerRadiusPlusZ (
G4double Rmin2 );
85 inline void SetOuterRadiusPlusZ (
G4double Rmax2 );
86 inline void SetZHalfLength (
G4double newDz );
88 inline void SetDeltaPhiAngle (
G4double newDPhi);
97 G4UCons(
const G4UCons& rhs);
98 G4UCons& operator=(
const G4UCons& rhs);
106 inline UCons* G4UCons::GetShape()
const
108 return (UCons*) fShape;
111 inline G4double G4UCons::GetInnerRadiusMinusZ()
const
113 return GetShape()->GetInnerRadiusMinusZ();
115 inline G4double G4UCons::GetOuterRadiusMinusZ()
const
117 return GetShape()->GetOuterRadiusMinusZ();
119 inline G4double G4UCons::GetInnerRadiusPlusZ()
const
121 return GetShape()->GetInnerRadiusPlusZ();
123 inline G4double G4UCons::GetOuterRadiusPlusZ()
const
125 return GetShape()->GetOuterRadiusPlusZ();
127 inline G4double G4UCons::GetZHalfLength()
const
129 return GetShape()->GetZHalfLength();
131 inline G4double G4UCons::GetStartPhiAngle()
const
133 return GetShape()->GetStartPhiAngle();
135 inline G4double G4UCons::GetDeltaPhiAngle()
const
137 return GetShape()->GetDeltaPhiAngle();
140 inline void G4UCons::SetInnerRadiusMinusZ(
G4double Rmin1)
142 GetShape()->SetInnerRadiusMinusZ(Rmin1);
143 fRebuildPolyhedron =
true;
145 inline void G4UCons::SetOuterRadiusMinusZ(
G4double Rmax1)
147 GetShape()->SetOuterRadiusMinusZ(Rmax1);
148 fRebuildPolyhedron =
true;
150 inline void G4UCons::SetInnerRadiusPlusZ(
G4double Rmin2)
152 GetShape()->SetInnerRadiusPlusZ(Rmin2);
153 fRebuildPolyhedron =
true;
155 inline void G4UCons::SetOuterRadiusPlusZ(
G4double Rmax2)
157 GetShape()->SetOuterRadiusPlusZ(Rmax2);
158 fRebuildPolyhedron =
true;
160 inline void G4UCons::SetZHalfLength(
G4double newDz)
162 GetShape()->SetZHalfLength(newDz);
163 fRebuildPolyhedron =
true;
165 inline void G4UCons::SetStartPhiAngle(
G4double newSPhi,
G4bool trig)
167 GetShape()->SetStartPhiAngle(newSPhi, trig);
168 fRebuildPolyhedron =
true;
170 inline void G4UCons::SetDeltaPhiAngle(
G4double newDPhi)
172 GetShape()->SetDeltaPhiAngle(newDPhi);
173 fRebuildPolyhedron =
true;
176 #endif // G4GEOM_USE_USOLIDS