42cf5bc1 |
1 | // Created on: 1993-04-07 |
2 | // Created by: Laurent BUCHARD |
3 | // Copyright (c) 1993-1999 Matra Datavision |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
5 | // |
6 | // This file is part of Open CASCADE Technology software library. |
7 | // |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
13 | // |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
16 | |
17 | #ifndef _IntCurveSurface_IntersectionPoint_HeaderFile |
18 | #define _IntCurveSurface_IntersectionPoint_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <gp_Pnt.hxx> |
25 | #include <Standard_Real.hxx> |
26 | #include <IntCurveSurface_TransitionOnCurve.hxx> |
27 | class gp_Pnt; |
28 | |
29 | |
30 | //! Definition of an interserction point between a |
31 | //! curve and a surface. |
32 | class IntCurveSurface_IntersectionPoint |
33 | { |
34 | public: |
35 | |
36 | DEFINE_STANDARD_ALLOC |
37 | |
38 | |
39 | //! Empty Constructor. |
40 | Standard_EXPORT IntCurveSurface_IntersectionPoint(); |
41 | |
42 | //! Create an IntersectionPoint. |
43 | Standard_EXPORT IntCurveSurface_IntersectionPoint(const gp_Pnt& P, const Standard_Real USurf, const Standard_Real VSurf, const Standard_Real UCurv, const IntCurveSurface_TransitionOnCurve TrCurv); |
44 | |
45 | //! Set the fields of the current IntersectionPoint. |
46 | Standard_EXPORT void SetValues (const gp_Pnt& P, const Standard_Real USurf, const Standard_Real VSurf, const Standard_Real UCurv, const IntCurveSurface_TransitionOnCurve TrCurv); |
47 | |
48 | //! Get the fields of the current IntersectionPoint. |
49 | Standard_EXPORT void Values (gp_Pnt& P, Standard_Real& USurf, Standard_Real& VSurf, Standard_Real& UCurv, IntCurveSurface_TransitionOnCurve& TrCurv) const; |
50 | |
51 | //! returns the geometric point. |
52 | const gp_Pnt& Pnt() const; |
53 | |
54 | //! returns the U parameter on the surface. |
55 | Standard_Real U() const; |
56 | |
57 | //! returns the V parameter on the surface. |
58 | Standard_Real V() const; |
59 | |
60 | //! returns the parameter on the curve. |
61 | Standard_Real W() const; |
62 | |
63 | //! returns the Transition of the point. |
64 | IntCurveSurface_TransitionOnCurve Transition() const; |
65 | |
66 | //! Dump all the fields. |
67 | Standard_EXPORT void Dump() const; |
68 | |
69 | |
70 | |
71 | |
72 | protected: |
73 | |
74 | |
75 | |
76 | |
77 | |
78 | private: |
79 | |
80 | |
81 | |
82 | gp_Pnt myP; |
83 | Standard_Real myUSurf; |
84 | Standard_Real myVSurf; |
85 | Standard_Real myUCurv; |
86 | IntCurveSurface_TransitionOnCurve myTrOnCurv; |
87 | |
88 | |
89 | }; |
90 | |
91 | |
92 | #include <IntCurveSurface_IntersectionPoint.lxx> |
93 | |
94 | |
95 | |
96 | |
97 | |
98 | #endif // _IntCurveSurface_IntersectionPoint_HeaderFile |