Import Geant4 3.0.0 source tree
This commit is contained in:
@@ -5,50 +5,72 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Ellipse.hh,v 1.4 2000/01/21 13:47:41 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $Id: G4Ellipse.hh,v 1.7 2000/11/08 14:22:01 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// Class G4Ellipse
|
||||
//
|
||||
// Class description:
|
||||
//
|
||||
// Definition of a generic ellipse curve.
|
||||
|
||||
// Authors: J.Sulkimo, P.Urban.
|
||||
// Revisions by: L.Broglia, G.Cosmo.
|
||||
// ----------------------------------------------------------------------
|
||||
#ifndef __ELLIPTICCURVE_H
|
||||
#define __ELLIPTICCURVE_H
|
||||
|
||||
#include "G4CircularCurve.hh"
|
||||
|
||||
|
||||
class G4Ellipse : public G4Conic
|
||||
{
|
||||
public:
|
||||
|
||||
public: // with description
|
||||
|
||||
G4Ellipse();
|
||||
~G4Ellipse();
|
||||
|
||||
virtual G4Curve* Project(const G4Transform3D& tr = G4Transform3D::Identity);
|
||||
virtual ~G4Ellipse();
|
||||
// Constructor & destructor.
|
||||
|
||||
virtual G4bool Tangent(G4CurvePoint& cp, G4Vector3D& v);
|
||||
|
||||
//virtual void IntersectRay2D(const G4Ray& ray, G4CurveRayIntersection& is);
|
||||
virtual G4int IntersectRay2D(const G4Ray& ray);
|
||||
G4Ellipse(const G4Ellipse& right);
|
||||
G4Ellipse& operator=(const G4Ellipse& right);
|
||||
// Copy constructor and assignment operator.
|
||||
|
||||
virtual G4double GetPMax();
|
||||
virtual G4Point3D GetPoint(G4double param);
|
||||
virtual G4double GetPPoint(const G4Point3D& p);
|
||||
G4Curve* Project(const G4Transform3D& tr=
|
||||
G4Transform3D::Identity);
|
||||
// Transforms and projects the curve.
|
||||
|
||||
// Get/Set for the geometric data
|
||||
void Init(const G4Axis2Placement3D& position0,
|
||||
G4double semiAxis10, G4double semiAxis20);
|
||||
|
||||
G4double GetSemiAxis1() const;
|
||||
G4double GetSemiAxis2() const;
|
||||
G4bool Tangent(G4CurvePoint& cp, G4Vector3D& v);
|
||||
// Returns tangent to curve at a given point, if existing.
|
||||
// The tangent is computed from the 3D point representation.
|
||||
|
||||
inline G4double GetPMax() const;
|
||||
inline G4Point3D GetPoint(G4double param) const;
|
||||
inline G4double GetPPoint(const G4Point3D& p) const;
|
||||
// Accessors methods.
|
||||
|
||||
inline G4double GetSemiAxis1() const;
|
||||
inline G4double GetSemiAxis2() const;
|
||||
inline void Init(const G4Axis2Placement3D& position0,
|
||||
G4double semiAxis10, G4double semiAxis20);
|
||||
// Get/Set methods for the geometric data.
|
||||
|
||||
|
||||
public:
|
||||
|
||||
inline G4int IntersectRay2D(const G4Ray& ray);
|
||||
// void IntersectRay2D(const G4Ray& ray, G4CurveRayIntersection& is);
|
||||
|
||||
protected:
|
||||
|
||||
virtual void InitBounded();
|
||||
void InitBounded();
|
||||
|
||||
private:
|
||||
|
||||
// geometric data
|
||||
|
||||
G4double semiAxis1;
|
||||
G4double semiAxis2;
|
||||
|
||||
G4double ratioAxis2Axis1;
|
||||
|
||||
G4Transform3D toUnitCircle;
|
||||
|
||||
Reference in New Issue
Block a user