Import Geant4 1.0.0 source tree
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
// Class Description
|
||||
//
|
||||
// Abstract base class for solids created by boolean operations
|
||||
// between other solids
|
||||
//
|
||||
|
||||
// History:
|
||||
//
|
||||
// 10.09.98 V.Grichine, creation according J. Apostolakis's recommendations
|
||||
|
||||
|
||||
#ifndef G4BOOLEANSOLID_HH
|
||||
#define G4BOOLEANSOLID_HH
|
||||
|
||||
@@ -19,7 +22,7 @@
|
||||
|
||||
class G4BooleanSolid: public G4VSolid
|
||||
{
|
||||
public:
|
||||
public: // With Description
|
||||
G4BooleanSolid( const G4String& pName,
|
||||
G4VSolid* pSolidA ,
|
||||
G4VSolid* pSolidB ) ;
|
||||
@@ -37,6 +40,12 @@ public:
|
||||
|
||||
virtual ~G4BooleanSolid() ;
|
||||
|
||||
public: // With Description
|
||||
// If Solid is made up from a Boolean operation of two solids,
|
||||
// return the corresponding solid (for no=0 and 1)
|
||||
// If the solid is not a "Boolean", return 0
|
||||
virtual const G4VSolid* GetConstituentSolid(G4int no) const;
|
||||
virtual G4VSolid* GetConstituentSolid(G4int no);
|
||||
|
||||
protected:
|
||||
G4VSolid* fPtrSolidA ;
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
// Class describing solid placements for boolean operations
|
||||
//
|
||||
// Class description
|
||||
//
|
||||
// A displaced solid is a solid that has been shifted from its original
|
||||
// frame of reference to a new one. It is meant to be used only for
|
||||
// simplifying the implementation of "Boolean solids".
|
||||
//
|
||||
// History:
|
||||
//
|
||||
@@ -16,7 +19,7 @@
|
||||
|
||||
class G4DisplacedSolid : public G4VSolid
|
||||
{
|
||||
public:
|
||||
public: // With description
|
||||
G4DisplacedSolid( const G4String& pName,
|
||||
G4VSolid* pSolid ,
|
||||
G4RotationMatrix* rotMatrix,
|
||||
@@ -26,16 +29,24 @@ public:
|
||||
G4VSolid* pSolid ,
|
||||
const G4Transform3D& transform ) ;
|
||||
|
||||
public:
|
||||
G4DisplacedSolid( const G4String& pName,
|
||||
G4VSolid* pSolid ,
|
||||
const G4AffineTransform directTransform );
|
||||
// For use in instantiating a transient instance from a persistent one:
|
||||
|
||||
public: // With description
|
||||
virtual ~G4DisplacedSolid() ;
|
||||
//
|
||||
// It also has all the methods that a solid requires, eg.
|
||||
EInside Inside( const G4ThreeVector& p ) const ;
|
||||
|
||||
|
||||
|
||||
public:
|
||||
G4bool CalculateExtent(const EAxis pAxis,
|
||||
const G4VoxelLimits& pVoxelLimit,
|
||||
const G4AffineTransform& pTransform,
|
||||
G4double& pMin, G4double& pMax) const ;
|
||||
|
||||
EInside Inside( const G4ThreeVector& p ) const ;
|
||||
|
||||
G4ThreeVector SurfaceNormal( const G4ThreeVector& p ) const ;
|
||||
|
||||
@@ -57,9 +68,31 @@ public:
|
||||
const G4int n,
|
||||
const G4VPhysicalVolume* pRep ) ;
|
||||
|
||||
public: // With description
|
||||
|
||||
virtual G4GeometryType GetEntityType() const
|
||||
{ return G4String("G4DisplacedSolid"); }
|
||||
|
||||
// If the Solid is a "G4DisplacedSolid", return a self pointer
|
||||
// else return 0
|
||||
virtual const G4DisplacedSolid* GetDisplacedSolidPtr() const ;
|
||||
virtual G4DisplacedSolid* GetDisplacedSolidPtr();
|
||||
|
||||
// Access methods
|
||||
G4VSolid* GetConstituentMovedSolid();
|
||||
G4AffineTransform GetTransform() const;
|
||||
G4AffineTransform GetDirectTransform() const;
|
||||
|
||||
// Get the rotation/translation, as applied to the frame of reference
|
||||
G4RotationMatrix GetFrameRotation() const;
|
||||
G4ThreeVector GetFrameTranslation() const;
|
||||
|
||||
// Get the rotation/translation, as applied to the object
|
||||
G4RotationMatrix GetObjectRotation() const;
|
||||
G4ThreeVector GetObjectTranslation() const;
|
||||
|
||||
public:
|
||||
// For creating graphical representations (ie for visualisation)
|
||||
void DescribeYourselfTo ( G4VGraphicsScene& scene ) const ;
|
||||
G4VisExtent GetExtent () const ;
|
||||
G4Polyhedron* CreatePolyhedron () const ;
|
||||
|
||||
@@ -66,7 +66,7 @@ public:
|
||||
const G4VPhysicalVolume* pRep ) ;
|
||||
|
||||
virtual G4GeometryType GetEntityType() const
|
||||
{ return G4String("G4IntersectionSolid"); }
|
||||
{ return G4String("G4UnionSolid"); }
|
||||
|
||||
void DescribeYourselfTo ( G4VGraphicsScene& scene ) const ;
|
||||
G4VisExtent GetExtent () const ;
|
||||
|
||||
Reference in New Issue
Block a user