source: trunk/source/geometry/solids/BREPS/include/G4Parabola.hh @ 1058

Last change on this file since 1058 was 1058, checked in by garnier, 15 years ago

file release beta

File size: 3.5 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer                                           *
4// *                                                                  *
5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
7// * conditions of the Geant4 Software License,  included in the file *
8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
9// * include a list of copyright holders.                             *
10// *                                                                  *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work  make  any representation or  warranty, express or implied, *
14// * regarding  this  software system or assume any liability for its *
15// * use.  Please see the license in the file  LICENSE  and URL above *
16// * for the full disclaimer and the limitation of liability.         *
17// *                                                                  *
18// * This  code  implementation is the result of  the  scientific and *
19// * technical work of the GEANT4 collaboration.                      *
20// * By using,  copying,  modifying or  distributing the software (or *
21// * any work based  on the software)  you  agree  to acknowledge its *
22// * use  in  resulting  scientific  publications,  and indicate your *
23// * acceptance of all terms of the Geant4 Software license.          *
24// ********************************************************************
25//
26//
27// $Id: G4Parabola.hh,v 1.10 2006/06/29 18:39:54 gunter Exp $
28// GEANT4 tag $Name: geant4-09-02-ref-02 $
29//
30// ----------------------------------------------------------------------
31// Class G4Parabola
32//
33// Class description:
34//
35// Definition of a generic parabola.
36
37// Authors: J.Sulkimo, P.Urban.
38// Revisions by: L.Broglia, G.Cosmo.
39// ----------------------------------------------------------------------
40#ifndef __PARABOLICCURVE_H
41#define __PARABOLICCURVE_H
42
43#include "G4Conic.hh"
44
45class G4Parabola : public G4Conic
46{
47
48public:  // with description
49
50  G4Parabola();
51  virtual ~G4Parabola();
52    // Constructor & destructor.
53
54  G4Parabola(const G4Parabola& right);
55  G4Parabola& operator=(const G4Parabola& right);
56    // Copy constructor and assignment operator.
57
58  G4Curve* Project(const G4Transform3D& tr =
59                   HepGeom::Transform3D::Identity);
60    // Transforms and projects the curve.
61
62  G4bool Tangent(G4CurvePoint& cp, G4Vector3D& v);
63    // Returns tangent to curve at a given point, if existing.
64    // The tangent is computed from the 3D point representation.
65
66  inline G4double  GetPMax() const;
67  inline G4Point3D GetPoint(G4double param) const;
68  inline G4double  GetPPoint(const G4Point3D& p) const;
69    // Accessors methods.
70
71  inline G4double GetFocalDist() const;
72  inline void Init(const G4Axis2Placement3D& position0, G4double focalDist0);
73    // Get/Set for the geometric data.
74
75public:  // without description
76
77  inline G4int IntersectRay2D(const G4Ray& ray);
78
79  // void IntersectRay2D(const G4Ray& ray, G4CurveRayIntersection& is);
80  // G4Parabola(G4Point3d, G4Point3d, G4double );
81  // G4Point3d EvaluateByParameterValue(G4double u);
82  // G4Point3d GetBoundMax();
83  // G4Point3d GetBoundMin();   
84
85protected:
86
87  void InitBounded();
88
89private:
90
91  // geometric data
92
93  G4double focalDist;
94
95  // for the intersection
96  G4Point3D F;
97  G4Point3D L0;
98
99};
100
101#include "G4Parabola.icc"
102
103#endif
Note: See TracBrowser for help on using the repository browser.