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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _Geom2dInt_TheIntConicCurveOfGInter_HeaderFile
18 #define _Geom2dInt_TheIntConicCurveOfGInter_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <IntRes2d_Intersection.hxx>
25 #include <Standard_Real.hxx>
26 class IntCurve_IConicTool;
27 class Adaptor2d_Curve2d;
28 class Geom2dInt_Geom2dCurveTool;
29 class Geom2dInt_TheProjPCurOfGInter;
30 class Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter;
31 class Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter;
33 class IntRes2d_Domain;
41 class Geom2dInt_TheIntConicCurveOfGInter : public IntRes2d_Intersection
48 //! Empty constructor.
49 Geom2dInt_TheIntConicCurveOfGInter();
51 //! Intersection between a line and a parametric curve.
52 Geom2dInt_TheIntConicCurveOfGInter(const gp_Lin2d& L, const IntRes2d_Domain& D1, const Adaptor2d_Curve2d& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
54 //! Intersection between a line and a parametric curve.
55 Standard_EXPORT Geom2dInt_TheIntConicCurveOfGInter(const gp_Circ2d& C, const IntRes2d_Domain& D1, const Adaptor2d_Curve2d& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
57 //! Intersection between an ellipse and a parametric curve.
58 Standard_EXPORT Geom2dInt_TheIntConicCurveOfGInter(const gp_Elips2d& E, const IntRes2d_Domain& D1, const Adaptor2d_Curve2d& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
60 //! Intersection between a parabola and a parametric curve.
61 Standard_EXPORT Geom2dInt_TheIntConicCurveOfGInter(const gp_Parab2d& Prb, const IntRes2d_Domain& D1, const Adaptor2d_Curve2d& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
63 //! Intersection between the main branch of an hyperbola
64 //! and a parametric curve.
65 Standard_EXPORT Geom2dInt_TheIntConicCurveOfGInter(const gp_Hypr2d& H, const IntRes2d_Domain& D1, const Adaptor2d_Curve2d& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
67 //! Intersection between a line and a parametric curve.
68 void Perform (const gp_Lin2d& L, const IntRes2d_Domain& D1, const Adaptor2d_Curve2d& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
70 //! Intersection between a line and a parametric curve.
71 void Perform (const gp_Circ2d& C, const IntRes2d_Domain& D1, const Adaptor2d_Curve2d& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
73 //! Intersection between an ellipse and a parametric curve.
74 void Perform (const gp_Elips2d& E, const IntRes2d_Domain& D1, const Adaptor2d_Curve2d& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
76 //! Intersection between a parabola and a parametric curve.
77 void Perform (const gp_Parab2d& Prb, const IntRes2d_Domain& D1, const Adaptor2d_Curve2d& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
79 //! Intersection between the main branch of an hyperbola
80 //! and a parametric curve.
81 void Perform (const gp_Hypr2d& H, const IntRes2d_Domain& D1, const Adaptor2d_Curve2d& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
95 //! Intersection between a conic fom gp
96 //! and a parametric curve.
97 void Perform (const IntCurve_IConicTool& ICurve, const IntRes2d_Domain& D1, const Adaptor2d_Curve2d& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
104 #define TheImpTool IntCurve_IConicTool
105 #define TheImpTool_hxx <IntCurve_IConicTool.hxx>
106 #define ThePCurve Adaptor2d_Curve2d
107 #define ThePCurve_hxx <Adaptor2d_Curve2d.hxx>
108 #define ThePCurveTool Geom2dInt_Geom2dCurveTool
109 #define ThePCurveTool_hxx <Geom2dInt_Geom2dCurveTool.hxx>
110 #define TheProjPCur Geom2dInt_TheProjPCurOfGInter
111 #define TheProjPCur_hxx <Geom2dInt_TheProjPCurOfGInter.hxx>
112 #define IntCurve_TheIntersector Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter
113 #define IntCurve_TheIntersector_hxx <Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter.hxx>
114 #define IntCurve_MyImpParToolOfTheIntersector Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter
115 #define IntCurve_MyImpParToolOfTheIntersector_hxx <Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter.hxx>
116 #define IntCurve_MyImpParToolOfTheIntersector Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter
117 #define IntCurve_MyImpParToolOfTheIntersector_hxx <Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter.hxx>
118 #define IntCurve_IntConicCurveGen Geom2dInt_TheIntConicCurveOfGInter
119 #define IntCurve_IntConicCurveGen_hxx <Geom2dInt_TheIntConicCurveOfGInter.hxx>
121 #include <IntCurve_IntConicCurveGen.lxx>
124 #undef TheImpTool_hxx
128 #undef ThePCurveTool_hxx
130 #undef TheProjPCur_hxx
131 #undef IntCurve_TheIntersector
132 #undef IntCurve_TheIntersector_hxx
133 #undef IntCurve_MyImpParToolOfTheIntersector
134 #undef IntCurve_MyImpParToolOfTheIntersector_hxx
135 #undef IntCurve_MyImpParToolOfTheIntersector
136 #undef IntCurve_MyImpParToolOfTheIntersector_hxx
137 #undef IntCurve_IntConicCurveGen
138 #undef IntCurve_IntConicCurveGen_hxx
143 #endif // _Geom2dInt_TheIntConicCurveOfGInter_HeaderFile