Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1992-10-14
0002 // Created by: Christophe MARION
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 _HLRBRep_TheIntConicCurveOfCInter_HeaderFile
0018 #define _HLRBRep_TheIntConicCurveOfCInter_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 
0023 #include <IntRes2d_Intersection.hxx>
0024 class IntCurve_IConicTool;
0025 class HLRBRep_CurveTool;
0026 class HLRBRep_TheProjPCurOfCInter;
0027 class HLRBRep_TheIntersectorOfTheIntConicCurveOfCInter;
0028 class HLRBRep_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfCInter;
0029 class gp_Lin2d;
0030 class IntRes2d_Domain;
0031 class gp_Circ2d;
0032 class gp_Elips2d;
0033 class gp_Parab2d;
0034 class gp_Hypr2d;
0035 
0036 
0037 
0038 class HLRBRep_TheIntConicCurveOfCInter  : public IntRes2d_Intersection
0039 {
0040 public:
0041 
0042   DEFINE_STANDARD_ALLOC
0043 
0044   
0045   //! Empty constructor.
0046     HLRBRep_TheIntConicCurveOfCInter();
0047   
0048   //! Intersection between a line and a parametric curve.
0049     HLRBRep_TheIntConicCurveOfCInter(const gp_Lin2d& L, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
0050   
0051   //! Intersection between a line and a parametric curve.
0052   Standard_EXPORT HLRBRep_TheIntConicCurveOfCInter(const gp_Circ2d& C, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
0053   
0054   //! Intersection between an ellipse and a parametric curve.
0055   Standard_EXPORT HLRBRep_TheIntConicCurveOfCInter(const gp_Elips2d& E, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
0056   
0057   //! Intersection between a parabola and a parametric curve.
0058   Standard_EXPORT HLRBRep_TheIntConicCurveOfCInter(const gp_Parab2d& Prb, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
0059   
0060   //! Intersection between the main branch of an hyperbola
0061   //! and a parametric curve.
0062   Standard_EXPORT HLRBRep_TheIntConicCurveOfCInter(const gp_Hypr2d& H, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
0063   
0064   //! Intersection between a line and a parametric curve.
0065     void Perform (const gp_Lin2d& L, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
0066   
0067   //! Intersection between a line and a parametric curve.
0068     void Perform (const gp_Circ2d& C, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
0069   
0070   //! Intersection between an ellipse and a parametric curve.
0071     void Perform (const gp_Elips2d& E, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
0072   
0073   //! Intersection between a parabola and a parametric curve.
0074     void Perform (const gp_Parab2d& Prb, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
0075   
0076   //! Intersection between the main branch of an hyperbola
0077   //! and a parametric curve.
0078     void Perform (const gp_Hypr2d& H, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
0079 
0080 
0081 
0082 
0083 protected:
0084 
0085 
0086 
0087 
0088 
0089 private:
0090 
0091   
0092   //! Intersection between a conic fom gp
0093   //! and a parametric curve.
0094     void Perform (const IntCurve_IConicTool& ICurve, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
0095 
0096 
0097 
0098 
0099 };
0100 
0101 #define TheImpTool IntCurve_IConicTool
0102 #define TheImpTool_hxx <IntCurve_IConicTool.hxx>
0103 #define ThePCurve Standard_Address
0104 #define ThePCurve_hxx <Standard_Address.hxx>
0105 #define ThePCurveTool HLRBRep_CurveTool
0106 #define ThePCurveTool_hxx <HLRBRep_CurveTool.hxx>
0107 #define TheProjPCur HLRBRep_TheProjPCurOfCInter
0108 #define TheProjPCur_hxx <HLRBRep_TheProjPCurOfCInter.hxx>
0109 #define IntCurve_TheIntersector HLRBRep_TheIntersectorOfTheIntConicCurveOfCInter
0110 #define IntCurve_TheIntersector_hxx <HLRBRep_TheIntersectorOfTheIntConicCurveOfCInter.hxx>
0111 #define IntCurve_MyImpParToolOfTheIntersector HLRBRep_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfCInter
0112 #define IntCurve_MyImpParToolOfTheIntersector_hxx <HLRBRep_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfCInter.hxx>
0113 #define IntCurve_MyImpParToolOfTheIntersector HLRBRep_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfCInter
0114 #define IntCurve_MyImpParToolOfTheIntersector_hxx <HLRBRep_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfCInter.hxx>
0115 #define IntCurve_IntConicCurveGen HLRBRep_TheIntConicCurveOfCInter
0116 #define IntCurve_IntConicCurveGen_hxx <HLRBRep_TheIntConicCurveOfCInter.hxx>
0117 
0118 #include <IntCurve_IntConicCurveGen.lxx>
0119 
0120 #undef TheImpTool
0121 #undef TheImpTool_hxx
0122 #undef ThePCurve
0123 #undef ThePCurve_hxx
0124 #undef ThePCurveTool
0125 #undef ThePCurveTool_hxx
0126 #undef TheProjPCur
0127 #undef TheProjPCur_hxx
0128 #undef IntCurve_TheIntersector
0129 #undef IntCurve_TheIntersector_hxx
0130 #undef IntCurve_MyImpParToolOfTheIntersector
0131 #undef IntCurve_MyImpParToolOfTheIntersector_hxx
0132 #undef IntCurve_MyImpParToolOfTheIntersector
0133 #undef IntCurve_MyImpParToolOfTheIntersector_hxx
0134 #undef IntCurve_IntConicCurveGen
0135 #undef IntCurve_IntConicCurveGen_hxx
0136 
0137 
0138 
0139 
0140 #endif // _HLRBRep_TheIntConicCurveOfCInter_HeaderFile