36 #if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
45 G4UCons::G4UCons(
const G4String& pName,
50 : G4USolid(pName, new UCons(pName, pRmin1, pRmax1, pRmin2, pRmax2,
60 G4UCons::G4UCons( __void__&
a )
77 G4UCons::G4UCons(
const G4UCons& rhs)
86 G4UCons& G4UCons::operator = (
const G4UCons& rhs)
90 if (
this == &rhs) {
return *
this; }
94 G4USolid::operator=(rhs);
103 G4double G4UCons::GetInnerRadiusMinusZ()
const
105 return GetShape()->GetInnerRadiusMinusZ();
107 G4double G4UCons::GetOuterRadiusMinusZ()
const
109 return GetShape()->GetOuterRadiusMinusZ();
111 G4double G4UCons::GetInnerRadiusPlusZ()
const
113 return GetShape()->GetInnerRadiusPlusZ();
115 G4double G4UCons::GetOuterRadiusPlusZ()
const
117 return GetShape()->GetOuterRadiusPlusZ();
119 G4double G4UCons::GetZHalfLength()
const
121 return GetShape()->GetZHalfLength();
123 G4double G4UCons::GetStartPhiAngle()
const
125 return GetShape()->GetStartPhiAngle();
127 G4double G4UCons::GetDeltaPhiAngle()
const
129 return GetShape()->GetDeltaPhiAngle();
132 void G4UCons::SetInnerRadiusMinusZ(
G4double Rmin1)
134 GetShape()->SetInnerRadiusMinusZ(Rmin1);
135 fRebuildPolyhedron =
true;
137 void G4UCons::SetOuterRadiusMinusZ(
G4double Rmax1)
139 GetShape()->SetOuterRadiusMinusZ(Rmax1);
140 fRebuildPolyhedron =
true;
142 void G4UCons::SetInnerRadiusPlusZ(
G4double Rmin2)
144 GetShape()->SetInnerRadiusPlusZ(Rmin2);
145 fRebuildPolyhedron =
true;
147 void G4UCons::SetOuterRadiusPlusZ(
G4double Rmax2)
149 GetShape()->SetOuterRadiusPlusZ(Rmax2);
150 fRebuildPolyhedron =
true;
152 void G4UCons::SetZHalfLength(
G4double newDz)
154 GetShape()->SetZHalfLength(newDz);
155 fRebuildPolyhedron =
true;
159 GetShape()->SetStartPhiAngle(newSPhi, trig);
160 fRebuildPolyhedron =
true;
162 void G4UCons::SetDeltaPhiAngle(
G4double newDPhi)
164 GetShape()->SetDeltaPhiAngle(newDPhi);
165 fRebuildPolyhedron =
true;
186 return new G4UCons(*
this);
196 GetOuterRadiusMinusZ(),
197 GetInnerRadiusPlusZ(),
198 GetOuterRadiusPlusZ(),
204 #endif // G4GEOM_USE_USOLIDS
virtual void ComputeDimensions(G4Box &, const G4int, const G4VPhysicalVolume *) const