G4GeomTestPoint Class Reference

#include <G4GeomTestPoint.hh>

Inheritance diagram for G4GeomTestPoint:

G4GeomTestVolPoint

Public Member Functions

 G4GeomTestPoint ()
 G4GeomTestPoint (const G4GeomTestPoint &other)
 G4GeomTestPoint (const G4ThreeVector &thePoint, G4double theS, G4bool isEntering)
virtual ~G4GeomTestPoint ()
G4GeomTestPointoperator= (const G4GeomTestPoint &other)
G4bool operator== (const G4GeomTestPoint &other) const
G4bool operator< (const G4GeomTestPoint &other) const
G4bool operator<= (const G4GeomTestPoint &other) const
virtual const G4ThreeVectorGetPosition () const
virtual G4double GetDistance () const
virtual G4bool Entering () const

Protected Attributes

G4ThreeVector p
G4double s
G4bool entering

Detailed Description

Definition at line 49 of file G4GeomTestPoint.hh.


Constructor & Destructor Documentation

G4GeomTestPoint::G4GeomTestPoint (  ) 

Definition at line 43 of file G4GeomTestPoint.cc.

00044   : p(0),
00045     s(0),
00046     entering(false)
00047 {;}

G4GeomTestPoint::G4GeomTestPoint ( const G4GeomTestPoint other  ) 

Definition at line 65 of file G4GeomTestPoint.cc.

00066   : p(other.p),
00067     s(other.s),
00068     entering(other.entering)
00069 {;}

G4GeomTestPoint::G4GeomTestPoint ( const G4ThreeVector thePoint,
G4double  theS,
G4bool  isEntering 
)

Definition at line 53 of file G4GeomTestPoint.cc.

00056   : p(thePoint),
00057     s(theS),
00058     entering(isEntering)
00059 {;}

G4GeomTestPoint::~G4GeomTestPoint (  )  [virtual]

Definition at line 75 of file G4GeomTestPoint.cc.

00075 {;}


Member Function Documentation

G4bool G4GeomTestPoint::Entering (  )  const [virtual]

Definition at line 140 of file G4GeomTestPoint.cc.

References entering.

00141 {
00142   return entering;
00143 }

G4double G4GeomTestPoint::GetDistance (  )  const [virtual]

Definition at line 131 of file G4GeomTestPoint.cc.

References s.

00132 {
00133   return s;
00134 }

const G4ThreeVector & G4GeomTestPoint::GetPosition (  )  const [virtual]

Definition at line 122 of file G4GeomTestPoint.cc.

References p.

00123 {
00124   return p;
00125 }

G4bool G4GeomTestPoint::operator< ( const G4GeomTestPoint other  )  const

Definition at line 108 of file G4GeomTestPoint.cc.

References s.

00109 {
00110   return s < other.s;
00111 }

G4bool G4GeomTestPoint::operator<= ( const G4GeomTestPoint other  )  const

Definition at line 113 of file G4GeomTestPoint.cc.

References s.

00114 {
00115   return s <= other.s;
00116 }

G4GeomTestPoint & G4GeomTestPoint::operator= ( const G4GeomTestPoint other  ) 

Definition at line 80 of file G4GeomTestPoint.cc.

References entering, p, and s.

Referenced by G4GeomTestVolPoint::operator=().

00081 {
00082    // Check assignment to self
00083    //
00084    if (this == &other)  { return *this; }
00085 
00086    // Copy data
00087    //
00088    p = other.p;
00089    s = other.s;
00090    entering = other.entering;
00091 
00092    return *this;
00093 }

G4bool G4GeomTestPoint::operator== ( const G4GeomTestPoint other  )  const

Definition at line 99 of file G4GeomTestPoint.cc.

References s.

00100 {
00101   return s == other.s;
00102 }


Field Documentation

G4bool G4GeomTestPoint::entering [protected]

Definition at line 76 of file G4GeomTestPoint.hh.

Referenced by Entering(), and operator=().

G4ThreeVector G4GeomTestPoint::p [protected]

Definition at line 74 of file G4GeomTestPoint.hh.

Referenced by G4GeomTestVolPoint::G4GeomTestVolPoint(), GetPosition(), and operator=().

G4double G4GeomTestPoint::s [protected]

Definition at line 75 of file G4GeomTestPoint.hh.

Referenced by GetDistance(), operator<(), operator<=(), operator=(), and operator==().


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:05 2013 for Geant4 by  doxygen 1.4.7