Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:35

0001 // Created on: 1992-06-04
0002 // Created by: Jacques GOUSSARD
0003 // Copyright (c) 1992-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _Geom2dInt_TheIntConicCurveOfGInter_HeaderFile
0018 #define _Geom2dInt_TheIntConicCurveOfGInter_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 
0023 #include <IntRes2d_Intersection.hxx>
0024 class IntCurve_IConicTool;
0025 class Adaptor2d_Curve2d;
0026 class Geom2dInt_Geom2dCurveTool;
0027 class Geom2dInt_TheProjPCurOfGInter;
0028 class Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter;
0029 class Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter;
0030 class gp_Lin2d;
0031 class IntRes2d_Domain;
0032 class gp_Circ2d;
0033 class gp_Elips2d;
0034 class gp_Parab2d;
0035 class gp_Hypr2d;
0036 
0037 
0038 
0039 class Geom2dInt_TheIntConicCurveOfGInter  : public IntRes2d_Intersection
0040 {
0041 public:
0042 
0043   DEFINE_STANDARD_ALLOC
0044 
0045   
0046   //! Empty constructor.
0047     Geom2dInt_TheIntConicCurveOfGInter();
0048   
0049   //! Intersection between a line and a parametric curve.
0050     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);
0051   
0052   //! Intersection between a line and a parametric curve.
0053   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);
0054   
0055   //! Intersection between an ellipse and a parametric curve.
0056   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);
0057   
0058   //! Intersection between a parabola and a parametric curve.
0059   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);
0060   
0061   //! Intersection between the main branch of an hyperbola
0062   //! and a parametric curve.
0063   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);
0064   
0065   //! Intersection between a line and a parametric curve.
0066     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);
0067   
0068   //! Intersection between a line and a parametric curve.
0069     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);
0070   
0071   //! Intersection between an ellipse and a parametric curve.
0072     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);
0073   
0074   //! Intersection between a parabola and a parametric curve.
0075     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);
0076   
0077   //! Intersection between the main branch of an hyperbola
0078   //! and a parametric curve.
0079     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);
0080 
0081 
0082 
0083 
0084 protected:
0085 
0086 
0087 
0088 
0089 
0090 private:
0091 
0092   
0093   //! Intersection between a conic fom gp
0094   //! and a parametric curve.
0095     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);
0096 
0097 
0098 
0099 
0100 };
0101 
0102 #define TheImpTool IntCurve_IConicTool
0103 #define TheImpTool_hxx <IntCurve_IConicTool.hxx>
0104 #define ThePCurve Adaptor2d_Curve2d
0105 #define ThePCurve_hxx <Adaptor2d_Curve2d.hxx>
0106 #define ThePCurveTool Geom2dInt_Geom2dCurveTool
0107 #define ThePCurveTool_hxx <Geom2dInt_Geom2dCurveTool.hxx>
0108 #define TheProjPCur Geom2dInt_TheProjPCurOfGInter
0109 #define TheProjPCur_hxx <Geom2dInt_TheProjPCurOfGInter.hxx>
0110 #define IntCurve_TheIntersector Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter
0111 #define IntCurve_TheIntersector_hxx <Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter.hxx>
0112 #define IntCurve_MyImpParToolOfTheIntersector Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter
0113 #define IntCurve_MyImpParToolOfTheIntersector_hxx <Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter.hxx>
0114 #define IntCurve_MyImpParToolOfTheIntersector Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter
0115 #define IntCurve_MyImpParToolOfTheIntersector_hxx <Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter.hxx>
0116 #define IntCurve_IntConicCurveGen Geom2dInt_TheIntConicCurveOfGInter
0117 #define IntCurve_IntConicCurveGen_hxx <Geom2dInt_TheIntConicCurveOfGInter.hxx>
0118 
0119 #include <IntCurve_IntConicCurveGen.lxx>
0120 
0121 #undef TheImpTool
0122 #undef TheImpTool_hxx
0123 #undef ThePCurve
0124 #undef ThePCurve_hxx
0125 #undef ThePCurveTool
0126 #undef ThePCurveTool_hxx
0127 #undef TheProjPCur
0128 #undef TheProjPCur_hxx
0129 #undef IntCurve_TheIntersector
0130 #undef IntCurve_TheIntersector_hxx
0131 #undef IntCurve_MyImpParToolOfTheIntersector
0132 #undef IntCurve_MyImpParToolOfTheIntersector_hxx
0133 #undef IntCurve_MyImpParToolOfTheIntersector
0134 #undef IntCurve_MyImpParToolOfTheIntersector_hxx
0135 #undef IntCurve_IntConicCurveGen
0136 #undef IntCurve_IntConicCurveGen_hxx
0137 
0138 
0139 
0140 
0141 #endif // _Geom2dInt_TheIntConicCurveOfGInter_HeaderFile