Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4BREPSolidTorus Class Reference

#include <G4BREPSolidTorus.hh>

+ Inheritance diagram for G4BREPSolidTorus:

Public Member Functions

 G4BREPSolidTorus (const G4String &name, const G4ThreeVector &origin, const G4ThreeVector &axis, const G4ThreeVector &direction, G4double MinRadius, G4double MaxRadius)
 
 ~G4BREPSolidTorus ()
 
G4VSolidClone () const
 
std::ostream & StreamInfo (std::ostream &os) const
 
 G4BREPSolidTorus (__void__ &)
 
 G4BREPSolidTorus (const G4BREPSolidTorus &rhs)
 
G4BREPSolidTorusoperator= (const G4BREPSolidTorus &rhs)
 
- Public Member Functions inherited from G4BREPSolid
 G4BREPSolid (const G4String &name)
 
 G4BREPSolid (const G4String &, G4Surface **, G4int)
 
virtual ~G4BREPSolid ()
 
virtual void Initialize ()
 
G4bool CalculateExtent (const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const
 
virtual EInside Inside (register const G4ThreeVector &Pt) const
 
virtual G4ThreeVector SurfaceNormal (const G4ThreeVector &) const
 
virtual G4double DistanceToIn (const G4ThreeVector &) const
 
virtual G4double DistanceToIn (register const G4ThreeVector &Pt, register const G4ThreeVector &V) const
 
virtual G4double DistanceToOut (const G4ThreeVector &) const
 
virtual G4double DistanceToOut (register const G4ThreeVector &Pt, register const G4ThreeVector &V, const G4bool calcNorm=false, G4bool *validNorm=0, G4ThreeVector *n=0) const
 
G4Point3D Scope () const
 
virtual G4String GetEntityType () const
 
virtual G4VSolidClone () const
 
virtual std::ostream & StreamInfo (std::ostream &os) const
 
void DescribeYourselfTo (G4VGraphicsScene &scene) const
 
G4PolyhedronCreatePolyhedron () const
 
G4NURBSCreateNURBS () const
 
virtual G4PolyhedronGetPolyhedron () const
 
G4int Intersect (register const G4Ray &) const
 
G4SurfaceGetSurface (G4int) const
 
void Active (G4int) const
 
G4int Active () const
 
G4double GetShortestDistance () const
 
G4int GetId () const
 
void SetId (G4int)
 
const G4StringGetName () const
 
void SetName (const G4String &name)
 
G4int GetNumberOfFaces () const
 
G4int GetNumberOfSolids () const
 
const G4Axis2Placement3DGetPlace () const
 
const G4BoundingBox3DGetBBox () const
 
G4int GetCubVolStatistics () const
 
G4double GetCubVolEpsilon () const
 
void SetCubVolStatistics (G4int st)
 
void SetCubVolEpsilon (G4double ep)
 
G4int GetAreaStatistics () const
 
G4double GetAreaAccuracy () const
 
void SetAreaStatistics (G4int st)
 
void SetAreaAccuracy (G4double ep)
 
G4double GetCubicVolume ()
 
G4double GetSurfaceArea ()
 
G4double IntersectionDistance () const
 
void IntersectionDistance (G4double) const
 
virtual void Reset () const
 
 G4BREPSolid (__void__ &)
 
 G4BREPSolid (const G4BREPSolid &rhs)
 
G4BREPSolidoperator= (const G4BREPSolid &rhs)
 
- Public Member Functions inherited from G4VSolid
 G4VSolid (const G4String &name)
 
virtual ~G4VSolid ()
 
G4bool operator== (const G4VSolid &s) const
 
G4String GetName () const
 
void SetName (const G4String &name)
 
G4double GetTolerance () const
 
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 G4ThreeVector SurfaceNormal (const G4ThreeVector &p) const =0
 
virtual G4double DistanceToIn (const G4ThreeVector &p, const G4ThreeVector &v) const =0
 
virtual G4double DistanceToIn (const G4ThreeVector &p) const =0
 
virtual G4double DistanceToOut (const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=0, G4ThreeVector *n=0) const =0
 
virtual G4double DistanceToOut (const G4ThreeVector &p) const =0
 
virtual void ComputeDimensions (G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
 
virtual G4double GetCubicVolume ()
 
virtual G4double GetSurfaceArea ()
 
virtual G4GeometryType GetEntityType () const =0
 
virtual G4ThreeVector GetPointOnSurface () const
 
virtual G4VSolidClone () const
 
virtual std::ostream & StreamInfo (std::ostream &os) const =0
 
void DumpInfo () const
 
virtual void DescribeYourselfTo (G4VGraphicsScene &scene) const =0
 
virtual G4VisExtent GetExtent () const
 
virtual G4PolyhedronCreatePolyhedron () const
 
virtual G4NURBSCreateNURBS () const
 
virtual G4PolyhedronGetPolyhedron () const
 
virtual const G4VSolidGetConstituentSolid (G4int no) const
 
virtual G4VSolidGetConstituentSolid (G4int no)
 
virtual const G4DisplacedSolidGetDisplacedSolidPtr () const
 
virtual G4DisplacedSolidGetDisplacedSolidPtr ()
 
 G4VSolid (__void__ &)
 
 G4VSolid (const G4VSolid &rhs)
 
G4VSolidoperator= (const G4VSolid &rhs)
 

Additional Inherited Members

- Protected Member Functions inherited from G4BREPSolid
G4ThreeVectorListCreateRotatedVertices (const G4AffineTransform &) const
 
G4bool IsConvex ()
 
virtual void CalcBBoxes ()
 
void CheckSurfaceNormals ()
 
void RemoveHiddenFaces (register const G4Ray &G4Rayref, G4int) const
 
void TestSurfaceBBoxes (register const G4Ray &) const
 
G4int StartInside () const
 
void StartInside (G4int si) const
 
void QuickSort (register G4Surface **SrfVec, register G4int left, register G4int right) const
 
- Protected Member Functions inherited from G4VSolid
void CalculateClippedPolygonExtent (G4ThreeVectorList &pPolygon, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis, G4double &pMin, G4double &pMax) const
 
void ClipCrossSection (G4ThreeVectorList *pVertices, const G4int pSectionIndex, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis, G4double &pMin, G4double &pMax) const
 
void ClipBetweenSections (G4ThreeVectorList *pVertices, const G4int pSectionIndex, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis, G4double &pMin, G4double &pMax) const
 
void ClipPolygon (G4ThreeVectorList &pPolygon, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis) const
 
G4double EstimateCubicVolume (G4int nStat, G4double epsilon) const
 
G4double EstimateSurfaceArea (G4int nStat, G4double ell) const
 
- Protected Attributes inherited from G4BREPSolid
G4int Box
 
G4int Convex
 
G4int AxisBox
 
G4int PlaneSolid
 
G4Axis2Placement3Dplace
 
G4BoundingBox3Dbbox
 
G4double intersectionDistance
 
G4int active
 
G4int startInside
 
G4int nb_of_surfaces
 
G4Point3D intersection_point
 
G4Surface ** SurfaceVec
 
G4double RealDist
 
G4String solidname
 
G4int Id
 
- Protected Attributes inherited from G4VSolid
G4double kCarTolerance
 
- Static Protected Attributes inherited from G4BREPSolid
static G4int NumberOfSolids =0
 
static G4Ray Track
 
static G4double ShortestDistance = kInfinity
 

Detailed Description

Definition at line 51 of file G4BREPSolidTorus.hh.

Constructor & Destructor Documentation

◆ G4BREPSolidTorus() [1/3]

G4BREPSolidTorus::G4BREPSolidTorus ( const G4String name,
const G4ThreeVector origin,
const G4ThreeVector axis,
const G4ThreeVector direction,
G4double  MinRadius,
G4double  MaxRadius 
)

Definition at line 39 of file G4BREPSolidTorus.cc.

45 : G4BREPSolid(name)
46{
47 // Save constructor parameters
48 constructorParams.origin = origin;
49 constructorParams.axis = axis;
50 constructorParams.direction = direction;
51 constructorParams.MinRadius = MinRadius;
52 constructorParams.MaxRadius = MaxRadius;
53
54 active = 1;
55 InitializeTorus();
56}

◆ ~G4BREPSolidTorus()

G4BREPSolidTorus::~G4BREPSolidTorus ( )

Definition at line 63 of file G4BREPSolidTorus.cc.

64{
65}

◆ G4BREPSolidTorus() [2/3]

G4BREPSolidTorus::G4BREPSolidTorus ( __void__ &  a)

Definition at line 58 of file G4BREPSolidTorus.cc.

59 : G4BREPSolid(a)
60{
61}

◆ G4BREPSolidTorus() [3/3]

G4BREPSolidTorus::G4BREPSolidTorus ( const G4BREPSolidTorus rhs)

Definition at line 67 of file G4BREPSolidTorus.cc.

68 : G4BREPSolid(rhs)
69{
70 constructorParams.origin = rhs.constructorParams.origin;
71 constructorParams.axis = rhs.constructorParams.axis;
72 constructorParams.direction = rhs.constructorParams.direction;
73 constructorParams.MinRadius = rhs.constructorParams.MinRadius;
74 constructorParams.MaxRadius = rhs.constructorParams.MaxRadius;
75
76 InitializeTorus();
77}

Member Function Documentation

◆ Clone()

G4VSolid * G4BREPSolidTorus::Clone ( ) const
virtual

Reimplemented from G4BREPSolid.

Definition at line 116 of file G4BREPSolidTorus.cc.

117{
118 return new G4BREPSolidTorus(*this);
119}

◆ operator=()

G4BREPSolidTorus & G4BREPSolidTorus::operator= ( const G4BREPSolidTorus rhs)

Definition at line 80 of file G4BREPSolidTorus.cc.

81{
82 // Check assignment to self
83 //
84 if (this == &rhs) { return *this; }
85
86 // Copy base class data
87 //
89
90 // Copy data
91 //
92 constructorParams.origin = rhs.constructorParams.origin;
93 constructorParams.axis = rhs.constructorParams.axis;
94 constructorParams.direction = rhs.constructorParams.direction;
95 constructorParams.MinRadius = rhs.constructorParams.MinRadius;
96 constructorParams.MaxRadius = rhs.constructorParams.MaxRadius;
97
98 InitializeTorus();
99
100 return *this;
101}
G4BREPSolid & operator=(const G4BREPSolid &rhs)
Definition: G4BREPSolid.cc:138

◆ StreamInfo()

std::ostream & G4BREPSolidTorus::StreamInfo ( std::ostream &  os) const
virtual

Reimplemented from G4BREPSolid.

Definition at line 121 of file G4BREPSolidTorus.cc.

122{
123 // Streams solid contents to output stream.
124
126 << "\n origin: " << constructorParams.origin
127 << "\n axis: " << constructorParams.axis
128 << "\n direction: " << constructorParams.direction
129 << "\n MinRadius: " << constructorParams.MinRadius
130 << "\n MaxRadius: " << constructorParams.MaxRadius
131 << "\n-----------------------------------------------------------\n";
132
133 return os;
134}
virtual std::ostream & StreamInfo(std::ostream &os) const

The documentation for this class was generated from the following files: