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

#include <G4RectangularTrimmedSurface.hh>

+ Inheritance diagram for G4RectangularTrimmedSurface:

Public Member Functions

 G4RectangularTrimmedSurface ()
 
virtual ~G4RectangularTrimmedSurface ()
 
G4int Intersect (const G4Ray &)
 
void CalcBBox ()
 
virtual const char * Name () const
 
- Public Member Functions inherited from G4Surface
 G4Surface ()
 
virtual ~G4Surface ()
 
G4int operator== (const G4Surface &s)
 
virtual G4String GetEntityType () const
 
virtual const char * Name () const
 
virtual G4int MyType () const
 
void SetBoundaries (G4CurveVector *)
 
virtual G4double HowNear (const G4Vector3D &x) const
 
virtual G4double ClosestDistanceToPoint (const G4Point3D &Pt)
 
G4Vector3D GetOrigin () const
 
G4double GetDistance () const
 
void SetDistance (G4double Dist)
 
G4int IsActive () const
 
void SetActive (G4int act)
 
void Deactivate ()
 
void SetSameSense (G4int sameSense0)
 
G4int GetSameSense () const
 
G4BoundingBox3DGetBBox ()
 
const G4Point3DGetClosestHit () const
 
void SetNextNode (G4Surface *)
 
G4SurfaceGetNextNode ()
 
virtual void Reset ()
 
virtual G4int Intersect (const G4Ray &)
 
virtual G4Vector3D Normal (const G4Vector3D &p) const
 
virtual void CalcBBox ()
 
virtual G4double GetUHit () const
 
virtual G4double GetVHit () const
 
virtual G4Point3D Evaluation (const G4Ray &G4Rayref)
 
virtual G4int Evaluate (register const G4Ray &Rayref)
 
virtual void Project ()
 
virtual void CalcNormal ()
 
virtual G4int IsConvex () const
 
virtual G4int GetConvex () const
 
virtual G4int GetNumberOfPoints () const
 
virtual const G4Point3DGetPoint (G4int Count) const
 
virtual G4RayNorm ()
 
virtual G4Vector3D SurfaceNormal (const G4Point3D &Pt) const =0
 
- Public Member Functions inherited from G4STEPEntity
 G4STEPEntity ()
 
virtual ~G4STEPEntity ()
 
virtual G4String GetEntityType () const =0
 

Additional Inherited Members

- Static Public Member Functions inherited from G4Surface
static void Project (G4double &Coord, const G4Point3D &Pt, const G4Plane &Pl)
 
- Protected Member Functions inherited from G4Surface
virtual void InitBounded ()
 
- Protected Attributes inherited from G4Surface
G4BoundingBox3Dbbox
 
G4Point3D closest_hit
 
G4Surfacenext
 
G4SurfaceBoundary surfaceBoundary
 
G4double kCarTolerance
 
G4double kAngTolerance
 
G4int Intersected
 
G4Vector3D origin
 
G4int Type
 
G4int AdvancedFace
 
G4int active
 
G4double distance
 
G4double uhit
 
G4double vhit
 
G4int sameSense
 

Detailed Description

Definition at line 44 of file G4RectangularTrimmedSurface.hh.

Constructor & Destructor Documentation

◆ G4RectangularTrimmedSurface()

G4RectangularTrimmedSurface::G4RectangularTrimmedSurface ( )

Definition at line 42 of file G4RectangularTrimmedSurface.cc.

43 : BasisSurface(0), TrimU1(0.), TrimU2(0.), TrimV1(0.), TrimV2(0.)
44{
45}

◆ ~G4RectangularTrimmedSurface()

G4RectangularTrimmedSurface::~G4RectangularTrimmedSurface ( )
virtual

Definition at line 47 of file G4RectangularTrimmedSurface.cc.

48{
49 if (BasisSurface) delete BasisSurface;
50}

Member Function Documentation

◆ CalcBBox()

void G4RectangularTrimmedSurface::CalcBBox ( )
virtual

Reimplemented from G4Surface.

Definition at line 58 of file G4RectangularTrimmedSurface.cc.

59{
60 BasisSurface->CalcBBox();
61 bbox = BasisSurface->GetBBox();
62}
G4BoundingBox3D * GetBBox()
virtual void CalcBBox()
Definition: G4Surface.cc:146
G4BoundingBox3D * bbox
Definition: G4Surface.hh:185

◆ Intersect()

G4int G4RectangularTrimmedSurface::Intersect ( const G4Ray Rayref)
virtual

Reimplemented from G4Surface.

Definition at line 65 of file G4RectangularTrimmedSurface.cc.

66{
67 if(BasisSurface->Intersect(Rayref))
68 {
69 G4double UHit = BasisSurface->GetUHit();
70 G4double VHit = BasisSurface->GetVHit();
71
72 if((TrimU1<=UHit)&&(TrimU2>=UHit)&&(TrimV1<=VHit)&&(TrimV2>=VHit))
73 {
74 closest_hit = BasisSurface->GetClosestHit();
75 return 1;
76 }
77 }
78
79 return 0;
80}
double G4double
Definition: G4Types.hh:64
virtual G4int Intersect(const G4Ray &)
Definition: G4Surface.cc:170
virtual G4double GetUHit() const
Definition: G4Surface.cc:111
virtual G4double GetVHit() const
Definition: G4Surface.cc:116
const G4Point3D & GetClosestHit() const
G4Point3D closest_hit
Definition: G4Surface.hh:186

◆ Name()

const char * G4RectangularTrimmedSurface::Name ( ) const
virtual

Reimplemented from G4Surface.

Definition at line 53 of file G4RectangularTrimmedSurface.cc.

54{
55 return "G4RectangularTrimmedSurface";
56}

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