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

#include <G4BREPSolidCylinder.hh>

+ Inheritance diagram for G4BREPSolidCylinder:

Public Member Functions

 G4BREPSolidCylinder (const G4String &name, const G4ThreeVector &origin, const G4ThreeVector &axis, const G4ThreeVector &direction, G4double radius, G4double length)
 
 ~G4BREPSolidCylinder ()
 
G4VSolidClone () const
 
std::ostream & StreamInfo (std::ostream &os) const
 
 G4BREPSolidCylinder (__void__ &)
 
 G4BREPSolidCylinder (const G4BREPSolidCylinder &rhs)
 
G4BREPSolidCylinderoperator= (const G4BREPSolidCylinder &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 G4BREPSolidCylinder.hh.

Constructor & Destructor Documentation

◆ G4BREPSolidCylinder() [1/3]

G4BREPSolidCylinder::G4BREPSolidCylinder ( const G4String name,
const G4ThreeVector origin,
const G4ThreeVector axis,
const G4ThreeVector direction,
G4double  radius,
G4double  length 
)

Definition at line 40 of file G4BREPSolidCylinder.cc.

46 : G4BREPSolid(name)
47{
49 active=1;
50
51 // Save constructor parameters
52 constructorParams.origin = origin;
53 constructorParams.axis = axis;
54 constructorParams.direction = direction;
55 constructorParams.length = length;
56 constructorParams.radius = radius;
57
58 InitializeCylinder();
59}
G4int nb_of_surfaces
Definition: G4BREPSolid.hh:229

◆ ~G4BREPSolidCylinder()

G4BREPSolidCylinder::~G4BREPSolidCylinder ( )

Definition at line 66 of file G4BREPSolidCylinder.cc.

67{
68}

◆ G4BREPSolidCylinder() [2/3]

G4BREPSolidCylinder::G4BREPSolidCylinder ( __void__ &  a)

Definition at line 61 of file G4BREPSolidCylinder.cc.

62 : G4BREPSolid(a)
63{
64}

◆ G4BREPSolidCylinder() [3/3]

G4BREPSolidCylinder::G4BREPSolidCylinder ( const G4BREPSolidCylinder rhs)

Definition at line 70 of file G4BREPSolidCylinder.cc.

71 : G4BREPSolid(rhs)
72{
73 constructorParams.origin = rhs.constructorParams.origin;
74 constructorParams.axis = rhs.constructorParams.axis;
75 constructorParams.direction = rhs.constructorParams.direction;
76 constructorParams.length = rhs.constructorParams.length;
77 constructorParams.radius = rhs.constructorParams.radius;
78
79 InitializeCylinder();
80}

Member Function Documentation

◆ Clone()

G4VSolid * G4BREPSolidCylinder::Clone ( ) const
virtual

Reimplemented from G4BREPSolid.

Definition at line 162 of file G4BREPSolidCylinder.cc.

163{
164 return new G4BREPSolidCylinder(*this);
165}

◆ operator=()

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

Definition at line 83 of file G4BREPSolidCylinder.cc.

84{
85 // Check assignment to self
86 //
87 if (this == &rhs) { return *this; }
88
89 // Copy base class data
90 //
92
93 // Copy data
94 //
95 constructorParams.origin = rhs.constructorParams.origin;
96 constructorParams.axis = rhs.constructorParams.axis;
97 constructorParams.direction = rhs.constructorParams.direction;
98 constructorParams.length = rhs.constructorParams.length;
99 constructorParams.radius = rhs.constructorParams.radius;
100
101 InitializeCylinder();
102
103 return *this;
104}
G4BREPSolid & operator=(const G4BREPSolid &rhs)
Definition: G4BREPSolid.cc:138

◆ StreamInfo()

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

Reimplemented from G4BREPSolid.

Definition at line 167 of file G4BREPSolidCylinder.cc.

168{
169 // Streams solid contents to output stream.
170
172 << "\n origin: " << constructorParams.origin
173 << "\n axis: " << constructorParams.axis
174 << "\n direction: " << constructorParams.direction
175 << "\n length: " << constructorParams.length
176 << "\n radius: " << constructorParams.radius
177 << "\n-----------------------------------------------------------\n";
178
179 return os;
180}
virtual std::ostream & StreamInfo(std::ostream &os) const

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