Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4UCons Class Reference

#include <G4UCons.hh>

Inheritance diagram for G4UCons:
G4USolid G4VSolid

Public Member Functions

 G4UCons (const G4String &pName, G4double pRmin1, G4double pRmax1, G4double pRmin2, G4double pRmax2, G4double pDz, G4double pSPhi, G4double pDPhi)
 
 ~G4UCons ()
 
void ComputeDimensions (G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
 
G4VSolidClone () const
 
UConsGetShape () const
 
G4double GetInnerRadiusMinusZ () const
 
G4double GetOuterRadiusMinusZ () const
 
G4double GetInnerRadiusPlusZ () const
 
G4double GetOuterRadiusPlusZ () const
 
G4double GetZHalfLength () const
 
G4double GetStartPhiAngle () const
 
G4double GetDeltaPhiAngle () const
 
void SetInnerRadiusMinusZ (G4double Rmin1)
 
void SetOuterRadiusMinusZ (G4double Rmax1)
 
void SetInnerRadiusPlusZ (G4double Rmin2)
 
void SetOuterRadiusPlusZ (G4double Rmax2)
 
void SetZHalfLength (G4double newDz)
 
void SetStartPhiAngle (G4double newSPhi, G4bool trig=true)
 
void SetDeltaPhiAngle (G4double newDPhi)
 
 G4UCons (__void__ &)
 
 G4UCons (const G4UCons &rhs)
 
G4UConsoperator= (const G4UCons &rhs)
 
- Public Member Functions inherited from G4USolid
 G4USolid (const G4String &pName, VUSolid *shape)
 
virtual ~G4USolid ()
 
G4bool operator== (const G4USolid &s) const
 
virtual G4bool CalculateExtent (const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const
 
virtual EInside Inside (const G4ThreeVector &p) const
 
virtual G4ThreeVector SurfaceNormal (const G4ThreeVector &p) const
 
virtual G4double DistanceToIn (const G4ThreeVector &p, const G4ThreeVector &v) const
 
virtual G4double DistanceToIn (const G4ThreeVector &p) const
 
virtual G4double DistanceToOut (const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=0, G4ThreeVector *n=0) const
 
virtual G4double DistanceToOut (const G4ThreeVector &p) const
 
virtual G4double GetCubicVolume ()
 
virtual G4double GetSurfaceArea ()
 
virtual G4GeometryType GetEntityType () const
 
virtual G4ThreeVector GetPointOnSurface () const
 
virtual std::ostream & StreamInfo (std::ostream &os) const
 
virtual void DescribeYourselfTo (G4VGraphicsScene &scene) const
 
virtual G4VisExtent GetExtent () const
 
G4PolyhedronCreatePolyhedron () const
 
virtual G4PolyhedronGetPolyhedron () const
 
 G4USolid (__void__ &)
 
 G4USolid (const G4USolid &rhs)
 
G4USolidoperator= (const G4USolid &rhs)
 
VUSolidGetSolid () const
 
- 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
 
void DumpInfo () 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 G4USolid
G4ThreeVectorListCreateRotatedVertices (const G4AffineTransform &pT) 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 G4USolid
VUSolidfShape
 
G4PolyhedronfPolyhedron
 
- Protected Attributes inherited from G4VSolid
G4double kCarTolerance
 

Detailed Description

Definition at line 49 of file G4UCons.hh.

Constructor & Destructor Documentation

G4UCons::G4UCons ( const G4String pName,
G4double  pRmin1,
G4double  pRmax1,
G4double  pRmin2,
G4double  pRmax2,
G4double  pDz,
G4double  pSPhi,
G4double  pDPhi 
)

Definition at line 42 of file G4UCons.cc.

Referenced by Clone().

47  : G4USolid(pName, new UCons(pName, pRmin1, pRmax1, pRmin2, pRmax2,
48  pDz, pSPhi, pDPhi))
49 {
50 }
Definition: UCons.hh:49
G4USolid(const G4String &pName, VUSolid *shape)
Definition: G4USolid.cc:44
G4UCons::~G4UCons ( )

Definition at line 66 of file G4UCons.cc.

67 {
68 }
G4UCons::G4UCons ( __void__ &  a)

Definition at line 57 of file G4UCons.cc.

58  : G4USolid(a)
59 {
60 }
G4USolid(const G4String &pName, VUSolid *shape)
Definition: G4USolid.cc:44
G4UCons::G4UCons ( const G4UCons rhs)

Definition at line 74 of file G4UCons.cc.

75  : G4USolid(rhs)
76 {
77 }
G4USolid(const G4String &pName, VUSolid *shape)
Definition: G4USolid.cc:44

Member Function Documentation

G4VSolid * G4UCons::Clone ( ) const
virtual

Reimplemented from G4USolid.

Definition at line 112 of file G4UCons.cc.

References G4UCons().

113 {
114  return new G4UCons(*this);
115 }
G4UCons(const G4String &pName, G4double pRmin1, G4double pRmax1, G4double pRmin2, G4double pRmax2, G4double pDz, G4double pSPhi, G4double pDPhi)
Definition: G4UCons.cc:42
void G4UCons::ComputeDimensions ( G4VPVParameterisation p,
const G4int  n,
const G4VPhysicalVolume pRep 
)
virtual

Reimplemented from G4USolid.

Definition at line 101 of file G4UCons.cc.

References G4VPVParameterisation::ComputeDimensions().

104 {
105  p->ComputeDimensions(*(G4Cons*)this,n,pRep);
106 }
Definition: G4Cons.hh:82
const G4int n
virtual void ComputeDimensions(G4Box &, const G4int, const G4VPhysicalVolume *) const
G4double G4UCons::GetDeltaPhiAngle ( ) const
inline

Definition at line 131 of file G4UCons.hh.

References UCons::GetDeltaPhiAngle(), and GetShape().

132 {
133  return GetShape()->GetDeltaPhiAngle();
134 }
UCons * GetShape() const
Definition: G4UCons.hh:102
double GetDeltaPhiAngle() const
G4double G4UCons::GetInnerRadiusMinusZ ( ) const
inline

Definition at line 107 of file G4UCons.hh.

References UCons::GetInnerRadiusMinusZ(), and GetShape().

108 {
109  return GetShape()->GetInnerRadiusMinusZ();
110 }
UCons * GetShape() const
Definition: G4UCons.hh:102
double GetInnerRadiusMinusZ() const
G4double G4UCons::GetInnerRadiusPlusZ ( ) const
inline

Definition at line 115 of file G4UCons.hh.

References UCons::GetInnerRadiusPlusZ(), and GetShape().

116 {
117  return GetShape()->GetInnerRadiusPlusZ();
118 }
UCons * GetShape() const
Definition: G4UCons.hh:102
double GetInnerRadiusPlusZ() const
G4double G4UCons::GetOuterRadiusMinusZ ( ) const
inline

Definition at line 111 of file G4UCons.hh.

References UCons::GetOuterRadiusMinusZ(), and GetShape().

112 {
113  return GetShape()->GetOuterRadiusMinusZ();
114 }
UCons * GetShape() const
Definition: G4UCons.hh:102
double GetOuterRadiusMinusZ() const
G4double G4UCons::GetOuterRadiusPlusZ ( ) const
inline

Definition at line 119 of file G4UCons.hh.

References UCons::GetOuterRadiusPlusZ(), and GetShape().

120 {
121  return GetShape()->GetOuterRadiusPlusZ();
122 }
UCons * GetShape() const
Definition: G4UCons.hh:102
double GetOuterRadiusPlusZ() const
UCons * G4UCons::GetShape ( ) const
inline
G4double G4UCons::GetStartPhiAngle ( ) const
inline

Definition at line 127 of file G4UCons.hh.

References GetShape(), and UCons::GetStartPhiAngle().

128 {
129  return GetShape()->GetStartPhiAngle();
130 }
UCons * GetShape() const
Definition: G4UCons.hh:102
double GetStartPhiAngle() const
G4double G4UCons::GetZHalfLength ( ) const
inline

Definition at line 123 of file G4UCons.hh.

References GetShape(), and UCons::GetZHalfLength().

124 {
125  return GetShape()->GetZHalfLength();
126 }
UCons * GetShape() const
Definition: G4UCons.hh:102
double GetZHalfLength() const
G4UCons & G4UCons::operator= ( const G4UCons rhs)

Definition at line 83 of file G4UCons.cc.

References G4USolid::operator=().

84 {
85  // Check assignment to self
86  //
87  if (this == &rhs) { return *this; }
88 
89  // Copy base class data
90  //
92 
93  return *this;
94 }
G4USolid & operator=(const G4USolid &rhs)
Definition: G4USolid.cc:370
void G4UCons::SetDeltaPhiAngle ( G4double  newDPhi)
inline

Definition at line 166 of file G4UCons.hh.

References G4USolid::fPolyhedron, GetShape(), and UCons::SetDeltaPhiAngle().

167 {
168  GetShape()->SetDeltaPhiAngle(newDPhi);
169  fPolyhedron = 0;
170 }
UCons * GetShape() const
Definition: G4UCons.hh:102
void SetDeltaPhiAngle(double newDPhi)
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183
void G4UCons::SetInnerRadiusMinusZ ( G4double  Rmin1)
inline

Definition at line 136 of file G4UCons.hh.

References G4USolid::fPolyhedron, GetShape(), and UCons::SetInnerRadiusMinusZ().

137 {
138  GetShape()->SetInnerRadiusMinusZ(Rmin1);
139  fPolyhedron = 0;
140 }
UCons * GetShape() const
Definition: G4UCons.hh:102
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183
void SetInnerRadiusMinusZ(double Rmin1)
void G4UCons::SetInnerRadiusPlusZ ( G4double  Rmin2)
inline

Definition at line 146 of file G4UCons.hh.

References G4USolid::fPolyhedron, GetShape(), and UCons::SetInnerRadiusPlusZ().

147 {
148  GetShape()->SetInnerRadiusPlusZ(Rmin2);
149  fPolyhedron = 0;
150 }
UCons * GetShape() const
Definition: G4UCons.hh:102
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183
void SetInnerRadiusPlusZ(double Rmin2)
void G4UCons::SetOuterRadiusMinusZ ( G4double  Rmax1)
inline

Definition at line 141 of file G4UCons.hh.

References G4USolid::fPolyhedron, GetShape(), and UCons::SetOuterRadiusMinusZ().

142 {
143  GetShape()->SetOuterRadiusMinusZ(Rmax1);
144  fPolyhedron = 0;
145 }
void SetOuterRadiusMinusZ(double Rmax1)
UCons * GetShape() const
Definition: G4UCons.hh:102
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183
void G4UCons::SetOuterRadiusPlusZ ( G4double  Rmax2)
inline

Definition at line 151 of file G4UCons.hh.

References G4USolid::fPolyhedron, GetShape(), and UCons::SetOuterRadiusPlusZ().

152 {
153  GetShape()->SetOuterRadiusPlusZ(Rmax2);
154  fPolyhedron = 0;
155 }
UCons * GetShape() const
Definition: G4UCons.hh:102
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183
void SetOuterRadiusPlusZ(double Rmax2)
void G4UCons::SetStartPhiAngle ( G4double  newSPhi,
G4bool  trig = true 
)
inline

Definition at line 161 of file G4UCons.hh.

References G4USolid::fPolyhedron, GetShape(), and UCons::SetStartPhiAngle().

162 {
163  GetShape()->SetStartPhiAngle(newSPhi, trig);
164  fPolyhedron = 0;
165 }
UCons * GetShape() const
Definition: G4UCons.hh:102
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183
void SetStartPhiAngle(double newSPhi, bool trig=true)
void G4UCons::SetZHalfLength ( G4double  newDz)
inline

Definition at line 156 of file G4UCons.hh.

References G4USolid::fPolyhedron, GetShape(), and UCons::SetZHalfLength().

157 {
158  GetShape()->SetZHalfLength(newDz);
159  fPolyhedron = 0;
160 }
void SetZHalfLength(double newDz)
UCons * GetShape() const
Definition: G4UCons.hh:102
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183

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