144 :
G4VSolid (rhs), fPtrSolid(rhs.fPtrSolid)
158 if (
this == &rhs) {
return *
this; }
303 G4double xmin,xmax,ymin,ymax,zmin,zmax;
307 pMin.
set(xmin,ymin,zmin);
308 pMax.
set(xmax,ymax,zmax);
313 if (pMin.
x() >= pMax.
x() || pMin.
y() >= pMax.
y() || pMin.
z() >= pMax.
z())
315 std::ostringstream message;
316 message <<
"Bad bounding box (min >= max) for solid: "
318 <<
"\npMin = " << pMin
319 <<
"\npMax = " << pMax;
320 G4Exception(
"G4DisplacedSolid::BoundingLimits()",
"GeomMgt0001",
404 calcNorm,validNorm,&solNorm) ;
433 G4Exception(
"G4DisplacedSolid::ComputeDimensions()",
435 "Method not applicable in this context!");
474 return G4String(
"G4DisplacedSolid");
492 os <<
"-----------------------------------------------------------\n"
493 <<
" *** Dump for Displaced solid - " <<
GetName() <<
" ***\n"
494 <<
" ===================================================\n"
496 <<
" Parameters of constituent solid: \n"
497 <<
"===========================================================\n";
499 os <<
"===========================================================\n"
500 <<
" Transformations: \n"
501 <<
" Direct transformation - translation : \n"
503 <<
" - rotation : \n"
507 <<
"===========================================================\n";
530 if (polyhedron !=
nullptr)
538 G4Exception(
"G4DisplacedSolid::CreatePolyhedron()",
540 "No G4Polyhedron for displaced solid");
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
void set(double x, double y, double z)
std::ostream & print(std::ostream &os) const
HepRotation inverse() const
G4GeometryType GetEntityType() const
G4bool fRebuildPolyhedron
G4Polyhedron * CreatePolyhedron() const
G4RotationMatrix GetObjectRotation() const
G4Polyhedron * fpPolyhedron
void SetTransform(G4AffineTransform &)
virtual ~G4DisplacedSolid()
G4AffineTransform * fPtrTransform
G4AffineTransform * fDirectTransform
G4VSolid * GetConstituentMovedSolid() const
G4AffineTransform GetTransform() const
G4Polyhedron * GetPolyhedron() const
G4double GetSurfaceArea()
const G4DisplacedSolid * GetDisplacedSolidPtr() const
void SetObjectRotation(const G4RotationMatrix &)
G4ThreeVector GetPointOnSurface() const
G4bool CalculateExtent(const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const
G4DisplacedSolid & operator=(const G4DisplacedSolid &rhs)
G4DisplacedSolid(const G4String &pName, G4VSolid *pSolid, G4RotationMatrix *rotMatrix, const G4ThreeVector &transVector)
void BoundingLimits(G4ThreeVector &pMin, G4ThreeVector &pMax) const
void DescribeYourselfTo(G4VGraphicsScene &scene) const
void SetDirectTransform(G4AffineTransform &)
void CleanTransformations()
G4ThreeVector GetObjectTranslation() const
void ComputeDimensions(G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
std::ostream & StreamInfo(std::ostream &os) const
void SetFrameRotation(const G4RotationMatrix &)
void SetFrameTranslation(const G4ThreeVector &)
G4double DistanceToOut(const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=0, G4ThreeVector *n=0) const
G4AffineTransform GetDirectTransform() const
EInside Inside(const G4ThreeVector &p) const
G4double DistanceToIn(const G4ThreeVector &p, const G4ThreeVector &v) const
G4double GetCubicVolume()
G4RotationMatrix GetFrameRotation() const
void SetObjectTranslation(const G4ThreeVector &)
G4ThreeVector GetFrameTranslation() const
G4ThreeVector SurfaceNormal(const G4ThreeVector &p) const
G4int GetNumberOfRotationStepsAtTimeOfCreation() const
virtual void AddSolid(const G4Box &)=0
virtual std::ostream & StreamInfo(std::ostream &os) const =0
virtual G4bool CalculateExtent(const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const =0
virtual EInside Inside(const G4ThreeVector &p) const =0
virtual G4double DistanceToOut(const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=nullptr, G4ThreeVector *n=nullptr) const =0
virtual G4ThreeVector GetPointOnSurface() const
virtual G4ThreeVector SurfaceNormal(const G4ThreeVector &p) const =0
virtual void BoundingLimits(G4ThreeVector &pMin, G4ThreeVector &pMax) const
virtual G4Polyhedron * CreatePolyhedron() const
G4VSolid & operator=(const G4VSolid &rhs)
virtual G4double DistanceToIn(const G4ThreeVector &p, const G4ThreeVector &v) const =0
virtual G4double GetCubicVolume()
virtual G4double GetSurfaceArea()
virtual G4GeometryType GetEntityType() const =0
static G4int GetNumberOfRotationSteps()
HepPolyhedron & Transform(const G4Transform3D &t)