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>
23 #include <IntRes2d_Intersection.hxx>
24 class IntCurve_IConicTool;
25 class Adaptor2d_Curve2d;
26 class Geom2dInt_Geom2dCurveTool;
27 class Geom2dInt_TheProjPCurOfGInter;
28 class Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter;
29 class Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter;
31 class IntRes2d_Domain;
39 class Geom2dInt_TheIntConicCurveOfGInter : public IntRes2d_Intersection
46 //! Empty constructor.
47 Geom2dInt_TheIntConicCurveOfGInter();
49 //! Intersection between a line and a parametric curve.
50 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);
52 //! Intersection between a line and a parametric curve.
53 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);
55 //! Intersection between an ellipse and a parametric curve.
56 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);
58 //! Intersection between a parabola and a parametric curve.
59 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);
61 //! Intersection between the main branch of an hyperbola
62 //! and a parametric curve.
63 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);
65 //! Intersection between a line and a parametric curve.
66 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);
68 //! Intersection between a line and a parametric curve.
69 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);
71 //! Intersection between an ellipse and a parametric curve.
72 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);
74 //! Intersection between a parabola and a parametric curve.
75 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);
77 //! Intersection between the main branch of an hyperbola
78 //! and a parametric curve.
79 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);
93 //! Intersection between a conic fom gp
94 //! and a parametric curve.
95 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);
102 #define TheImpTool IntCurve_IConicTool
103 #define TheImpTool_hxx <IntCurve_IConicTool.hxx>
104 #define ThePCurve Adaptor2d_Curve2d
105 #define ThePCurve_hxx <Adaptor2d_Curve2d.hxx>
106 #define ThePCurveTool Geom2dInt_Geom2dCurveTool
107 #define ThePCurveTool_hxx <Geom2dInt_Geom2dCurveTool.hxx>
108 #define TheProjPCur Geom2dInt_TheProjPCurOfGInter
109 #define TheProjPCur_hxx <Geom2dInt_TheProjPCurOfGInter.hxx>
110 #define IntCurve_TheIntersector Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter
111 #define IntCurve_TheIntersector_hxx <Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter.hxx>
112 #define IntCurve_MyImpParToolOfTheIntersector Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter
113 #define IntCurve_MyImpParToolOfTheIntersector_hxx <Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter.hxx>
114 #define IntCurve_MyImpParToolOfTheIntersector Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter
115 #define IntCurve_MyImpParToolOfTheIntersector_hxx <Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter.hxx>
116 #define IntCurve_IntConicCurveGen Geom2dInt_TheIntConicCurveOfGInter
117 #define IntCurve_IntConicCurveGen_hxx <Geom2dInt_TheIntConicCurveOfGInter.hxx>
119 #include <IntCurve_IntConicCurveGen.lxx>
122 #undef TheImpTool_hxx
126 #undef ThePCurveTool_hxx
128 #undef TheProjPCur_hxx
129 #undef IntCurve_TheIntersector
130 #undef IntCurve_TheIntersector_hxx
131 #undef IntCurve_MyImpParToolOfTheIntersector
132 #undef IntCurve_MyImpParToolOfTheIntersector_hxx
133 #undef IntCurve_MyImpParToolOfTheIntersector
134 #undef IntCurve_MyImpParToolOfTheIntersector_hxx
135 #undef IntCurve_IntConicCurveGen
136 #undef IntCurve_IntConicCurveGen_hxx
141 #endif // _Geom2dInt_TheIntConicCurveOfGInter_HeaderFile