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

#include <G4BREPSolidOpenPCone.hh>

+ Inheritance diagram for G4BREPSolidOpenPCone:

Public Member Functions

 G4BREPSolidOpenPCone (const G4String &name, G4double start_angle, G4double opening_angle, G4int num_z_planes, G4double z_start, G4double z_values[], G4double RMIN[], G4double RMAX[])
 
 ~G4BREPSolidOpenPCone ()
 
void DescribeYourselfTo (G4VGraphicsScene &scene) const
 
G4VSolidClone () const
 
std::ostream & StreamInfo (std::ostream &os) const
 
 G4BREPSolidOpenPCone (__void__ &)
 
 G4BREPSolidOpenPCone (const G4BREPSolidOpenPCone &rhs)
 
G4BREPSolidOpenPConeoperator= (const G4BREPSolidOpenPCone &rhs)
 
- Public Member Functions inherited from G4IntersectionSolid
 G4IntersectionSolid (const G4String &pName, G4VSolid *pSolidA, G4VSolid *pSolidB)
 
 G4IntersectionSolid (const G4String &pName, G4VSolid *pSolidA, G4VSolid *pSolidB, G4RotationMatrix *rotMatrix, const G4ThreeVector &transVector)
 
 G4IntersectionSolid (const G4String &pName, G4VSolid *pSolidA, G4VSolid *pSolidB, const G4Transform3D &transform)
 
virtual ~G4IntersectionSolid ()
 
G4GeometryType GetEntityType () const
 
G4VSolidClone () const
 
 G4IntersectionSolid (__void__ &)
 
 G4IntersectionSolid (const G4IntersectionSolid &rhs)
 
G4IntersectionSolidoperator= (const G4IntersectionSolid &rhs)
 
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
 
G4double DistanceToIn (const G4ThreeVector &p, const G4ThreeVector &v) const
 
G4double DistanceToIn (const G4ThreeVector &p) const
 
G4double DistanceToOut (const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=0, G4ThreeVector *n=0) const
 
G4double DistanceToOut (const G4ThreeVector &p) const
 
void ComputeDimensions (G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
 
void DescribeYourselfTo (G4VGraphicsScene &scene) const
 
G4PolyhedronCreatePolyhedron () const
 
G4NURBSCreateNURBS () const
 
- Public Member Functions inherited from G4BooleanSolid
 G4BooleanSolid (const G4String &pName, G4VSolid *pSolidA, G4VSolid *pSolidB)
 
 G4BooleanSolid (const G4String &pName, G4VSolid *pSolidA, G4VSolid *pSolidB, G4RotationMatrix *rotMatrix, const G4ThreeVector &transVector)
 
 G4BooleanSolid (const G4String &pName, G4VSolid *pSolidA, G4VSolid *pSolidB, const G4Transform3D &transform)
 
virtual ~G4BooleanSolid ()
 
virtual const G4VSolidGetConstituentSolid (G4int no) const
 
virtual G4VSolidGetConstituentSolid (G4int no)
 
G4double GetCubicVolume ()
 
G4double GetSurfaceArea ()
 
virtual G4GeometryType GetEntityType () const
 
virtual G4PolyhedronGetPolyhedron () const
 
std::ostream & StreamInfo (std::ostream &os) 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)
 
G4ThreeVector GetPointOnSurface () const
 
 G4BooleanSolid (__void__ &)
 
 G4BooleanSolid (const G4BooleanSolid &rhs)
 
G4BooleanSolidoperator= (const G4BooleanSolid &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 G4BooleanSolid
G4PolyhedronStackPolyhedron (HepPolyhedronProcessor &, const G4VSolid *) const
 
G4double GetAreaRatio () 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 G4BooleanSolid
G4VSolidfPtrSolidA
 
G4VSolidfPtrSolidB
 
G4double fAreaRatio
 
- Protected Attributes inherited from G4VSolid
G4double kCarTolerance
 

Detailed Description

Definition at line 53 of file G4BREPSolidOpenPCone.hh.

Constructor & Destructor Documentation

◆ G4BREPSolidOpenPCone() [1/3]

G4BREPSolidOpenPCone::G4BREPSolidOpenPCone ( const G4String name,
G4double  start_angle,
G4double  opening_angle,
G4int  num_z_planes,
G4double  z_start,
G4double  z_values[],
G4double  RMIN[],
G4double  RMAX[] 
)

Definition at line 41 of file G4BREPSolidOpenPCone.cc.

50 : G4IntersectionSolid ( name,
51 new G4BREPSolidPCone( name,
52 sangle, oangle,
53 nplanes, zstart, zvalues,
54 radmin, radmax ),
55 new G4Tubs( "IntersectionTubs",
56 0., 1., 1., sangle, oangle ) )
57{
58 // Save local data
59 //
60 constructorParams.start_angle = sangle;
61 constructorParams.opening_angle = oangle;
62 constructorParams.num_z_planes = nplanes;
63 constructorParams.z_start = zstart;
64 constructorParams.z_values = 0;
65 constructorParams.RMIN = 0;
66 constructorParams.RMAX = 0;
67 if ( nplanes>0 )
68 {
69 constructorParams.z_values = new G4double[nplanes];
70 constructorParams.RMIN = new G4double[nplanes];
71 constructorParams.RMAX = new G4double[nplanes];
72 for ( G4int i = 0; i < nplanes; ++i )
73 {
74 constructorParams.z_values[i] = zvalues[i];
75 constructorParams.RMIN[i] = radmin[i];
76 constructorParams.RMAX[i] = radmax[i];
77 }
78 }
79
80 // compute max radius
81 //
82 InitializeOPCone();
83}
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
Definition: G4Tubs.hh:77

◆ ~G4BREPSolidOpenPCone()

G4BREPSolidOpenPCone::~G4BREPSolidOpenPCone ( )

Definition at line 97 of file G4BREPSolidOpenPCone.cc.

98{
99 if( constructorParams.num_z_planes > 0 )
100 {
101 delete [] constructorParams.z_values;
102 delete [] constructorParams.RMIN;
103 delete [] constructorParams.RMAX;
104 }
105}

◆ G4BREPSolidOpenPCone() [2/3]

G4BREPSolidOpenPCone::G4BREPSolidOpenPCone ( __void__ &  a)

Definition at line 85 of file G4BREPSolidOpenPCone.cc.

87{
88 constructorParams.start_angle = 0.;
89 constructorParams.opening_angle = 0.;
90 constructorParams.num_z_planes = 0;
91 constructorParams.z_start = 0.;
92 constructorParams.z_values = 0;
93 constructorParams.RMIN = 0;
94 constructorParams.RMAX = 0;
95}

◆ G4BREPSolidOpenPCone() [3/3]

G4BREPSolidOpenPCone::G4BREPSolidOpenPCone ( const G4BREPSolidOpenPCone rhs)

Definition at line 107 of file G4BREPSolidOpenPCone.cc.

109 new G4BREPSolidPCone( rhs.GetName(), rhs.constructorParams.start_angle,
110 rhs.constructorParams.opening_angle,
111 rhs.constructorParams.num_z_planes,
112 rhs.constructorParams.z_start,
113 rhs.constructorParams.z_values,
114 rhs.constructorParams.RMIN,
115 rhs.constructorParams.RMAX ),
116 new G4Tubs( "IntersectionTubs", 0., 1., 1.,
117 rhs.constructorParams.start_angle,
118 rhs.constructorParams.opening_angle ) )
119
120{
121 SetName(rhs.GetName());
122 constructorParams.start_angle = rhs.constructorParams.start_angle;
123 constructorParams.opening_angle = rhs.constructorParams.opening_angle;
124 constructorParams.num_z_planes = rhs.constructorParams.num_z_planes;
125 constructorParams.z_start = rhs.constructorParams.z_start;
126 constructorParams.z_values = 0;
127 constructorParams.RMIN = 0;
128 constructorParams.RMAX = 0;
129 G4int nplanes = constructorParams.num_z_planes;
130 if( nplanes > 0 )
131 {
132 constructorParams.z_values = new G4double[nplanes];
133 constructorParams.RMIN = new G4double[nplanes];
134 constructorParams.RMAX = new G4double[nplanes];
135 for ( G4int i = 0; i < nplanes; ++i )
136 {
137 constructorParams.z_values[i] = rhs.constructorParams.z_values[i];
138 constructorParams.RMIN[i] = rhs.constructorParams.RMIN[i];
139 constructorParams.RMAX[i] = rhs.constructorParams.RMAX[i];
140 }
141 }
142 InitializeOPCone();
143}
G4String GetName() const
void SetName(const G4String &name)

Member Function Documentation

◆ Clone()

G4VSolid * G4BREPSolidOpenPCone::Clone ( ) const
virtual

Reimplemented from G4IntersectionSolid.

Definition at line 204 of file G4BREPSolidOpenPCone.cc.

205{
206 return new G4BREPSolidOpenPCone(*this);
207}

◆ DescribeYourselfTo()

void G4BREPSolidOpenPCone::DescribeYourselfTo ( G4VGraphicsScene scene) const
virtual

Reimplemented from G4IntersectionSolid.

Definition at line 199 of file G4BREPSolidOpenPCone.cc.

200{
201 scene.AddSolid ( *this );
202}
virtual void AddSolid(const G4Box &)=0

◆ operator=()

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

Definition at line 146 of file G4BREPSolidOpenPCone.cc.

147{
148 // Check assignment to self
149 //
150 if (this == &rhs) { return *this; }
151
152 // Copy base class data
153 //
155
156 // Copy data
157 //
158 SetName(rhs.GetName());
159 constructorParams.start_angle = rhs.constructorParams.start_angle;
160 constructorParams.opening_angle = rhs.constructorParams.opening_angle;
161 constructorParams.num_z_planes = rhs.constructorParams.num_z_planes;
162 constructorParams.z_start = rhs.constructorParams.z_start;
163 G4int nplanes = constructorParams.num_z_planes;
164 if( nplanes > 0 )
165 {
166 delete [] constructorParams.z_values;
167 delete [] constructorParams.RMIN;
168 delete [] constructorParams.RMAX;
169 constructorParams.z_values = new G4double[nplanes];
170 constructorParams.RMIN = new G4double[nplanes];
171 constructorParams.RMAX = new G4double[nplanes];
172 for( G4int idx = 0; idx < nplanes; ++idx )
173 {
174 constructorParams.z_values[idx] = rhs.constructorParams.z_values[idx];
175 constructorParams.RMIN[idx] = rhs.constructorParams.RMIN[idx];
176 constructorParams.RMAX[idx] = rhs.constructorParams.RMAX[idx];
177 }
178 }
179 InitializeOPCone();
180
181 return *this;
182}
G4IntersectionSolid & operator=(const G4IntersectionSolid &rhs)

◆ StreamInfo()

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

Reimplemented from G4BooleanSolid.

Definition at line 209 of file G4BREPSolidOpenPCone.cc.

210{
211 // Streams solid contents to output stream.
212
214
215 return os;
216}
virtual std::ostream & StreamInfo(std::ostream &os) const =0

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