51 #include "HepPolyhedronProcessor.h" 
  128   if (
this == &rhs)  { 
return *
this; }
 
  152                                       pTransform, pMin, pMax );
 
  200     G4cout << 
"WARNING - Invalid call [1] in " 
  201            << 
"G4SubtractionSolid::SurfaceNormal(p)" << 
G4endl 
  202            << 
"  Point p is outside !" << 
G4endl;
 
  204     G4cerr << 
"WARNING - Invalid call [1] in " 
  205            << 
"G4SubtractionSolid::SurfaceNormal(p)" << G4endl
 
  206            << 
"  Point p is outside !" << 
G4endl;
 
  238         G4cout << 
"WARNING - Invalid call [2] in " 
  239              << 
"G4SubtractionSolid::SurfaceNormal(p)" << 
G4endl 
  240              << 
"  Point p is inside !" << 
G4endl;
 
  242         G4cerr << 
"WARNING - Invalid call [2] in " 
  243              << 
"G4SubtractionSolid::SurfaceNormal(p)" << G4endl
 
  244              << 
"  Point p is inside !" << 
G4endl;
 
  266     G4cout << 
"WARNING - Invalid call in " 
  267            << 
"G4SubtractionSolid::DistanceToIn(p,v)" << 
G4endl 
  268            << 
"  Point p is inside !" << 
G4endl;
 
  271     G4cerr << 
"WARNING - Invalid call in " 
  272            << 
"G4SubtractionSolid::DistanceToIn(p,v)" << G4endl
 
  273            << 
"  Point p is inside !" << 
G4endl;
 
  308                         ->GetConstituentMovedSolid()->GetName();
 
  310               std::ostringstream message;
 
  311               message << 
"Illegal condition caused by solids: " 
  313               message.precision(16);
 
  314               message << 
"Looping detected in point " << p+dist*v
 
  315                       << 
", from original point " << p
 
  316                       << 
" and direction " << v << G4endl
 
  317                       << 
"Computed candidate distance: " << dist << 
"*mm. ";
 
  318               message.precision(6);
 
  320               G4Exception(
"G4SubtractionSolid::DistanceToIn(p,v)",
 
  322                           "Returning candidate distance.");
 
  362                         ->GetConstituentMovedSolid()->GetName();
 
  364               std::ostringstream message;
 
  365               message << 
"Illegal condition caused by solids: " 
  367               message.precision(16);
 
  368               message << 
"Looping detected in point " << p+dist*v
 
  369                       << 
", from original point " << p
 
  370                       << 
" and direction " << v << G4endl
 
  371                       << 
"Computed candidate distance: " << dist << 
"*mm. ";
 
  372               message.precision(6);
 
  374               G4Exception(
"G4SubtractionSolid::DistanceToIn(p,v)",
 
  376                           "Returning candidate distance.");
 
  401     G4cout << 
"WARNING - Invalid call in " 
  402            << 
"G4SubtractionSolid::DistanceToIn(p)" << 
G4endl 
  403            << 
"  Point p is inside !" << 
G4endl;
 
  405     G4cerr << 
"WARNING - Invalid call in " 
  406            << 
"G4SubtractionSolid::DistanceToIn(p)" << G4endl
 
  407            << 
"  Point p is inside !" << 
G4endl;
 
  447       G4cout << 
"WARNING - Invalid call in " 
  448              << 
"G4SubtractionSolid::DistanceToOut(p,v)" << G4endl
 
  449              << 
"  Point p is outside !" << 
G4endl;
 
  452       G4cerr << 
"WARNING - Invalid call in " 
  453              << 
"G4SubtractionSolid::DistanceToOut(p,v)" << G4endl
 
  454              << 
"  Point p is outside !" << 
G4endl;
 
  491     G4cout << 
"WARNING - Invalid call in " 
  492            << 
"G4SubtractionSolid::DistanceToOut(p)" << 
G4endl 
  493            << 
"  Point p is outside" << 
G4endl;
 
  495     G4cerr << 
"WARNING - Invalid call in " 
  496            << 
"G4SubtractionSolid::DistanceToOut(p)" << G4endl
 
  497            << 
"  Point p is outside" << 
G4endl;
 
  515   return G4String(
"G4SubtractionSolid");
 
  560   if (processor.execute(*result)) { 
return result; }
 
virtual G4bool CalculateExtent(const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const =0
 
static const G4double kInfinity
 
CLHEP::Hep3Vector G4ThreeVector
 
CLHEP::HepRotation G4RotationMatrix
 
virtual ~G4SubtractionSolid()
 
virtual G4GeometryType GetEntityType() const =0
 
virtual void AddSolid(const G4Box &)=0
 
G4Polyhedron * CreatePolyhedron() const 
 
static double normal(HepRandomEngine *eptr)
 
G4double DistanceToOut(const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=0, G4ThreeVector *n=0) const 
 
G4GLOB_DLL std::ostream G4cout
 
virtual EInside Inside(const G4ThreeVector &p) const =0
 
G4bool CalculateExtent(const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const 
 
G4double GetRadialTolerance() const 
 
G4SubtractionSolid & operator=(const G4SubtractionSolid &rhs)
 
virtual G4ThreeVector SurfaceNormal(const G4ThreeVector &p) const =0
 
EInside Inside(const G4ThreeVector &p) const 
 
G4ThreeVector SurfaceNormal(const G4ThreeVector &p) const 
 
virtual G4double DistanceToIn(const G4ThreeVector &p, const G4ThreeVector &v) const =0
 
G4SubtractionSolid(const G4String &pName, G4VSolid *pSolidA, G4VSolid *pSolidB)
 
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
 
void DescribeYourselfTo(G4VGraphicsScene &scene) const 
 
void ComputeDimensions(G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
 
T min(const T t1, const T t2)
brief Return the smallest of the two arguments 
 
G4GeometryType GetEntityType() const 
 
G4BooleanSolid & operator=(const G4BooleanSolid &rhs)
 
virtual G4double DistanceToOut(const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=0, G4ThreeVector *n=0) const =0
 
G4Polyhedron * StackPolyhedron(HepPolyhedronProcessor &, const G4VSolid *) const 
 
static G4GeometryTolerance * GetInstance()
 
G4double DistanceToIn(const G4ThreeVector &p, const G4ThreeVector &v) const 
 
G4GLOB_DLL std::ostream G4cerr