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

#include <G4UTet.hh>

Inheritance diagram for G4UTet:
G4USolid G4VSolid

Public Member Functions

 G4UTet (const G4String &pName, G4ThreeVector anchor, G4ThreeVector p2, G4ThreeVector p3, G4ThreeVector p4, G4bool *degeneracyFlag=0)
 
 ~G4UTet ()
 
UTetGetShape () const
 
 G4UTet (__void__ &)
 
 G4UTet (const G4UTet &rhs)
 
G4UTetoperator= (const G4UTet &rhs)
 
std::vector< G4ThreeVectorGetVertices () const
 
- 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 void ComputeDimensions (G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
 
virtual G4double GetCubicVolume ()
 
virtual G4double GetSurfaceArea ()
 
virtual G4GeometryType GetEntityType () const
 
virtual G4ThreeVector GetPointOnSurface () const
 
virtual G4VSolidClone () 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 52 of file G4UTet.hh.

Constructor & Destructor Documentation

G4UTet::G4UTet ( const G4String pName,
G4ThreeVector  anchor,
G4ThreeVector  p2,
G4ThreeVector  p3,
G4ThreeVector  p4,
G4bool degeneracyFlag = 0 
)

Definition at line 48 of file G4UTet.cc.

53  : G4USolid(pName, new UTet(pName,
54  UVector3(anchor.x(),anchor.y(),anchor.z()),
55  UVector3(p2.x(), p2.y(), p2.z()),
56  UVector3(p3.x(), p3.y(), p3.z()),
57  UVector3(p4.x(), p4.y(), p4.z()),
58  degeneracyFlag))
59 {
60 }
double x() const
double z() const
G4USolid(const G4String &pName, VUSolid *shape)
Definition: G4USolid.cc:44
double y() const
Definition: UTet.hh:27
G4UTet::~G4UTet ( )

Definition at line 76 of file G4UTet.cc.

77 {
78 }
G4UTet::G4UTet ( __void__ &  a)

Definition at line 67 of file G4UTet.cc.

68  : G4USolid(a)
69 {
70 }
G4USolid(const G4String &pName, VUSolid *shape)
Definition: G4USolid.cc:44
G4UTet::G4UTet ( const G4UTet rhs)

Definition at line 84 of file G4UTet.cc.

85  : G4USolid(rhs)
86 {
87 }
G4USolid(const G4String &pName, VUSolid *shape)
Definition: G4USolid.cc:44

Member Function Documentation

UTet * G4UTet::GetShape ( ) const
inline

Definition at line 87 of file G4UTet.hh.

References G4USolid::fShape.

Referenced by GetVertices().

88 {
89  return (UTet*) fShape;
90 }
VUSolid * fShape
Definition: G4USolid.hh:182
Definition: UTet.hh:27
std::vector< G4ThreeVector > G4UTet::GetVertices ( ) const
inline

Definition at line 92 of file G4UTet.hh.

References GetShape(), UTet::GetVertices(), test::v, test::x, and z.

93 {
94  std::vector<UVector3> vec = GetShape()->GetVertices();
95  std::vector<G4ThreeVector> vertices;
96  for (unsigned int i=0; i<vec.size(); ++i)
97  {
98  G4ThreeVector v(vec[i].x, vec[i].y, vec[i].z);
99  vertices.push_back(v);
100  }
101  return vertices;
102 }
G4double z
Definition: TRTMaterials.hh:39
UTet * GetShape() const
Definition: G4UTet.hh:87
std::vector< UVector3 > GetVertices() const
Definition: UTet.cc:604
G4UTet & G4UTet::operator= ( const G4UTet rhs)

Definition at line 94 of file G4UTet.cc.

References G4USolid::operator=().

95 {
96  // Check assignment to self
97  //
98  if (this == &rhs) { return *this; }
99 
100  // Copy base class data
101  //
102  G4USolid::operator=(rhs);
103 
104  return *this;
105 }
G4USolid & operator=(const G4USolid &rhs)
Definition: G4USolid.cc:370

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