7fd59977 |
1 | -- File: AppCont_FunctionTool2d.cdl |
2 | -- Created: Wed Sep 1 15:20:45 1993 |
3 | -- Author: Laurent PAINNOT |
4 | -- <lpa@nonox> |
5 | ---Copyright: Matra Datavision 1993 |
6 | |
7 | |
8 | class FunctionTool2d from AppCont |
9 | |
10 | |
11 | uses Function2d from AppCont, |
12 | Pnt from gp, |
13 | Pnt2d from gp, |
14 | Vec from gp, |
15 | Vec2d from gp, |
16 | Array1OfPnt from TColgp, |
17 | Array1OfPnt2d from TColgp, |
18 | Array1OfVec from TColgp, |
19 | Array1OfVec2d from TColgp |
20 | |
21 | is |
22 | |
23 | FirstParameter(myclass; C: Function2d from AppCont) returns Real; |
24 | ---Purpose: returns the first parameter of the Function. |
25 | |
26 | LastParameter(myclass; C: Function2d from AppCont) returns Real; |
27 | ---Purpose: returns the last parameter of the Function. |
28 | |
29 | NbP2d(myclass; C: Function2d from AppCont) returns Integer; |
30 | ---Purpose: Returns 1. (the approximation will be done only for one |
31 | -- function. |
32 | |
33 | |
34 | NbP3d(myclass; C: Function2d from AppCont) returns Integer; |
35 | ---Purpose: Returns 0. |
36 | |
37 | Value(myclass; C: Function2d from AppCont; |
38 | U: Real; tabPt: out Array1OfPnt2d); |
39 | ---Purpose: <tabP> is an array of only 1 element, the point value at |
40 | -- the parameter <U>. |
41 | |
42 | |
43 | D1(myclass; C: Function2d from AppCont; U: Real; tabV: out Array1OfVec2d) |
44 | returns Boolean; |
45 | ---Purpose: <tabV> is an array of only 1 element, the derivative |
46 | -- value at the parameter <U>. |
47 | |
48 | |
49 | ---------------------------------------------------------- |
50 | -- the following methods won t be called by the algorithms |
51 | -- but the description must exist in the tool. |
52 | ---------------------------------------------------------- |
53 | |
54 | |
55 | |
56 | Value(myclass; C: Function2d from AppCont;U: Real; |
57 | tabPt2d: out Array1OfPnt); |
58 | |
59 | Value(myclass; C: Function2d from AppCont; U: Real; |
60 | tabPt: out Array1OfPnt; |
61 | tabPt2d: out Array1OfPnt2d); |
62 | |
63 | |
64 | D1(myclass;C: Function2d from AppCont;U: Real; |
65 | tabV2d: out Array1OfVec) |
66 | returns Boolean; |
67 | |
68 | |
69 | D1(myclass; C: Function2d from AppCont; U: Real; |
70 | tabV: out Array1OfVec; |
71 | tabV2d: out Array1OfVec2d) |
72 | returns Boolean; |
73 | |
74 | |
75 | end FunctionTool2d; |
76 | |