source: trunk/source/geometry/solids/BREPS/include/G4CircularCurve.hh@ 1282

Last change on this file since 1282 was 1228, checked in by garnier, 16 years ago

update geant4.9.3 tag

File size: 3.4 KB
RevLine 
[831]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: G4CircularCurve.hh,v 1.9 2006/06/29 18:38:30 gunter Exp $
[1228]28// GEANT4 tag $Name: geant4-09-03 $
[831]29//
30// ----------------------------------------------------------------------
31// Class G4CircularCurve
32//
33// Class description:
34//
35// Definition of a generic circle.
36
37// Authors: J.Sulkimo, P.Urban.
38// Revisions by: L.Broglia, G.Cosmo.
39// ----------------------------------------------------------------------
40#ifndef __CIRCULARCURVE_H
41#define __CIRCULARCURVE_H
42
43#include "G4Conic.hh"
44
45class G4CircularCurve : public G4Conic
46{
47
48public: // with description
49
50 G4CircularCurve();
51 virtual ~G4CircularCurve();
52 // Constructor & destructor.
53
54 G4CircularCurve(const G4CircularCurve& right);
55 G4CircularCurve& operator=(const G4CircularCurve& right);
56 // Copy-constructor and assignment operator.
57
58 virtual G4Curve* Project(const G4Transform3D& tr=
59 HepGeom::Transform3D::Identity);
60 // Project along trasformation tr.
61
62 virtual G4bool Tangent(G4CurvePoint& cp, G4Vector3D& v);
63 // Tangent computed from the 3D point representation as for all conics.
64
65 virtual G4double GetPMax() const;
66 virtual G4Point3D GetPoint(G4double param) const;
67 virtual G4double GetPPoint(const G4Point3D& p) const;
68 inline G4double GetRadius() const;
69 // Accessors for the geometric data.
70
71 void Init(const G4Axis2Placement3D& position0, G4double radius0);
72 // Initialises geometric data.
73
74public: // without description
75
76 // virtual void IntersectRay2D(const G4Ray& ray, G4CurveRayIntersection& is);
77 virtual G4int IntersectRay2D(const G4Ray& ray);
78
79protected: // with description
80
81 virtual void InitBounded();
82 // Compute bounding box.
83
84private:
85
86 G4double radius;
87 // Geometric data.
88
89};
90
91#include "G4CircularCurve.icc"
92
93#endif
Note: See TracBrowser for help on using the repository browser.