Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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"
45#include "G4Point3DVector.hh"
46
47
49{
50
51public: // with description
52
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
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
82public: // without description
83
84 // virtual void IntersectRay2D(const G4Ray& ray, G4CurveRayIntersection& is);
85 virtual G4int IntersectRay2D(const G4Ray& ray);
86
87protected: // with description
88
89 virtual void InitBounded();
90 // Compute bounding box.
91
92private:
93
95 G4CompositeCurve& operator=(const G4CompositeCurve&);
96 // Private copy-constructor and assignment operator.
97
98private:
99
100 G4CurveVector segments;
101 G4CurveRayIntersection lastIntersection;
102 // geometric data
103
104};
105
106#include "G4CompositeCurve.icc"
107
108#endif
std::vector< G4Curve * > G4CurveVector
std::vector< G4Point3D > G4Point3DVector
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
bool G4bool
Definition: G4Types.hh:67
virtual G4double GetPMax() const
virtual G4Curve * Project(const G4Transform3D &tr=G4Transform3D::Identity)
virtual G4String GetEntityType() const
virtual G4bool Tangent(G4CurvePoint &cp, G4Vector3D &v)
virtual void InitBounded()
virtual G4double GetPPoint(const G4Point3D &p) const
virtual G4Point3D GetPoint(G4double param) const
void Init(const G4CurveVector &segments0)
virtual ~G4CompositeCurve()
const G4CurveVector & GetSegments() const
virtual G4int IntersectRay2D(const G4Ray &ray)
Definition: G4Ray.hh:49
static const Transform3D Identity
Definition: Transform3D.h:197