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

#include <G4Curve.hh>

+ Inheritance diagram for G4Curve:

Public Member Functions

 G4Curve ()
 
virtual ~G4Curve ()
 
 G4Curve (const G4Curve &c)
 
G4Curveoperator= (const G4Curve &c)
 
G4bool operator== (const G4Curve &right) const
 
virtual G4String GetEntityType () const
 
virtual G4CurveProject (const G4Transform3D &tr=G4Transform3D::Identity)=0
 
virtual G4bool Tangent (G4CurvePoint &cp, G4Vector3D &v)=0
 
virtual G4int IntersectRay2D (const G4Ray &ray)=0
 
const G4Point3DGetStart () const
 
const G4Point3DGetEnd () const
 
G4double GetPStart () const
 
G4double GetPEnd () const
 
void SetBounds (G4double p1, G4double p2)
 
void SetBounds (G4double p1, const G4Point3D &p2)
 
void SetBounds (const G4Point3D &p1, G4double p2)
 
void SetBounds (const G4Point3D &p1, const G4Point3D &p2)
 
G4bool IsBounded () const
 
G4bool IsPOn (G4double param) const
 
void SetSameSense (G4int sameSense0)
 
G4int GetSameSense () const
 
virtual G4double GetPMax () const =0
 
virtual G4Point3D GetPoint (G4double param) const =0
 
virtual G4double GetPPoint (const G4Point3D &p) const =0
 
const G4BoundingBox3DBBox () const
 
virtual const char * Name () const
 
virtual void SetParentSrfPtr (const G4Surface *)
 

Protected Member Functions

virtual void InitBounded ()=0
 

Protected Attributes

G4BoundingBox3D bBox
 
G4Point3D start
 
G4Point3D end
 
G4double pStart
 
G4double pEnd
 
G4double pRange
 
G4bool bounded
 
G4int sameSense
 
G4double kCarTolerance
 

Detailed Description

Definition at line 58 of file G4Curve.hh.

Constructor & Destructor Documentation

◆ G4Curve() [1/2]

G4Curve::G4Curve ( )

Definition at line 39 of file G4Curve.cc.

41 bounded(false), sameSense(true)
42{
44}
static const G4BoundingBox3D space
G4double kCarTolerance
Definition: G4Curve.hh:168
G4bool bounded
Definition: G4Curve.hh:166
G4double pStart
Definition: G4Curve.hh:163
G4int sameSense
Definition: G4Curve.hh:167
G4BoundingBox3D bBox
Definition: G4Curve.hh:160
G4double pRange
Definition: G4Curve.hh:165
G4double pEnd
Definition: G4Curve.hh:164
G4double GetSurfaceTolerance() const
static G4GeometryTolerance * GetInstance()

◆ ~G4Curve()

G4Curve::~G4Curve ( )
virtual

Definition at line 46 of file G4Curve.cc.

47{
48}

◆ G4Curve() [2/2]

G4Curve::G4Curve ( const G4Curve c)

Definition at line 50 of file G4Curve.cc.

51 : start(c.start), end(c.end), pStart(c.pStart), pEnd(c.pEnd),
54{
55}
G4Point3D end
Definition: G4Curve.hh:162
G4Point3D start
Definition: G4Curve.hh:161

Member Function Documentation

◆ BBox()

const G4BoundingBox3D * G4Curve::BBox ( ) const

◆ GetEnd()

◆ GetEntityType()

G4String G4Curve::GetEntityType ( ) const
virtual

Reimplemented in G4CompositeCurve.

Definition at line 72 of file G4Curve.cc.

73{
74 return G4String("G4Curve");
75}

Referenced by G4Surface::ClosestDistanceToPoint(), and G4SurfaceBoundary::Init().

◆ GetPEnd()

◆ GetPMax()

virtual G4double G4Curve::GetPMax ( ) const
pure virtual

◆ GetPoint()

virtual G4Point3D G4Curve::GetPoint ( G4double  param) const
pure virtual

◆ GetPPoint()

virtual G4double G4Curve::GetPPoint ( const G4Point3D p) const
pure virtual

◆ GetPStart()

◆ GetSameSense()

G4int G4Curve::GetSameSense ( ) const
inline

◆ GetStart()

◆ InitBounded()

virtual void G4Curve::InitBounded ( )
protectedpure virtual

◆ IntersectRay2D()

virtual G4int G4Curve::IntersectRay2D ( const G4Ray ray)
pure virtual

◆ IsBounded()

G4bool G4Curve::IsBounded ( ) const
inline

◆ IsPOn()

◆ Name()

const char * G4Curve::Name ( ) const
virtual

Definition at line 77 of file G4Curve.cc.

78{
79 return "G4Curve";
80}

◆ operator=()

G4Curve & G4Curve::operator= ( const G4Curve c)

Definition at line 57 of file G4Curve.cc.

58{
59 if (&c == this) { return *this; }
60 start = c.start;
61 end = c.end;
62 pStart = c.pStart;
63 pEnd = c.pEnd;
64 pRange = c.pRange;
65 bounded = c.bounded;
68
69 return *this;
70}

◆ operator==()

G4bool G4Curve::operator== ( const G4Curve right) const
inline

◆ Project()

virtual G4Curve * G4Curve::Project ( const G4Transform3D tr = G4Transform3D::Identity)
pure virtual

◆ SetBounds() [1/4]

void G4Curve::SetBounds ( const G4Point3D p1,
const G4Point3D p2 
)
inline

◆ SetBounds() [2/4]

void G4Curve::SetBounds ( const G4Point3D p1,
G4double  p2 
)
inline

◆ SetBounds() [3/4]

void G4Curve::SetBounds ( G4double  p1,
const G4Point3D p2 
)
inline

◆ SetBounds() [4/4]

◆ SetParentSrfPtr()

void G4Curve::SetParentSrfPtr ( const G4Surface )
virtual

Definition at line 82 of file G4Curve.cc.

83{
84}

◆ SetSameSense()

void G4Curve::SetSameSense ( G4int  sameSense0)
inline

◆ Tangent()

virtual G4bool G4Curve::Tangent ( G4CurvePoint cp,
G4Vector3D v 
)
pure virtual

Member Data Documentation

◆ bBox

◆ bounded

◆ end

◆ kCarTolerance

G4double G4Curve::kCarTolerance
protected

Definition at line 168 of file G4Curve.hh.

Referenced by G4Curve(), operator=(), and G4Line::Project().

◆ pEnd

◆ pRange

◆ pStart

◆ sameSense

◆ start


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