34#if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
51 : Base_t(pName, pX, pY, pZ)
60G4UBox::G4UBox( __void__& a )
77G4UBox::G4UBox(
const G4UBox& rhs)
86G4UBox& G4UBox::operator = (
const G4UBox& rhs)
90 if (
this == &rhs) {
return *
this; }
94 Base_t::operator=(rhs);
103G4double G4UBox::GetXHalfLength()
const
107G4double G4UBox::GetYHalfLength()
const
111G4double G4UBox::GetZHalfLength()
const
116void G4UBox::SetXHalfLength(
G4double dx)
119 fRebuildPolyhedron =
true;
121void G4UBox::SetYHalfLength(
G4double dy)
124 fRebuildPolyhedron =
true;
126void G4UBox::SetZHalfLength(
G4double dz)
129 fRebuildPolyhedron =
true;
150 return new G4UBox(*
this);
162 pMin.
set(-dx,-dy,-dz);
163 pMax.
set( dx, dy, dz);
167 if (pMin.
x() >= pMax.
x() || pMin.
y() >= pMax.
y() || pMin.
z() >= pMax.
z())
169 std::ostringstream message;
170 message <<
"Bad bounding box (min >= max) for solid: "
172 <<
"\npMin = " << pMin
173 <<
"\npMax = " << pMax;
174 G4Exception(
"G4UBox::BoundingLimits()",
"GeomMgt0001",
185G4UBox::CalculateExtent(
const EAxis pAxis,
193 BoundingLimits(bmin,bmax);
197 return bbox.CalculateExtent(pAxis,pVoxelLimit,pTransform,pMin,pMax);
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
void set(double x, double y, double z)
virtual void ComputeDimensions(G4Box &, const G4int, const G4VPhysicalVolume *) const