Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1991-05-13
0002 // Created by: Laurent PAINNOT
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_FunctionTanCuCuCu_HeaderFile
0018 #define _Geom2dGcc_FunctionTanCuCuCu_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 
0023 #include <Geom2dAdaptor_Curve.hxx>
0024 #include <gp_Circ2d.hxx>
0025 #include <gp_Lin2d.hxx>
0026 #include <Geom2dGcc_Type1.hxx>
0027 #include <math_FunctionSetWithDerivatives.hxx>
0028 #include <math_Vector.hxx>
0029 class gp_Pnt2d;
0030 class gp_Vec2d;
0031 class math_Matrix;
0032 
0033 
0034 //! This abstract class describes a set on N Functions of
0035 //! M independent variables.
0036 class Geom2dGcc_FunctionTanCuCuCu  : public math_FunctionSetWithDerivatives
0037 {
0038 public:
0039 
0040   DEFINE_STANDARD_ALLOC
0041 
0042   
0043   Standard_EXPORT Geom2dGcc_FunctionTanCuCuCu(const Geom2dAdaptor_Curve& C1, const Geom2dAdaptor_Curve& C2, const Geom2dAdaptor_Curve& C3);
0044   
0045   Standard_EXPORT Geom2dGcc_FunctionTanCuCuCu(const gp_Circ2d& C1, const Geom2dAdaptor_Curve& C2, const Geom2dAdaptor_Curve& C3);
0046   
0047   Standard_EXPORT Geom2dGcc_FunctionTanCuCuCu(const gp_Circ2d& C1, const gp_Circ2d& C2, const Geom2dAdaptor_Curve& C3);
0048   
0049   Standard_EXPORT Geom2dGcc_FunctionTanCuCuCu(const gp_Circ2d& C1, const gp_Lin2d& L2, const Geom2dAdaptor_Curve& C3);
0050   
0051   Standard_EXPORT Geom2dGcc_FunctionTanCuCuCu(const gp_Lin2d& L1, const gp_Lin2d& L2, const Geom2dAdaptor_Curve& C3);
0052   
0053   Standard_EXPORT Geom2dGcc_FunctionTanCuCuCu(const gp_Lin2d& L1, const Geom2dAdaptor_Curve& C2, const Geom2dAdaptor_Curve& C3);
0054   
0055   Standard_EXPORT Geom2dGcc_FunctionTanCuCuCu(const gp_Circ2d& C1, const Geom2dAdaptor_Curve& C2, const gp_Pnt2d& P3);
0056   
0057   Standard_EXPORT Geom2dGcc_FunctionTanCuCuCu(const gp_Lin2d& L1, const Geom2dAdaptor_Curve& C2, const gp_Pnt2d& P3);
0058   
0059   Standard_EXPORT Geom2dGcc_FunctionTanCuCuCu(const Geom2dAdaptor_Curve& C1, const gp_Pnt2d& P2, const gp_Pnt2d& P3);
0060   
0061   Standard_EXPORT void InitDerivative (const math_Vector& X, gp_Pnt2d& Point1, gp_Pnt2d& Point2, gp_Pnt2d& Point3, gp_Vec2d& Tan1, gp_Vec2d& Tan2, gp_Vec2d& Tan3, gp_Vec2d& D21, gp_Vec2d& D22, gp_Vec2d& D23);
0062   
0063   //! Returns the number of variables of the function.
0064   Standard_EXPORT Standard_Integer NbVariables() const;
0065   
0066   //! Returns the number of equations of the function.
0067   Standard_EXPORT Standard_Integer NbEquations() const;
0068   
0069   //! Computes the values of the Functions for the variable <X>.
0070   Standard_EXPORT Standard_Boolean Value (const math_Vector& X, math_Vector& F);
0071   
0072   //! Returns the values of the derivatives for the variable <X>.
0073   Standard_EXPORT Standard_Boolean Derivatives (const math_Vector& X, math_Matrix& D);
0074   
0075   //! Returns the values of the functions and the derivatives
0076   //! for the variable <X>.
0077   Standard_EXPORT Standard_Boolean Values (const math_Vector& X, math_Vector& F, math_Matrix& D);
0078 
0079 
0080 
0081 
0082 protected:
0083 
0084 
0085 
0086 
0087 
0088 private:
0089 
0090 
0091 
0092   Geom2dAdaptor_Curve Curv1;
0093   Geom2dAdaptor_Curve Curv2;
0094   Geom2dAdaptor_Curve Curv3;
0095   gp_Circ2d Circ1;
0096   gp_Circ2d Circ2;
0097   gp_Lin2d Lin1;
0098   gp_Lin2d Lin2;
0099   Geom2dGcc_Type1 TheType;
0100 
0101 
0102 };
0103 
0104 
0105 
0106 
0107 
0108 
0109 
0110 #endif // _Geom2dGcc_FunctionTanCuCuCu_HeaderFile