54 :
G4VSolid(pName), fPtrSolid(pSolid),
55 fRebuildPolyhedron(false), fpPolyhedron(0)
66 :
G4VSolid(a), fPtrSolid(0), fScale(0),
67 fRebuildPolyhedron(false), fpPolyhedron(0)
86 :
G4VSolid (rhs), fPtrSolid(rhs.fPtrSolid),
87 fRebuildPolyhedron(false), fpPolyhedron(0)
100 if (
this == &rhs) {
return *
this; }
137 pMin.
set(bmin.
x()*scale.
x(),bmin.
y()*scale.
y(),bmin.
z()*scale.
z());
138 pMax.
set(bmax.
x()*scale.
x(),bmax.
y()*scale.
y(),bmax.
z()*scale.
z());
142 if (pMin.
x() >= pMax.
x() || pMin.
y() >= pMax.
y() || pMin.
z() >= pMax.
z())
145 message <<
"Bad bounding box (min >= max) for solid: "
147 <<
"\npMin = " << pMin
148 <<
"\npMax = " << pMax;
149 G4Exception(
"G4ScaledSolid::BoundingLimits()",
"GeomMgt0001",
206 return normal/normal.
mag();
224 newDirection = newDirection/newDirection.
mag();
267 newDirection = newDirection/newDirection.
mag();
272 calcNorm,validNorm,&solNorm);
277 *n = normal/normal.
mag();
312 "Method not applicable in this context!");
371 os <<
"-----------------------------------------------------------\n"
372 <<
" *** Dump for Scaled solid - " <<
GetName() <<
" ***\n"
373 <<
" ===================================================\n"
375 <<
" Parameters of constituent solid: \n"
376 <<
"===========================================================\n";
378 os <<
"===========================================================\n"
380 <<
" Scale transformation : \n"
384 <<
"===========================================================\n";
416 "No G4Polyhedron for scaled solid");
G4bool CalculateExtent(const EAxis pAxis, const G4VoxelLimits &pVoxelLimits, const G4Transform3D &pTransform3D, G4double &pMin, G4double &pMax) const
void set(double x, double y, double z)
G4bool fRebuildPolyhedron
std::vector< ExP01TrackerHit * > a
EInside Inside(const G4ThreeVector &p) const
virtual void AddSolid(const G4Box &)=0
virtual void BoundingLimits(G4ThreeVector &pMin, G4ThreeVector &pMax) const
void message(RunManager *runmanager)
G4Scale3D GetScaleTransform() const
void BoundingLimits(G4ThreeVector &pMin, G4ThreeVector &pMax) const
virtual G4ThreeVector GetPointOnSurface() const
static double normal(HepRandomEngine *eptr)
virtual G4double DistanceToIn(const G4ThreeVector &p, const G4ThreeVector &v) const =0
G4ThreeVector GetPointOnSurface() const
virtual G4ThreeVector SurfaceNormal(const G4ThreeVector &p) const =0
void SetScaleTransform(const G4Scale3D &scale)
G4bool CalculateExtent(const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const
virtual EInside Inside(const G4ThreeVector &p) const =0
std::ostream & StreamInfo(std::ostream &os) const
G4VSolid & operator=(const G4VSolid &rhs)
HepPolyhedron & Transform(const G4Transform3D &t)
G4ScaleTransform * fScale
virtual std::ostream & StreamInfo(std::ostream &os) const =0
G4double DistanceToOut(const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=0, G4ThreeVector *n=0) const
static G4int GetNumberOfRotationSteps()
G4GeometryType GetEntityType() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4ScaledSolid(const G4String &pName, G4VSolid *pSolid, const G4Scale3D &pScale)
G4int GetNumberOfRotationStepsAtTimeOfCreation() const
G4Polyhedron * fpPolyhedron
G4VSolid * GetUnscaledSolid() const
G4double DistanceToIn(const G4ThreeVector &p, const G4ThreeVector &v) const
virtual G4double DistanceToOut(const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=0, G4ThreeVector *n=0) const =0
virtual G4Polyhedron * CreatePolyhedron() const
G4ScaledSolid & operator=(const G4ScaledSolid &rhs)
void ComputeDimensions(G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
G4Polyhedron * CreatePolyhedron() const
HepRotation inverse() const
G4Polyhedron * GetPolyhedron() const
G4ThreeVector SurfaceNormal(const G4ThreeVector &p) const
void DescribeYourselfTo(G4VGraphicsScene &scene) const