42cf5bc1 |
1 | // Created on: 1992-06-04 |
2 | // Created by: Jacques GOUSSARD |
3 | // Copyright (c) 1992-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 _Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter_HeaderFile |
18 | #define _Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <IntRes2d_Intersection.hxx> |
25 | #include <Standard_Real.hxx> |
26 | #include <Standard_Integer.hxx> |
27 | #include <TColStd_Array1OfReal.hxx> |
28 | class Standard_ConstructionError; |
29 | class IntCurve_IConicTool; |
30 | class Adaptor2d_Curve2d; |
31 | class Geom2dInt_Geom2dCurveTool; |
32 | class Geom2dInt_TheProjPCurOfGInter; |
33 | class Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter; |
34 | class IntRes2d_Domain; |
35 | class gp_Pnt2d; |
36 | |
37 | |
38 | |
39 | class Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter : public IntRes2d_Intersection |
40 | { |
41 | public: |
42 | |
43 | DEFINE_STANDARD_ALLOC |
44 | |
45 | |
36b9ff75 |
46 | //! Empty constructor. |
42cf5bc1 |
47 | Standard_EXPORT Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter(); |
48 | |
36b9ff75 |
49 | //! Intersection between an implicit curve and |
50 | //! a parametrised curve. |
51 | //! The exception ConstructionError is raised if the domain |
52 | //! of the parametrised curve does not verify HasFirstPoint |
53 | //! and HasLastPoint return True. |
42cf5bc1 |
54 | Standard_EXPORT Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter(const IntCurve_IConicTool& ITool, const IntRes2d_Domain& Dom1, const Adaptor2d_Curve2d& PCurve, const IntRes2d_Domain& Dom2, const Standard_Real TolConf, const Standard_Real Tol); |
55 | |
36b9ff75 |
56 | //! Intersection between an implicit curve and |
57 | //! a parametrised curve. |
58 | //! The exception ConstructionError is raised if the domain |
59 | //! of the parametrised curve does not verify HasFirstPoint |
60 | //! and HasLastPoint return True. |
42cf5bc1 |
61 | Standard_EXPORT void Perform (const IntCurve_IConicTool& ITool, const IntRes2d_Domain& Dom1, const Adaptor2d_Curve2d& PCurve, const IntRes2d_Domain& Dom2, const Standard_Real TolConf, const Standard_Real Tol); |
62 | |
63 | Standard_EXPORT Standard_Real FindU (const Standard_Real parameter, gp_Pnt2d& point, const Adaptor2d_Curve2d& TheParCurev, const IntCurve_IConicTool& TheImpTool) const; |
64 | |
65 | Standard_EXPORT Standard_Real FindV (const Standard_Real parameter, gp_Pnt2d& point, const IntCurve_IConicTool& TheImpTool, const Adaptor2d_Curve2d& ParCurve, const IntRes2d_Domain& TheParCurveDomain, const Standard_Real V0, const Standard_Real V1, const Standard_Real Tolerance) const; |
66 | |
67 | Standard_EXPORT void And_Domaine_Objet1_Intersections (const IntCurve_IConicTool& TheImpTool, const Adaptor2d_Curve2d& TheParCurve, const IntRes2d_Domain& TheImpCurveDomain, const IntRes2d_Domain& TheParCurveDomain, Standard_Integer& NbResultats, TColStd_Array1OfReal& Inter2_And_Domain2, TColStd_Array1OfReal& Inter1, TColStd_Array1OfReal& Resultat1, TColStd_Array1OfReal& Resultat2, const Standard_Real EpsNul) const; |
68 | |
69 | |
70 | |
71 | |
72 | protected: |
73 | |
74 | |
75 | |
76 | |
77 | |
78 | private: |
79 | |
80 | |
81 | |
82 | |
83 | |
84 | }; |
85 | |
86 | |
87 | |
88 | |
89 | |
90 | |
91 | |
92 | #endif // _Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter_HeaderFile |