0028966: Coding Rules - remove Adaptor2d_HCurve2d, Adaptor3d_HCurve and Adaptor3d_HSu...
[occt.git] / src / GeomInt / GeomInt_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfWLApprox.hxx
1 // Created on: 1995-01-27
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1995-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _GeomInt_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfWLApprox_HeaderFile
18 #define _GeomInt_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfWLApprox_HeaderFile
19
20 #include <Adaptor3d_Surface.hxx>
21 #include <gp_Pnt.hxx>
22 #include <gp_Vec.hxx>
23 #include <IntImp_ConstIsoparametric.hxx>
24 #include <math_FunctionSetWithDerivatives.hxx>
25 #include <math_Vector.hxx>
26 #include <TColStd_Array1OfReal.hxx>
27 #include <gp_Dir.hxx>
28 #include <gp_Dir2d.hxx>
29
30 class Adaptor3d_HSurfaceTool;
31 class math_Matrix;
32
33 class GeomInt_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfWLApprox  : public math_FunctionSetWithDerivatives
34 {
35 public:
36
37   DEFINE_STANDARD_ALLOC
38
39   Standard_EXPORT GeomInt_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfWLApprox(const Handle(Adaptor3d_Surface)& S1, const Handle(Adaptor3d_Surface)& S2);
40   
41   Standard_EXPORT Standard_Integer NbVariables() const;
42   
43   Standard_EXPORT Standard_Integer NbEquations() const;
44   
45   Standard_EXPORT Standard_Boolean Value (const math_Vector& X, math_Vector& F);
46   
47   Standard_EXPORT Standard_Boolean Derivatives (const math_Vector& X, math_Matrix& D);
48   
49   Standard_EXPORT Standard_Boolean Values (const math_Vector& X, math_Vector& F, math_Matrix& D);
50   
51   Standard_EXPORT void ComputeParameters (const IntImp_ConstIsoparametric ChoixIso, const TColStd_Array1OfReal& Param, math_Vector& UVap, math_Vector& BornInf, math_Vector& BornSup, math_Vector& Tolerance);
52   
53   //! returns somme des fi*fi
54     Standard_Real Root() const;
55   
56     gp_Pnt Point() const;
57   
58   Standard_EXPORT Standard_Boolean IsTangent (const math_Vector& UVap, TColStd_Array1OfReal& Param, IntImp_ConstIsoparametric& BestChoix);
59   
60     gp_Dir Direction() const;
61   
62     gp_Dir2d DirectionOnS1() const;
63   
64     gp_Dir2d DirectionOnS2() const;
65   
66     const Handle(Adaptor3d_Surface)& AuxillarSurface1() const;
67   
68     const Handle(Adaptor3d_Surface)& AuxillarSurface2() const;
69
70
71
72
73 protected:
74
75
76
77
78
79 private:
80
81
82
83   Standard_Address surf1;
84   Standard_Address surf2;
85   gp_Pnt pntsol1;
86   gp_Pnt pntsol2;
87   Standard_Real f[3];
88   Standard_Boolean compute;
89   Standard_Boolean tangent;
90   Standard_Real tgduv[4];
91   gp_Vec dpuv[4];
92   IntImp_ConstIsoparametric chxIso;
93   Standard_Real paramConst;
94   Standard_Real ua0;
95   Standard_Real va0;
96   Standard_Real ua1;
97   Standard_Real va1;
98   Standard_Real ub0;
99   Standard_Real vb0;
100   Standard_Real ub1;
101   Standard_Real vb1;
102   Standard_Real ures1;
103   Standard_Real ures2;
104   Standard_Real vres1;
105   Standard_Real vres2;
106
107
108 };
109
110 #define ThePSurface Handle(Adaptor3d_Surface)
111 #define ThePSurface_hxx <Adaptor3d_Surface.hxx>
112 #define ThePSurfaceTool Adaptor3d_HSurfaceTool
113 #define ThePSurfaceTool_hxx <Adaptor3d_HSurfaceTool.hxx>
114 #define IntImp_ZerParFunc GeomInt_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfWLApprox
115 #define IntImp_ZerParFunc_hxx <GeomInt_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfWLApprox.hxx>
116
117 #include <IntImp_ZerParFunc.lxx>
118
119 #undef ThePSurface
120 #undef ThePSurface_hxx
121 #undef ThePSurfaceTool
122 #undef ThePSurfaceTool_hxx
123 #undef IntImp_ZerParFunc
124 #undef IntImp_ZerParFunc_hxx
125
126
127
128
129 #endif // _GeomInt_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfWLApprox_HeaderFile