Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1991-04-24
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_Lin2dTanOblIter_HeaderFile
0018 #define _Geom2dGcc_Lin2dTanOblIter_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 
0023 #include <gp_Lin2d.hxx>
0024 #include <GccEnt_Position.hxx>
0025 #include <gp_Pnt2d.hxx>
0026 class Geom2dGcc_QCurve;
0027 
0028 
0029 //! This class implements the algorithms used to
0030 //! create 2d line tangent to a curve QualifiedCurv and
0031 //! doing an angle Angle with a line TheLin.
0032 //! The angle must be in Radian.
0033 class Geom2dGcc_Lin2dTanOblIter 
0034 {
0035 public:
0036 
0037   DEFINE_STANDARD_ALLOC
0038 
0039   
0040   //! This class implements the algorithm used to
0041   //! create 2d line tangent to a curve and doing an
0042   //! angle Angle with the line TheLin.
0043   //! Angle must be in Radian.
0044   //! Param2 is the initial guess on the curve QualifiedCurv.
0045   //! Tolang is the angular tolerance.
0046   Standard_EXPORT Geom2dGcc_Lin2dTanOblIter(const Geom2dGcc_QCurve& Qualified1, const gp_Lin2d& TheLin, const Standard_Real Param1, const Standard_Real TolAng, const Standard_Real Angle = 0);
0047   
0048   //! This method returns true when there is a solution
0049   //! and false in the other cases.
0050   Standard_EXPORT Standard_Boolean IsDone() const;
0051   
0052   Standard_EXPORT gp_Lin2d ThisSolution() const;
0053   
0054   Standard_EXPORT void WhichQualifier (GccEnt_Position& Qualif1) const;
0055   
0056   Standard_EXPORT void Tangency1 (Standard_Real& ParSol, Standard_Real& ParArg, gp_Pnt2d& PntSol) const;
0057   
0058   Standard_EXPORT void Intersection2 (Standard_Real& ParSol, Standard_Real& ParArg, gp_Pnt2d& PntSol) const;
0059   
0060   Standard_EXPORT Standard_Boolean IsParallel2() const;
0061 
0062 
0063 
0064 
0065 protected:
0066 
0067 
0068 
0069 
0070 
0071 private:
0072 
0073 
0074 
0075   Standard_Boolean WellDone;
0076   Standard_Boolean Paral2;
0077   gp_Lin2d linsol;
0078   GccEnt_Position qualifier1;
0079   gp_Pnt2d pnttg1sol;
0080   gp_Pnt2d pntint2sol;
0081   Standard_Real par1sol;
0082   Standard_Real par2sol;
0083   Standard_Real pararg1;
0084   Standard_Real pararg2;
0085 
0086 
0087 };
0088 
0089 
0090 
0091 
0092 
0093 
0094 
0095 #endif // _Geom2dGcc_Lin2dTanOblIter_HeaderFile