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

#include <G4UTubs.hh>

Inheritance diagram for G4UTubs:
G4USolid G4VSolid

Public Member Functions

 G4UTubs (const G4String &pName, G4double pRMin, G4double pRMax, G4double pDz, G4double pSPhi, G4double pDPhi)
 
 ~G4UTubs ()
 
void ComputeDimensions (G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
 
G4VSolidClone () const
 
UTubsGetShape () const
 
G4double GetInnerRadius () const
 
G4double GetOuterRadius () const
 
G4double GetZHalfLength () const
 
G4double GetStartPhiAngle () const
 
G4double GetDeltaPhiAngle () const
 
void SetInnerRadius (G4double newRMin)
 
void SetOuterRadius (G4double newRMax)
 
void SetZHalfLength (G4double newDz)
 
void SetStartPhiAngle (G4double newSPhi, G4bool trig=true)
 
void SetDeltaPhiAngle (G4double newDPhi)
 
 G4UTubs (__void__ &)
 
 G4UTubs (const G4UTubs &rhs)
 
G4UTubsoperator= (const G4UTubs &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 50 of file G4UTubs.hh.

Constructor & Destructor Documentation

G4UTubs::G4UTubs ( const G4String pName,
G4double  pRMin,
G4double  pRMax,
G4double  pDz,
G4double  pSPhi,
G4double  pDPhi 
)

Definition at line 42 of file G4UTubs.cc.

Referenced by Clone().

46  : G4USolid(pName, new UTubs(pName, pRMin, pRMax, pDz, pSPhi, pDPhi))
47 {
48 }
Definition: UTubs.hh:47
G4USolid(const G4String &pName, VUSolid *shape)
Definition: G4USolid.cc:44
G4UTubs::~G4UTubs ( )

Definition at line 64 of file G4UTubs.cc.

65 {
66 }
G4UTubs::G4UTubs ( __void__ &  a)

Definition at line 55 of file G4UTubs.cc.

56  : G4USolid(a)
57 {
58 }
G4USolid(const G4String &pName, VUSolid *shape)
Definition: G4USolid.cc:44
G4UTubs::G4UTubs ( const G4UTubs rhs)

Definition at line 72 of file G4UTubs.cc.

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

Member Function Documentation

G4VSolid * G4UTubs::Clone ( ) const
virtual

Reimplemented from G4USolid.

Definition at line 110 of file G4UTubs.cc.

References G4UTubs().

111 {
112  return new G4UTubs(*this);
113 }
G4UTubs(const G4String &pName, G4double pRMin, G4double pRMax, G4double pDz, G4double pSPhi, G4double pDPhi)
Definition: G4UTubs.cc:42
void G4UTubs::ComputeDimensions ( G4VPVParameterisation p,
const G4int  n,
const G4VPhysicalVolume pRep 
)
virtual

Reimplemented from G4USolid.

Definition at line 99 of file G4UTubs.cc.

References G4VPVParameterisation::ComputeDimensions().

102 {
103  p->ComputeDimensions(*(G4Tubs*)this,n,pRep) ;
104 }
Definition: G4Tubs.hh:84
const G4int n
virtual void ComputeDimensions(G4Box &, const G4int, const G4VPhysicalVolume *) const
G4double G4UTubs::GetDeltaPhiAngle ( ) const
inline

Definition at line 122 of file G4UTubs.hh.

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

123 {
124  return GetShape()->GetDeltaPhiAngle();
125 }
double GetDeltaPhiAngle() const
UTubs * GetShape() const
Definition: G4UTubs.hh:101
G4double G4UTubs::GetInnerRadius ( ) const
inline

Definition at line 106 of file G4UTubs.hh.

References UTubs::GetInnerRadius(), and GetShape().

107 {
108  return GetShape()->GetInnerRadius();
109 }
double GetInnerRadius() const
UTubs * GetShape() const
Definition: G4UTubs.hh:101
G4double G4UTubs::GetOuterRadius ( ) const
inline

Definition at line 110 of file G4UTubs.hh.

References UTubs::GetOuterRadius(), and GetShape().

111 {
112  return GetShape()->GetOuterRadius();
113 }
UTubs * GetShape() const
Definition: G4UTubs.hh:101
double GetOuterRadius() const
UTubs * G4UTubs::GetShape ( ) const
inline
G4double G4UTubs::GetStartPhiAngle ( ) const
inline

Definition at line 118 of file G4UTubs.hh.

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

119 {
120  return GetShape()->GetStartPhiAngle();
121 }
double GetStartPhiAngle() const
UTubs * GetShape() const
Definition: G4UTubs.hh:101
G4double G4UTubs::GetZHalfLength ( ) const
inline

Definition at line 114 of file G4UTubs.hh.

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

115 {
116  return GetShape()->GetZHalfLength();
117 }
double GetZHalfLength() const
UTubs * GetShape() const
Definition: G4UTubs.hh:101
G4UTubs & G4UTubs::operator= ( const G4UTubs rhs)

Definition at line 81 of file G4UTubs.cc.

References G4USolid::operator=().

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

Definition at line 147 of file G4UTubs.hh.

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

148 {
149  GetShape()->SetDeltaPhiAngle(newDPhi);
150  fPolyhedron = 0;
151 }
void SetDeltaPhiAngle(double newDPhi)
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183
UTubs * GetShape() const
Definition: G4UTubs.hh:101
void G4UTubs::SetInnerRadius ( G4double  newRMin)
inline

Definition at line 127 of file G4UTubs.hh.

References G4USolid::fPolyhedron, GetShape(), and UTubs::SetInnerRadius().

128 {
129  GetShape()->SetInnerRadius(newRMin);
130  fPolyhedron = 0;
131 }
void SetInnerRadius(double newRMin)
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183
UTubs * GetShape() const
Definition: G4UTubs.hh:101
void G4UTubs::SetOuterRadius ( G4double  newRMax)
inline

Definition at line 132 of file G4UTubs.hh.

References G4USolid::fPolyhedron, GetShape(), and UTubs::SetOuterRadius().

133 {
134  GetShape()->SetOuterRadius(newRMax);
135  fPolyhedron = 0;
136 }
void SetOuterRadius(double newRMax)
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183
UTubs * GetShape() const
Definition: G4UTubs.hh:101
void G4UTubs::SetStartPhiAngle ( G4double  newSPhi,
G4bool  trig = true 
)
inline

Definition at line 142 of file G4UTubs.hh.

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

143 {
144  GetShape()->SetStartPhiAngle(newSPhi, trig);
145  fPolyhedron = 0;
146 }
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183
void SetStartPhiAngle(double newSPhi, bool trig=true)
UTubs * GetShape() const
Definition: G4UTubs.hh:101
void G4UTubs::SetZHalfLength ( G4double  newDz)
inline

Definition at line 137 of file G4UTubs.hh.

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

138 {
139  GetShape()->SetZHalfLength(newDz);
140  fPolyhedron = 0;
141 }
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183
UTubs * GetShape() const
Definition: G4UTubs.hh:101
void SetZHalfLength(double newDz)

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