Import Geant4 3.0.0 source tree
This commit is contained in:
@@ -1,40 +1,70 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4CurvePoint.hh,v 1.4 2000/11/08 14:22:01 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// Class G4CurvePoint
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
// Class capable of storing both the parametric and the non-parametric
|
||||
// representation of a point on a curve.
|
||||
// The representation is evaluated lazily for efficiency.
|
||||
|
||||
// Author: J.Sulkimo, P.Urban.
|
||||
// Revisions by: L.Broglia, G.Cosmo.
|
||||
// ----------------------------------------------------------------------
|
||||
#ifndef included_G4CurvePoint
|
||||
#define included_G4CurvePoint
|
||||
|
||||
// A class capable of storing both the parametric and the non-parametric
|
||||
// representation of a point on a curve.
|
||||
// The representation is evaluated lazily for efficiency.
|
||||
|
||||
#include "G4Curve.hh"
|
||||
#include "G4Point3D.hh"
|
||||
|
||||
class G4CurvePoint
|
||||
{
|
||||
|
||||
public:
|
||||
public: // with description
|
||||
|
||||
G4CurvePoint(G4Curve& c0);
|
||||
// Constructor, taking a curve as argument.
|
||||
|
||||
void Init(G4Curve& c0);
|
||||
virtual ~G4CurvePoint();
|
||||
// Empty destructor.
|
||||
|
||||
G4Curve& GetCurve() const;
|
||||
G4CurvePoint(const G4CurvePoint& cp);
|
||||
G4CurvePoint& operator=(const G4CurvePoint& cp);
|
||||
// Copy constructor and assignment operator.
|
||||
|
||||
void Reset();
|
||||
inline void Init(G4Curve& c0);
|
||||
// Initialises a G4CurvePoint. Called by the constructor.
|
||||
|
||||
void Reset(G4double u0);
|
||||
inline G4Curve& GetCurve() const;
|
||||
// Returns the curve which the point belongs to.
|
||||
|
||||
void Reset(const G4Point3D& p0);
|
||||
|
||||
void Reset(G4double u0, const G4Point3D& p0);
|
||||
|
||||
G4double GetPPoint();
|
||||
|
||||
const G4Point3D& GetPoint();
|
||||
inline void Reset();
|
||||
inline void Reset(G4double u0);
|
||||
inline void Reset(const G4Point3D& p0);
|
||||
inline void Reset(G4double u0, const G4Point3D& p0);
|
||||
// Resets point's attributes.
|
||||
|
||||
inline G4double GetPPoint();
|
||||
inline const G4Point3D& GetPoint();
|
||||
// Returns point as parameter or as point in space.
|
||||
|
||||
protected:
|
||||
|
||||
G4CurvePoint() { }
|
||||
G4CurvePoint();
|
||||
// Protected default constructor.
|
||||
|
||||
protected:
|
||||
|
||||
// data
|
||||
|
||||
G4Curve* c;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user