b311480e |
1 | -- Created on: 1993-09-01 |
2 | -- Created by: Laurent PAINNOT |
3 | -- Copyright (c) 1993-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
7 | -- |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | class FunctionTool from AppCont |
ff8178ef |
18 | ---Purpose: This class is the inteface between the Function |
19 | -- class and the tool asked by LeastSquare. |
7fd59977 |
20 | |
21 | uses Function from AppCont, |
22 | Pnt from gp, |
23 | Pnt2d from gp, |
24 | Vec from gp, |
25 | Vec2d from gp, |
26 | Array1OfPnt from TColgp, |
27 | Array1OfPnt2d from TColgp, |
28 | Array1OfVec from TColgp, |
29 | Array1OfVec2d from TColgp |
30 | |
31 | is |
32 | |
33 | FirstParameter(myclass; C: Function from AppCont) returns Real; |
34 | ---Purpose: returns the first parameter of the Function. |
35 | |
36 | LastParameter(myclass; C: Function from AppCont) returns Real; |
37 | ---Purpose: returns the last parameter of the Function. |
38 | |
39 | NbP2d(myclass; C: Function from AppCont) returns Integer; |
40 | ---Purpose: Returns 0. |
41 | |
42 | |
43 | NbP3d(myclass; C: Function from AppCont) returns Integer; |
44 | ---Purpose: Returns 1. (the approximation will be done only for one |
45 | -- function. |
46 | |
47 | |
48 | Value(myclass; C: Function from AppCont; U: Real; tabPt: out Array1OfPnt); |
49 | ---Purpose: <tabP> is an array of only 1 element, the point value at |
50 | -- the parameter <U>. |
51 | |
52 | |
53 | D1(myclass; C: Function from AppCont; U: Real; tabV: out Array1OfVec) |
54 | returns Boolean; |
55 | ---Purpose: <tabV> is an array of only 1 element, the derivative |
56 | -- value at the parameter <U>. |
57 | |
58 | |
59 | ---------------------------------------------------------- |
60 | -- the following methods won t be called by the algorithms |
61 | -- but the description must exist in the tool. |
62 | ---------------------------------------------------------- |
63 | |
64 | |
65 | |
66 | Value(myclass; C: Function from AppCont;U: Real; |
67 | tabPt2d: out Array1OfPnt2d); |
68 | |
69 | Value(myclass; C: Function from AppCont; U: Real; |
70 | tabPt: out Array1OfPnt; |
71 | tabPt2d: out Array1OfPnt2d); |
72 | |
73 | |
74 | D1(myclass;C: Function from AppCont;U: Real; |
75 | tabV2d: out Array1OfVec2d) |
76 | returns Boolean; |
77 | |
78 | |
79 | D1(myclass; C: Function from AppCont; U: Real; |
80 | tabV: out Array1OfVec; |
81 | tabV2d: out Array1OfVec2d) |
82 | returns Boolean; |
83 | |
84 | |
85 | end FunctionTool; |
86 | |