Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
source
geometry
solids
BREPS
include
G4CurveRayIntersection.hh
Go to the documentation of this file.
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$
28
//
29
// ----------------------------------------------------------------------
30
// Class G4CurveRayIntersection
31
//
32
// Class Description:
33
//
34
// Class capable of storing both the parametric and the non-parametric
35
// representation of a intersection point on a curve. It's subclassed
36
// from G4CurvePoint.
37
38
// Author: J.Sulkimo, P.Urban.
39
// Revisions by: L.Broglia, G.Cosmo.
40
// ----------------------------------------------------------------------
41
#ifndef included_G4CurveRayIntersection
42
#define included_G4CurveRayIntersection
43
44
#include "
G4CurvePoint.hh
"
45
#include "
G4Ray.hh
"
46
47
class
G4CurveRayIntersection
:
public
G4CurvePoint
48
{
49
50
public
:
// with description
51
52
G4CurveRayIntersection
();
53
// Default constructor. Sets only distance to infinity.
54
// Must be followed by Init!
55
56
G4CurveRayIntersection
(
G4Curve
& c0,
const
G4Ray
& r0);
57
// Constructor taking a curve and a ray.
58
59
~G4CurveRayIntersection
();
60
// Empty destructor.
61
62
G4CurveRayIntersection
(
const
G4CurveRayIntersection
& cr);
63
G4CurveRayIntersection
&
operator=
(
const
G4CurveRayIntersection
& cr);
64
// Copy constructor and assignment operator.
65
66
inline
void
Init
(
G4Curve
& c0,
const
G4Ray
& r0);
67
// Initialises a G4CurveRayIntersection. Called by the constructor above.
68
69
inline
const
G4Ray
&
GetRay
()
const
;
70
// Returns the ray of intersection.
71
72
inline
void
Reset
();
73
inline
void
ResetPPoint
(
G4double
u0);
74
inline
void
Reset
(
const
G4Point3D
& p0);
75
inline
void
Reset
(
G4double
u0,
const
G4Point3D
& p0);
76
inline
void
ResetDistance
(
G4double
d0);
77
inline
void
Reset
(
G4double
u0,
G4double
d0);
78
inline
void
Reset
(
const
G4Point3D
& p0,
G4double
d0);
79
inline
void
Reset
(
G4double
u0,
const
G4Point3D
& p0,
G4double
d0);
80
// Resets point's attributes.
81
82
inline
G4double
GetPPoint
();
83
inline
const
G4Point3D
&
GetPoint
();
84
// Returns point as parameter or as point in space.
85
86
inline
G4double
GetDistance
();
87
// Returns intersection's distance.
88
89
public
:
// without description
90
91
// additional functionalities
92
93
inline
void
Update
(
G4CurveRayIntersection
& is);
94
inline
void
UpdateWithPointOnCurve
(
G4CurveRayIntersection
& is);
95
96
protected
:
97
98
// data
99
100
const
G4Ray
*
r
;
101
G4double
d
;
102
G4double
kCarTolerance
;
103
static
const
G4int
dFlag
;
104
105
};
106
107
#include "G4CurveRayIntersection.icc"
108
109
#endif
Generated on Sat May 25 2013 14:33:12 for Geant4 by
1.8.4