36 #if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
44 G4UTrd::G4UTrd(
const G4String& pName,
48 : G4USolid(pName, new UTrd(pName, pdx1, pdx2, pdy1, pdy2, pdz))
57 G4UTrd::G4UTrd( __void__&
a )
74 G4UTrd::G4UTrd(
const G4UTrd& rhs)
83 G4UTrd& G4UTrd::operator = (
const G4UTrd& rhs)
87 if (
this == &rhs) {
return *
this; }
91 G4USolid::operator=(rhs);
100 G4double G4UTrd::GetXHalfLength1()
const
102 return GetShape()->GetXHalfLength1();
104 G4double G4UTrd::GetXHalfLength2()
const
106 return GetShape()->GetXHalfLength2();
108 G4double G4UTrd::GetYHalfLength1()
const
110 return GetShape()->GetYHalfLength1();
112 G4double G4UTrd::GetYHalfLength2()
const
114 return GetShape()->GetYHalfLength2();
116 G4double G4UTrd::GetZHalfLength()
const
118 return GetShape()->GetZHalfLength();
121 void G4UTrd::SetXHalfLength1(
G4double val)
123 GetShape()->SetXHalfLength1(val);
124 fRebuildPolyhedron =
true;
126 void G4UTrd::SetXHalfLength2(
G4double val)
128 GetShape()->SetXHalfLength2(val);
129 fRebuildPolyhedron =
true;
131 void G4UTrd::SetYHalfLength1(
G4double val)
133 GetShape()->SetYHalfLength1(val);
134 fRebuildPolyhedron =
true;
136 void G4UTrd::SetYHalfLength2(
G4double val)
138 GetShape()->SetYHalfLength2(val);
139 fRebuildPolyhedron =
true;
141 void G4UTrd::SetZHalfLength(
G4double val)
143 GetShape()->SetZHalfLength(val);
144 fRebuildPolyhedron =
true;
149 GetShape()->SetAllParameters(pdx1, pdx2, pdy1, pdy2, pdz);
150 fRebuildPolyhedron =
true;
171 return new G4UTrd(*
this);
187 #endif // G4GEOM_USE_USOLIDS
virtual void ComputeDimensions(G4Box &, const G4int, const G4VPhysicalVolume *) const