0028966: Coding Rules - remove Adaptor2d_HCurve2d, Adaptor3d_HCurve and Adaptor3d_HSu...
[occt.git] / src / GeomFill / GeomFill_FunctionDraft.hxx
1 // Created on: 1998-04-27
2 // Created by: Stephanie HUMEAU
3 // Copyright (c) 1998-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 _GeomFill_FunctionDraft_HeaderFile
18 #define _GeomFill_FunctionDraft_HeaderFile
19
20 #include <Adaptor3d_Surface.hxx>
21 #include <math_FunctionSetWithDerivatives.hxx>
22 #include <math_Vector.hxx>
23
24 class math_Matrix;
25 class gp_Vec;
26 class GeomFill_Tensor;
27
28
29
30 class GeomFill_FunctionDraft  : public math_FunctionSetWithDerivatives
31 {
32 public:
33
34   DEFINE_STANDARD_ALLOC
35
36   
37   Standard_EXPORT GeomFill_FunctionDraft(const Handle(Adaptor3d_Surface)& S, const Handle(Adaptor3d_Curve)& C);
38   
39   //! returns the number of variables of the function.
40   Standard_EXPORT virtual Standard_Integer NbVariables() const Standard_OVERRIDE;
41   
42   //! returns the number of equations of the function.
43   Standard_EXPORT virtual Standard_Integer NbEquations() const Standard_OVERRIDE;
44   
45   //! computes the values <F> of the Functions for the
46   //! variable <X>.
47   //! Returns True if the computation was done successfully,
48   //! False otherwise.
49   Standard_EXPORT virtual Standard_Boolean Value (const math_Vector& X, math_Vector& F) Standard_OVERRIDE;
50   
51   //! returns the values <D> of the derivatives for the
52   //! variable <X>.
53   //! Returns True if the computation was done successfully,
54   //! False otherwise.
55   Standard_EXPORT virtual Standard_Boolean Derivatives (const math_Vector& X, math_Matrix& D) Standard_OVERRIDE;
56   
57   //! returns the values <F> of the functions and the derivatives
58   //! <D> for the variable <X>.
59   //! Returns True if the computation was done successfully,
60   //! False otherwise.
61   Standard_EXPORT virtual Standard_Boolean Values (const math_Vector& X, math_Vector& F, math_Matrix& D) Standard_OVERRIDE;
62   
63   //! returns the values <F> of the T derivatives for
64   //! the parameter Param .
65   Standard_EXPORT Standard_Boolean DerivT (const Handle(Adaptor3d_Curve)& C, const Standard_Real Param, const Standard_Real W, const gp_Vec& dN, const Standard_Real teta, math_Vector& F);
66   
67   //! returns the values <F> of the T2 derivatives for
68   //! the parameter Param .
69   Standard_EXPORT Standard_Boolean Deriv2T (const Handle(Adaptor3d_Curve)& C, const Standard_Real Param, const Standard_Real W, const gp_Vec& d2N, const Standard_Real teta, math_Vector& F);
70   
71   //! returns the values <D> of  the TX derivatives for
72   //! the parameter Param .
73   Standard_EXPORT Standard_Boolean DerivTX (const gp_Vec& dN, const Standard_Real teta, math_Matrix& D);
74   
75   //! returns the values <T> of  the X2 derivatives for
76   //! the parameter Param .
77   Standard_EXPORT Standard_Boolean Deriv2X (const math_Vector& X, GeomFill_Tensor& T);
78
79
80
81
82 protected:
83
84
85
86
87
88 private:
89
90
91
92   Handle(Adaptor3d_Curve) TheCurve;
93   Handle(Adaptor3d_Surface) TheSurface;
94
95
96 };
97
98
99
100
101
102
103
104 #endif // _GeomFill_FunctionDraft_HeaderFile