58 :
G4VSolid(pName), fRebuildPolyhedron(false), fpPolyhedron(0)
73 :
G4VSolid(pName), fRebuildPolyhedron(false), fpPolyhedron(0)
92 :
G4VSolid(pName), fRebuildPolyhedron(false), fpPolyhedron(0)
105 :
G4VSolid(a), fPtrSolid(0), fPtrTransform(0),
106 fDirectTransform(0), fRebuildPolyhedron(false), fpPolyhedron(0)
125 :
G4VSolid (rhs), fPtrSolid(rhs.fPtrSolid),
126 fRebuildPolyhedron(false), fpPolyhedron(0)
140 if (
this == &rhs) {
return *
this; }
284 G4double xmin,xmax,ymin,ymax,zmin,zmax;
288 pMin.
set(xmin,ymin,zmin);
289 pMax.
set(xmax,ymax,zmax);
294 if (pMin.
x() >= pMax.
x() || pMin.
y() >= pMax.
y() || pMin.
z() >= pMax.
z())
296 std::ostringstream message;
297 message <<
"Bad bounding box (min >= max) for solid: "
299 <<
"\npMin = " << pMin
300 <<
"\npMax = " << pMax;
301 G4Exception(
"G4DisplacedSolid::Extent()",
"GeomMgt0001",
385 calcNorm,validNorm,&solNorm) ;
414 G4Exception(
"G4DisplacedSolid::ComputeDimensions()",
416 "Method not applicable in this context!");
437 return G4String(
"G4DisplacedSolid");
455 os <<
"-----------------------------------------------------------\n"
456 <<
" *** Dump for Displaced solid - " <<
GetName() <<
" ***\n"
457 <<
" ===================================================\n"
459 <<
" Parameters of constituent solid: \n"
460 <<
"===========================================================\n";
462 os <<
"===========================================================\n"
463 <<
" Transformations: \n"
464 <<
" Direct transformation - translation : \n"
466 <<
" - rotation : \n"
470 <<
"===========================================================\n";
void set(double x, double y, double z)
G4DisplacedSolid & operator=(const G4DisplacedSolid &rhs)
virtual G4bool CalculateExtent(const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const =0
G4Polyhedron * GetPolyhedron() const
virtual ~G4DisplacedSolid()
std::ostream & print(std::ostream &os) const
void CleanTransformations()
G4ThreeVector GetFrameTranslation() const
void Extent(G4ThreeVector &pMin, G4ThreeVector &pMax) const
G4RotationMatrix GetObjectRotation() const
const G4DisplacedSolid * GetDisplacedSolidPtr() const
G4AffineTransform GetDirectTransform() const
G4Polyhedron * CreatePolyhedron() const
HepPolyhedron & Transform(const G4Transform3D &t)
virtual void AddSolid(const G4Box &)=0
G4ThreeVector GetObjectTranslation() const
HepRotation inverse() const
G4RotationMatrix GetFrameRotation() const
static double normal(HepRandomEngine *eptr)
virtual std::ostream & StreamInfo(std::ostream &os) const =0
void SetDirectTransform(G4AffineTransform &)
virtual EInside Inside(const G4ThreeVector &p) const =0
void ComputeDimensions(G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
void SetFrameTranslation(const G4ThreeVector &)
virtual G4ThreeVector SurfaceNormal(const G4ThreeVector &p) const =0
G4DisplacedSolid(const G4String &pName, G4VSolid *pSolid, G4RotationMatrix *rotMatrix, const G4ThreeVector &transVector)
virtual G4double DistanceToIn(const G4ThreeVector &p, const G4ThreeVector &v) const =0
virtual G4Polyhedron * CreatePolyhedron() const
G4bool fRebuildPolyhedron
G4GeometryType GetEntityType() const
G4AffineTransform GetTransform() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4AffineTransform * fPtrTransform
G4double DistanceToIn(const G4ThreeVector &p, const G4ThreeVector &v) const
G4ThreeVector SurfaceNormal(const G4ThreeVector &p) const
static G4int GetNumberOfRotationSteps()
G4VSolid * GetConstituentMovedSolid() const
virtual G4ThreeVector GetPointOnSurface() const
G4Polyhedron * fpPolyhedron
G4AffineTransform * fDirectTransform
G4VSolid & operator=(const G4VSolid &rhs)
G4int GetNumberOfRotationStepsAtTimeOfCreation() const
void SetObjectTranslation(const G4ThreeVector &)
void SetTransform(G4AffineTransform &)
std::ostream & StreamInfo(std::ostream &os) const
virtual G4double DistanceToOut(const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=0, G4ThreeVector *n=0) const =0
G4bool CalculateExtent(const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const
G4double DistanceToOut(const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=0, G4ThreeVector *n=0) const
void SetObjectRotation(const G4RotationMatrix &)
virtual void Extent(G4ThreeVector &pMin, G4ThreeVector &pMax) const
void SetFrameRotation(const G4RotationMatrix &)
G4ThreeVector GetPointOnSurface() const
void DescribeYourselfTo(G4VGraphicsScene &scene) const
EInside Inside(const G4ThreeVector &p) const