36 #if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
45 G4UBox::G4UBox(
const G4String& pName,
49 : G4USolid(pName, new UBox(pName, pX, pY, pZ))
58 G4UBox::G4UBox( __void__&
a )
75 G4UBox::G4UBox(
const G4UBox& rhs)
84 G4UBox& G4UBox::operator = (
const G4UBox& rhs)
88 if (
this == &rhs) {
return *
this; }
92 G4USolid::operator=(rhs);
101 G4double G4UBox::GetXHalfLength()
const
103 return GetShape()->GetXHalfLength();
105 G4double G4UBox::GetYHalfLength()
const
107 return GetShape()->GetYHalfLength();
109 G4double G4UBox::GetZHalfLength()
const
111 return GetShape()->GetZHalfLength();
114 void G4UBox::SetXHalfLength(
G4double dx)
116 GetShape()->SetXHalfLength(dx);
117 fRebuildPolyhedron =
true;
119 void G4UBox::SetYHalfLength(
G4double dy)
121 GetShape()->SetYHalfLength(dy);
122 fRebuildPolyhedron =
true;
124 void G4UBox::SetZHalfLength(
G4double dz)
126 GetShape()->SetZHalfLength(dz);
127 fRebuildPolyhedron =
true;
148 return new G4UBox(*
this);
162 #endif // G4GEOM_USE_USOLIDS
virtual void ComputeDimensions(G4Box &, const G4int, const G4VPhysicalVolume *) const