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

#include <G4UTrd.hh>

Inheritance diagram for G4UTrd:
G4USolid G4VSolid

Public Member Functions

 G4UTrd (const G4String &pName, G4double pdx1, G4double pdx2, G4double pdy1, G4double pdy2, G4double pdz)
 
 ~G4UTrd ()
 
void ComputeDimensions (G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
 
G4VSolidClone () const
 
UTrdGetShape () const
 
G4double GetXHalfLength1 () const
 
G4double GetXHalfLength2 () const
 
G4double GetYHalfLength1 () const
 
G4double GetYHalfLength2 () const
 
G4double GetZHalfLength () const
 
void SetXHalfLength1 (G4double val)
 
void SetXHalfLength2 (G4double val)
 
void SetYHalfLength1 (G4double val)
 
void SetYHalfLength2 (G4double val)
 
void SetZHalfLength (G4double val)
 
void SetAllParameters (G4double pdx1, G4double pdx2, G4double pdy1, G4double pdy2, G4double pdz)
 
 G4UTrd (__void__ &)
 
 G4UTrd (const G4UTrd &rhs)
 
G4UTrdoperator= (const G4UTrd &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 48 of file G4UTrd.hh.

Constructor & Destructor Documentation

G4UTrd::G4UTrd ( const G4String pName,
G4double  pdx1,
G4double  pdx2,
G4double  pdy1,
G4double  pdy2,
G4double  pdz 
)

Definition at line 41 of file G4UTrd.cc.

Referenced by Clone().

45  : G4USolid(pName, new UTrd(pName, pdx1, pdx2, pdy1, pdy2, pdz))
46 {
47 }
G4USolid(const G4String &pName, VUSolid *shape)
Definition: G4USolid.cc:44
Definition: UTrd.hh:28
G4UTrd::~G4UTrd ( )

Definition at line 63 of file G4UTrd.cc.

64 {
65 }
G4UTrd::G4UTrd ( __void__ &  a)

Definition at line 54 of file G4UTrd.cc.

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

Definition at line 71 of file G4UTrd.cc.

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

Member Function Documentation

G4VSolid * G4UTrd::Clone ( ) const
virtual

Reimplemented from G4USolid.

Definition at line 109 of file G4UTrd.cc.

References G4UTrd().

110 {
111  return new G4UTrd(*this);
112 }
G4UTrd(const G4String &pName, G4double pdx1, G4double pdx2, G4double pdy1, G4double pdy2, G4double pdz)
Definition: G4UTrd.cc:41
void G4UTrd::ComputeDimensions ( G4VPVParameterisation p,
const G4int  n,
const G4VPhysicalVolume pRep 
)
virtual

Reimplemented from G4USolid.

Definition at line 98 of file G4UTrd.cc.

References G4VPVParameterisation::ComputeDimensions().

101 {
102  p->ComputeDimensions(*(G4Trd*)this,n,pRep);
103 }
Definition: G4Trd.hh:71
const G4int n
virtual void ComputeDimensions(G4Box &, const G4int, const G4VPhysicalVolume *) const
UTrd * G4UTrd::GetShape ( ) const
inline
G4double G4UTrd::GetXHalfLength1 ( ) const
inline

Definition at line 105 of file G4UTrd.hh.

References GetShape(), and UTrd::GetXHalfLength1().

106 {
107  return GetShape()->GetXHalfLength1();
108 }
double GetXHalfLength1() const
UTrd * GetShape() const
Definition: G4UTrd.hh:100
G4double G4UTrd::GetXHalfLength2 ( ) const
inline

Definition at line 109 of file G4UTrd.hh.

References GetShape(), and UTrd::GetXHalfLength2().

110 {
111  return GetShape()->GetXHalfLength2();
112 }
double GetXHalfLength2() const
UTrd * GetShape() const
Definition: G4UTrd.hh:100
G4double G4UTrd::GetYHalfLength1 ( ) const
inline

Definition at line 113 of file G4UTrd.hh.

References GetShape(), and UTrd::GetYHalfLength1().

114 {
115  return GetShape()->GetYHalfLength1();
116 }
double GetYHalfLength1() const
UTrd * GetShape() const
Definition: G4UTrd.hh:100
G4double G4UTrd::GetYHalfLength2 ( ) const
inline

Definition at line 117 of file G4UTrd.hh.

References GetShape(), and UTrd::GetYHalfLength2().

118 {
119  return GetShape()->GetYHalfLength2();
120 }
double GetYHalfLength2() const
UTrd * GetShape() const
Definition: G4UTrd.hh:100
G4double G4UTrd::GetZHalfLength ( ) const
inline

Definition at line 121 of file G4UTrd.hh.

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

122 {
123  return GetShape()->GetZHalfLength();
124 }
double GetZHalfLength() const
UTrd * GetShape() const
Definition: G4UTrd.hh:100
G4UTrd & G4UTrd::operator= ( const G4UTrd rhs)

Definition at line 80 of file G4UTrd.cc.

References G4USolid::operator=().

81 {
82  // Check assignment to self
83  //
84  if (this == &rhs) { return *this; }
85 
86  // Copy base class data
87  //
89 
90  return *this;
91 }
G4USolid & operator=(const G4USolid &rhs)
Definition: G4USolid.cc:370
void G4UTrd::SetAllParameters ( G4double  pdx1,
G4double  pdx2,
G4double  pdy1,
G4double  pdy2,
G4double  pdz 
)
inline

Definition at line 151 of file G4UTrd.hh.

References G4USolid::fPolyhedron, GetShape(), and UTrd::SetAllParameters().

154 {
155  GetShape()->SetAllParameters(pdx1, pdx2, pdy1, pdy2, pdz);
156  fPolyhedron = 0;
157 }
void SetAllParameters(double pdx1, double pdx2, double pdy1, double pdy2, double pdz)
Definition: UTrd.cc:77
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183
UTrd * GetShape() const
Definition: G4UTrd.hh:100
void G4UTrd::SetXHalfLength1 ( G4double  val)
inline

Definition at line 126 of file G4UTrd.hh.

References G4USolid::fPolyhedron, GetShape(), and UTrd::SetXHalfLength1().

127 {
128  GetShape()->SetXHalfLength1(val);
129  fPolyhedron = 0;
130 }
void SetXHalfLength1(double val)
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183
UTrd * GetShape() const
Definition: G4UTrd.hh:100
void G4UTrd::SetXHalfLength2 ( G4double  val)
inline

Definition at line 131 of file G4UTrd.hh.

References G4USolid::fPolyhedron, GetShape(), and UTrd::SetXHalfLength2().

132 {
133  GetShape()->SetXHalfLength2(val);
134  fPolyhedron = 0;
135 }
void SetXHalfLength2(double val)
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183
UTrd * GetShape() const
Definition: G4UTrd.hh:100
void G4UTrd::SetYHalfLength1 ( G4double  val)
inline

Definition at line 136 of file G4UTrd.hh.

References G4USolid::fPolyhedron, GetShape(), and UTrd::SetYHalfLength1().

137 {
138  GetShape()->SetYHalfLength1(val);
139  fPolyhedron = 0;
140 }
void SetYHalfLength1(double val)
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183
UTrd * GetShape() const
Definition: G4UTrd.hh:100
void G4UTrd::SetYHalfLength2 ( G4double  val)
inline

Definition at line 141 of file G4UTrd.hh.

References G4USolid::fPolyhedron, GetShape(), and UTrd::SetYHalfLength2().

142 {
143  GetShape()->SetYHalfLength2(val);
144  fPolyhedron = 0;
145 }
void SetYHalfLength2(double val)
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183
UTrd * GetShape() const
Definition: G4UTrd.hh:100
void G4UTrd::SetZHalfLength ( G4double  val)
inline

Definition at line 146 of file G4UTrd.hh.

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

147 {
148  GetShape()->SetZHalfLength(val);
149  fPolyhedron = 0;
150 }
void SetZHalfLength(double val)
G4Polyhedron * fPolyhedron
Definition: G4USolid.hh:183
UTrd * GetShape() const
Definition: G4UTrd.hh:100

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