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
G4CompositeCurve.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 G4CompositeCurve
31
//
32
// Class description:
33
//
34
// Definition of a generic composition of curves.
35
36
// Authors: J.Sulkimo, P.Urban.
37
// Revisions by: L.Broglia, G.Cosmo.
38
// ----------------------------------------------------------------------
39
#ifndef __G4COMPOSITCURVE_H
40
#define __G4COMPOSITCURVE_H
41
42
#include "
G4Curve.hh
"
43
#include "
G4CurveVector.hh
"
44
#include "
G4CurveRayIntersection.hh
"
45
#include "
G4Point3DVector.hh
"
46
47
48
class
G4CompositeCurve
:
public
G4Curve
49
{
50
51
public
:
// with description
52
53
G4CompositeCurve
();
54
virtual
~G4CompositeCurve
();
55
// Default constructor & destructor
56
57
G4CompositeCurve
(
const
G4Point3DVector
& vertices);
58
// Constructor creating closed polygons, given the vertices.
59
// No call to Init and SetBounds is needed after calling this
60
// constructor.
61
62
virtual
G4String
GetEntityType
()
const
;
63
// Returns entity type identifier.
64
65
virtual
G4Curve
*
Project
(
const
G4Transform3D
& tr =
G4Transform3D::Identity
);
66
// Project along trasformation tr.
67
68
virtual
G4bool
Tangent
(
G4CurvePoint
& cp,
G4Vector3D
&
v
);
69
// Tangent computed from the 3D point representation.
70
71
virtual
G4double
GetPMax
()
const
;
72
virtual
G4Point3D
GetPoint
(
G4double
param)
const
;
73
virtual
G4double
GetPPoint
(
const
G4Point3D
&
p
)
const
;
74
const
G4CurveVector
&
GetSegments
()
const
;
75
// Acccessors for the geometric data
76
77
void
Init
(
const
G4CurveVector
& segments0);
78
// Initialises geometric data.
79
// The object is not responsible for deleting the curves;
80
// only a shallow copy of the CurveVector is made.
81
82
public
:
// without description
83
84
// virtual void IntersectRay2D(const G4Ray& ray, G4CurveRayIntersection& is);
85
virtual
G4int
IntersectRay2D
(
const
G4Ray
& ray);
86
87
protected
:
// with description
88
89
virtual
void
InitBounded
();
90
// Compute bounding box.
91
92
private
:
93
94
G4CompositeCurve
(
const
G4CompositeCurve
&);
95
G4CompositeCurve
& operator=(
const
G4CompositeCurve
&);
96
// Private copy-constructor and assignment operator.
97
98
private
:
99
100
G4CurveVector
segments;
101
G4CurveRayIntersection
lastIntersection;
102
// geometric data
103
104
};
105
106
#include "G4CompositeCurve.icc"
107
108
#endif
Generated on Sat May 25 2013 14:33:12 for Geant4 by
1.8.4