47 #if defined(G4GEOM_USE_USOLIDS)
52 class G4UTrd :
public G4USolid
70 inline UTrd* GetShape()
const;
72 inline G4double GetXHalfLength1()
const;
73 inline G4double GetXHalfLength2()
const;
74 inline G4double GetYHalfLength1()
const;
75 inline G4double GetYHalfLength2()
const;
76 inline G4double GetZHalfLength()
const;
78 inline void SetXHalfLength1(
G4double val);
79 inline void SetXHalfLength2(
G4double val);
80 inline void SetYHalfLength1(
G4double val);
81 inline void SetYHalfLength2(
G4double val);
82 inline void SetZHalfLength(
G4double val);
95 G4UTrd(
const G4UTrd& rhs);
96 G4UTrd& operator=(
const G4UTrd& rhs);
104 inline UTrd* G4UTrd::GetShape()
const
106 return (UTrd*) fShape;
109 inline G4double G4UTrd::GetXHalfLength1()
const
111 return GetShape()->GetXHalfLength1();
113 inline G4double G4UTrd::GetXHalfLength2()
const
115 return GetShape()->GetXHalfLength2();
117 inline G4double G4UTrd::GetYHalfLength1()
const
119 return GetShape()->GetYHalfLength1();
121 inline G4double G4UTrd::GetYHalfLength2()
const
123 return GetShape()->GetYHalfLength2();
125 inline G4double G4UTrd::GetZHalfLength()
const
127 return GetShape()->GetZHalfLength();
130 inline void G4UTrd::SetXHalfLength1(
G4double val)
132 GetShape()->SetXHalfLength1(val);
133 fRebuildPolyhedron =
true;
135 inline void G4UTrd::SetXHalfLength2(
G4double val)
137 GetShape()->SetXHalfLength2(val);
138 fRebuildPolyhedron =
true;
140 inline void G4UTrd::SetYHalfLength1(
G4double val)
142 GetShape()->SetYHalfLength1(val);
143 fRebuildPolyhedron =
true;
145 inline void G4UTrd::SetYHalfLength2(
G4double val)
147 GetShape()->SetYHalfLength2(val);
148 fRebuildPolyhedron =
true;
150 inline void G4UTrd::SetZHalfLength(
G4double val)
152 GetShape()->SetZHalfLength(val);
153 fRebuildPolyhedron =
true;
159 GetShape()->SetAllParameters(pdx1, pdx2, pdy1, pdy2, pdz);
160 fRebuildPolyhedron =
true;
163 #endif // G4GEOM_USE_USOLIDS