38 #if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
47 G4UTorus::G4UTorus(
const G4String& pName,
50 : G4USolid(pName, new UTorus(pName, rmin, rmax, rtor, sphi, dphi))
58 G4UTorus::G4UTorus( __void__&
a )
66 G4UTorus::~G4UTorus() { }
72 G4UTorus::G4UTorus(
const G4UTorus& rhs)
80 G4UTorus& G4UTorus::operator = (
const G4UTorus& rhs)
84 if (
this == &rhs) {
return *
this; }
88 G4USolid::operator=(rhs);
99 return GetShape()->GetRmin();
104 return GetShape()->GetRmax();
109 return GetShape()->GetRtor();
114 return GetShape()->GetSPhi();
119 return GetShape()->GetDPhi();
122 void G4UTorus::SetRmin(
G4double arg)
124 GetShape()->SetRmin(arg);
125 fRebuildPolyhedron =
true;
128 void G4UTorus::SetRmax(
G4double arg)
130 GetShape()->SetRmax(arg);
131 fRebuildPolyhedron =
true;
134 void G4UTorus::SetRtor(
G4double arg)
136 GetShape()->SetRtor(arg);
137 fRebuildPolyhedron =
true;
140 void G4UTorus::SetSPhi(
G4double arg)
142 GetShape()->SetSPhi(arg);
143 fRebuildPolyhedron =
true;
146 void G4UTorus::SetDPhi(
G4double arg)
148 GetShape()->SetDPhi(arg);
149 fRebuildPolyhedron =
true;
155 GetShape()->SetRmin(arg1);
156 GetShape()->SetRmax(arg2);
157 GetShape()->SetRtor(arg3);
158 GetShape()->SetSPhi(arg4);
159 GetShape()->SetDPhi(arg5);
160 fRebuildPolyhedron =
true;
181 return new G4UTorus(*
this);
197 #endif // G4GEOM_USE_USOLIDS
virtual void ComputeDimensions(G4Box &, const G4int, const G4VPhysicalVolume *) const