Import Geant4 3.0.0 source tree
This commit is contained in:
@@ -5,56 +5,70 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4CircularCurve.hh,v 1.3 1999/12/15 14:49:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $Id: G4CircularCurve.hh,v 1.6 2000/11/08 14:22:00 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// Class G4CircularCurve
|
||||
//
|
||||
// Class description:
|
||||
//
|
||||
// Definition of a generic circle.
|
||||
|
||||
// Authors: J.Sulkimo, P.Urban.
|
||||
// Revisions by: L.Broglia, G.Cosmo.
|
||||
// ----------------------------------------------------------------------
|
||||
#ifndef __CIRCULARCURVE_H
|
||||
#define __CIRCULARCURVE_H
|
||||
|
||||
// should be G4Circle, but there is one in graphics_reps already
|
||||
|
||||
#include "G4Conic.hh"
|
||||
|
||||
class G4CircularCurve : public G4Conic
|
||||
{
|
||||
public:
|
||||
|
||||
public: // with description
|
||||
|
||||
G4CircularCurve();
|
||||
~G4CircularCurve();
|
||||
virtual ~G4CircularCurve();
|
||||
// Constructor & destructor.
|
||||
|
||||
G4CircularCurve(const G4CircularCurve& right);
|
||||
G4CircularCurve& operator=(const G4CircularCurve& right);
|
||||
// Copy-constructor and assignment operator.
|
||||
|
||||
virtual G4Curve* Project(const G4Transform3D& tr=
|
||||
G4Transform3D::Identity);
|
||||
|
||||
virtual G4bool Tangent(G4CurvePoint& cp, G4Vector3D& v);
|
||||
G4Transform3D::Identity);
|
||||
// Project along trasformation tr.
|
||||
|
||||
//virtual void IntersectRay2D(const G4Ray& ray, G4CurveRayIntersection& is);
|
||||
virtual G4bool Tangent(G4CurvePoint& cp, G4Vector3D& v);
|
||||
// Tangent computed from the 3D point representation as for all conics.
|
||||
|
||||
virtual G4double GetPMax() const;
|
||||
virtual G4Point3D GetPoint(G4double param) const;
|
||||
virtual G4double GetPPoint(const G4Point3D& p) const;
|
||||
inline G4double GetRadius() const;
|
||||
// Accessors for the geometric data.
|
||||
|
||||
void Init(const G4Axis2Placement3D& position0, G4double radius0);
|
||||
// Initialises geometric data.
|
||||
|
||||
public: // without description
|
||||
|
||||
// virtual void IntersectRay2D(const G4Ray& ray, G4CurveRayIntersection& is);
|
||||
virtual G4int IntersectRay2D(const G4Ray& ray);
|
||||
|
||||
virtual G4double GetPMax();
|
||||
virtual G4Point3D GetPoint(G4double param);
|
||||
virtual G4double GetPPoint(const G4Point3D& p);
|
||||
|
||||
// Get/Set for the geometric data
|
||||
void Init(const G4Axis2Placement3D& position0, G4double radius0);
|
||||
G4double GetRadius() const;
|
||||
|
||||
protected:
|
||||
protected: // with description
|
||||
|
||||
virtual void InitBounded();
|
||||
// Compute bounding box.
|
||||
|
||||
private:
|
||||
|
||||
// geometric data
|
||||
G4double radius;
|
||||
// Geometric data.
|
||||
|
||||
};
|
||||
|
||||
#include "G4CircularCurve.icc"
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user