|
||||
File indexing completed on 2025-01-18 10:03:34
0001 // Created on: 1991-03-29 0002 // Created by: Remi GILET 0003 // Copyright (c) 1991-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 _Geom2dGcc_Circ2d2TanOnIter_HeaderFile 0018 #define _Geom2dGcc_Circ2d2TanOnIter_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_DefineAlloc.hxx> 0022 0023 #include <gp_Circ2d.hxx> 0024 #include <GccEnt_Position.hxx> 0025 #include <gp_Pnt2d.hxx> 0026 class GccEnt_QualifiedCirc; 0027 class Geom2dGcc_QCurve; 0028 class gp_Lin2d; 0029 class GccEnt_QualifiedLin; 0030 class Geom2dAdaptor_Curve; 0031 0032 0033 //! This class implements the algorithms used to 0034 //! create 2d circles TANgent to 2 entities and 0035 //! having the center ON a curv. 0036 //! The order of the tangency argument is always 0037 //! QualifiedCirc, QualifiedLin, QualifiedCurv, Pnt2d. 0038 //! the arguments are : 0039 //! - The two tangency arguments. 0040 //! - The center line. 0041 //! - The parameter for each tangency argument which 0042 //! is a curve. 0043 //! - The tolerance. 0044 class Geom2dGcc_Circ2d2TanOnIter 0045 { 0046 public: 0047 0048 DEFINE_STANDARD_ALLOC 0049 0050 0051 //! This method implements the algorithms used to 0052 //! create 2d circles TANgent to a 2d circle and a curve and 0053 //! having the center ON a 2d line. 0054 //! Param2 is the initial guess on the curve QualifiedCurv. 0055 //! Tolerance is used for the limit cases. 0056 Standard_EXPORT Geom2dGcc_Circ2d2TanOnIter(const GccEnt_QualifiedCirc& Qualified1, const Geom2dGcc_QCurve& Qualified2, const gp_Lin2d& OnLine, const Standard_Real Param1, const Standard_Real Param2, const Standard_Real Param3, const Standard_Real Tolerance); 0057 0058 //! This method implements the algorithms used to 0059 //! create 2d circles TANgent to a 2d line and a curve and 0060 //! having the center ON a 2d line. 0061 //! Param2 is the initial guess on the curve QualifiedCurv. 0062 //! Tolerance is used for the limit cases. 0063 Standard_EXPORT Geom2dGcc_Circ2d2TanOnIter(const GccEnt_QualifiedLin& Qualified1, const Geom2dGcc_QCurve& Qualified2, const gp_Lin2d& OnLine, const Standard_Real Param1, const Standard_Real Param2, const Standard_Real Param3, const Standard_Real Tolerance); 0064 0065 //! This method implements the algorithms used to 0066 //! create 2d circles TANgent to two curves and 0067 //! having the center ON a 2d line. 0068 //! Param1 is the initial guess on the first QualifiedCurv. 0069 //! Param2 is the initial guess on the first QualifiedCurv. 0070 //! Tolerance is used for the limit cases. 0071 Standard_EXPORT Geom2dGcc_Circ2d2TanOnIter(const Geom2dGcc_QCurve& Qualified1, const Geom2dGcc_QCurve& Qualified2, const gp_Lin2d& OnLine, const Standard_Real Param1, const Standard_Real Param2, const Standard_Real Param3, const Standard_Real Tolerance); 0072 0073 //! This method implements the algorithms used to 0074 //! create 2d circles TANgent to a 2d point and a curve and 0075 //! having the center ON a 2d line. 0076 //! Param2 is the initial guess on the curve QualifiedCurv. 0077 //! Tolerance is used for the limit cases. 0078 Standard_EXPORT Geom2dGcc_Circ2d2TanOnIter(const Geom2dGcc_QCurve& Qualified1, const gp_Pnt2d& Point2, const gp_Lin2d& OnLine, const Standard_Real Param1, const Standard_Real Param2, const Standard_Real Tolerance); 0079 0080 //! This method implements the algorithms used to 0081 //! create 2d circles TANgent to a 2d circle and a curve and 0082 //! having the center ON a 2d circle. 0083 //! Param2 is the initial guess on the curve QualifiedCurv. 0084 //! Tolerance is used for the limit cases. 0085 Standard_EXPORT Geom2dGcc_Circ2d2TanOnIter(const GccEnt_QualifiedCirc& Qualified1, const Geom2dGcc_QCurve& Qualified2, const gp_Circ2d& OnCirc, const Standard_Real Param1, const Standard_Real Param2, const Standard_Real Param3, const Standard_Real Tolerance); 0086 0087 //! This method implements the algorithms used to 0088 //! create 2d circles TANgent to a 2d line and a curve and 0089 //! having the center ON a 2d circle. 0090 //! Param2 is the initial guess on the curve QualifiedCurv. 0091 //! Tolerance is used for the limit cases. 0092 Standard_EXPORT Geom2dGcc_Circ2d2TanOnIter(const GccEnt_QualifiedLin& Qualified1, const Geom2dGcc_QCurve& Qualified2, const gp_Circ2d& OnCirc, const Standard_Real Param1, const Standard_Real Param2, const Standard_Real Param3, const Standard_Real Tolerance); 0093 0094 //! This method implements the algorithms used to 0095 //! create 2d circles TANgent to two curves and 0096 //! having the center ON a 2d circle. 0097 //! Param1 is the initial guess on the first QualifiedCurv. 0098 //! Param2 is the initial guess on the first QualifiedCurv. 0099 //! Tolerance is used for the limit cases. 0100 Standard_EXPORT Geom2dGcc_Circ2d2TanOnIter(const Geom2dGcc_QCurve& Qualified1, const Geom2dGcc_QCurve& Qualified2, const gp_Circ2d& OnCirc, const Standard_Real Param1, const Standard_Real Param2, const Standard_Real Param3, const Standard_Real Tolerance); 0101 0102 //! This method implements the algorithms used to 0103 //! create 2d circles TANgent to a 2d point and a curve and 0104 //! having the center ON a 2d circle. 0105 //! Param2 is the initial guess on the curve QualifiedCurv. 0106 //! Tolerance is used for the limit cases. 0107 Standard_EXPORT Geom2dGcc_Circ2d2TanOnIter(const Geom2dGcc_QCurve& Qualified1, const gp_Pnt2d& Point2, const gp_Circ2d& OnCirc, const Standard_Real Param1, const Standard_Real Param2, const Standard_Real Tolerance); 0108 0109 //! This method implements the algorithms used to 0110 //! create 2d circles TANgent to a 2d circle and a curve and 0111 //! having the center ON a 2d curve. 0112 //! Param2 is the initial guess on the curve QualifiedCurv. 0113 //! ParamOn is the initial guess on the center curve OnCurv. 0114 //! Tolerance is used for the limit cases. 0115 Standard_EXPORT Geom2dGcc_Circ2d2TanOnIter(const GccEnt_QualifiedCirc& Qualified1, const Geom2dGcc_QCurve& Qualified2, const Geom2dAdaptor_Curve& OnCurv, const Standard_Real Param1, const Standard_Real Param2, const Standard_Real ParamOn, const Standard_Real Tolerance); 0116 0117 //! This method implements the algorithms used to 0118 //! create 2d circles TANgent to a 2d line and a curve and 0119 //! having the center ON a 2d curve. 0120 //! Param2 is the initial guess on the curve QualifiedCurv. 0121 //! ParamOn is the initial guess on the center curve OnCurv. 0122 //! Tolerance is used for the limit cases. 0123 Standard_EXPORT Geom2dGcc_Circ2d2TanOnIter(const GccEnt_QualifiedLin& Qualified1, const Geom2dGcc_QCurve& Qualified2, const Geom2dAdaptor_Curve& OnCurve, const Standard_Real Param1, const Standard_Real Param2, const Standard_Real ParamOn, const Standard_Real Tolerance); 0124 0125 //! This method implements the algorithms used to 0126 //! create 2d circles TANgent to a 2d Point and a curve and 0127 //! having the center ON a 2d curve. 0128 //! Param1 is the initial guess on the curve QualifiedCurv. 0129 //! ParamOn is the initial guess on the center curve OnCurv. 0130 //! Tolerance is used for the limit cases. 0131 Standard_EXPORT Geom2dGcc_Circ2d2TanOnIter(const Geom2dGcc_QCurve& Qualified1, const gp_Pnt2d& Point2, const Geom2dAdaptor_Curve& OnCurve, const Standard_Real Param1, const Standard_Real ParamOn, const Standard_Real Tolerance); 0132 0133 //! This method implements the algorithms used to 0134 //! create 2d circles TANgent to two curves and 0135 //! having the center ON a 2d curve. 0136 //! Param1 is the initial guess on the first curve QualifiedCurv. 0137 //! Param1 is the initial guess on the second curve QualifiedCurv. 0138 //! ParamOn is the initial guess on the center curve OnCurv. 0139 //! Tolerance is used for the limit cases. 0140 Standard_EXPORT Geom2dGcc_Circ2d2TanOnIter(const Geom2dGcc_QCurve& Qualified1, const Geom2dGcc_QCurve& Qualified2, const Geom2dAdaptor_Curve& OnCurve, const Standard_Real Param1, const Standard_Real Param2, const Standard_Real ParamOn, const Standard_Real Tolerance); 0141 0142 //! This method returns True if the construction 0143 //! algorithm succeeded. 0144 Standard_EXPORT Standard_Boolean IsDone() const; 0145 0146 //! Returns the solution. 0147 //! It raises NotDone if the construction algorithm 0148 //! didn't succeed. 0149 Standard_EXPORT gp_Circ2d ThisSolution() const; 0150 0151 Standard_EXPORT void WhichQualifier (GccEnt_Position& Qualif1, GccEnt_Position& Qualif2) const; 0152 0153 //! Returns information about the tangency point between 0154 //! the result and the first argument. 0155 //! ParSol is the intrinsic parameter of the point PntSol 0156 //! on the solution curv. 0157 //! ParArg is the intrinsic parameter of the point PntSol 0158 //! on the argument curv. 0159 //! It raises NotDone if the construction algorithm 0160 //! didn't succeed. 0161 Standard_EXPORT void Tangency1 (Standard_Real& ParSol, Standard_Real& ParArg, gp_Pnt2d& PntSol) const; 0162 0163 //! Returns information about the tangency point between 0164 //! the result and the second argument. 0165 //! ParSol is the intrinsic parameter of the point PntSol 0166 //! on the solution curv. 0167 //! ParArg is the intrinsic parameter of the point PntSol 0168 //! on the argument curv. 0169 //! It raises NotDone if the construction algorithm 0170 //! didn't succeed. 0171 Standard_EXPORT void Tangency2 (Standard_Real& ParSol, Standard_Real& ParArg, gp_Pnt2d& PntSol) const; 0172 0173 //! Returns information about the center (on the curv) of the 0174 //! result and the third argument. 0175 //! It raises NotDone if the construction algorithm 0176 //! didn't succeed. 0177 Standard_EXPORT void CenterOn3 (Standard_Real& ParArg, gp_Pnt2d& PntSol) const; 0178 0179 //! It raises NotDone if the construction algorithm 0180 //! didn't succeed. 0181 Standard_EXPORT Standard_Boolean IsTheSame1() const; 0182 0183 //! It raises NotDone if the construction algorithm 0184 //! didn't succeed. 0185 Standard_EXPORT Standard_Boolean IsTheSame2() const; 0186 0187 0188 0189 0190 protected: 0191 0192 0193 0194 0195 0196 private: 0197 0198 0199 0200 Standard_Boolean WellDone; 0201 gp_Circ2d cirsol; 0202 GccEnt_Position qualifier1; 0203 GccEnt_Position qualifier2; 0204 Standard_Boolean TheSame1; 0205 Standard_Boolean TheSame2; 0206 gp_Pnt2d pnttg1sol; 0207 gp_Pnt2d pnttg2sol; 0208 gp_Pnt2d pntcen; 0209 Standard_Real par1sol; 0210 Standard_Real par2sol; 0211 Standard_Real pararg1; 0212 Standard_Real pararg2; 0213 Standard_Real parcen3; 0214 0215 0216 }; 0217 0218 0219 0220 0221 0222 0223 0224 #endif // _Geom2dGcc_Circ2d2TanOnIter_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |