7fd59977 |
1 | -- File: GeomFill_FunctionGuide.cdl |
2 | -- Created: Thu Jul 9 09:29:32 1998 |
3 | -- Author: Stephanie HUMEAU |
4 | -- <shu@sun17> |
5 | ---Copyright: Matra Datavision 1998 |
6 | |
7 | private class FunctionGuide from GeomFill |
8 | inherits FunctionSetWithDerivatives from math |
9 | |
10 | uses |
11 | |
12 | Vector from math, |
13 | Matrix from math, |
14 | Surface from Geom, |
15 | Curve from Geom, |
16 | HCurve from Adaptor3d, |
17 | Vec from gp, |
18 | XYZ from gp, |
19 | Pnt from gp, |
20 | SectionLaw from GeomFill |
21 | |
22 | is |
23 | |
24 | Create(S : SectionLaw from GeomFill; |
25 | Guide : HCurve from Adaptor3d; |
26 | ParamOnLaw : Real = 0.0) |
27 | returns FunctionGuide from GeomFill ; |
28 | |
29 | SetParam(me : in out; |
30 | Param : Real; |
31 | Centre : Pnt from gp; |
32 | Dir : XYZ from gp; |
33 | XDir : XYZ from gp) |
34 | is static; |
35 | |
36 | NbVariables(me) |
37 | ---Purpose: returns the number of variables of the function. |
38 | |
39 | returns Integer is redefined; |
40 | |
41 | |
42 | NbEquations(me) |
43 | ---Purpose: returns the number of equations of the function. |
44 | |
45 | returns Integer is redefined; |
46 | |
47 | |
48 | Value(me: in out; X: Vector; F: out Vector) |
49 | ---Purpose: computes the values <F> of the Functions for the |
50 | -- variable <X>. |
51 | -- Returns True if the computation was done successfully, |
52 | -- False otherwise. |
53 | |
54 | returns Boolean is redefined; |
55 | |
56 | |
57 | Derivatives(me: in out; X: Vector; D: out Matrix) |
58 | ---Purpose: returns the values <D> of the derivatives for the |
59 | -- variable <X>. |
60 | -- Returns True if the computation was done successfully, |
61 | -- False otherwise. |
62 | |
63 | returns Boolean is redefined; |
64 | |
65 | |
66 | Values(me: in out; X: Vector; F: out Vector; D: out Matrix) |
67 | ---Purpose: returns the values <F> of the functions and the derivatives |
68 | -- <D> for the variable <X>. |
69 | -- Returns True if the computation was done successfully, |
70 | -- False otherwise. |
71 | |
72 | returns Boolean is redefined; |
73 | |
74 | |
75 | DerivT(me : in out; |
76 | X : Vector from math; |
77 | DCentre: XYZ from gp; |
78 | DDir : XYZ from gp; |
79 | DFDT : out Vector) |
80 | ---Purpose: returns the values <F> of the T derivatives for |
81 | -- the parameter Param . |
82 | returns Boolean is static; |
83 | |
84 | DSDT(me; |
85 | U, V : Real; |
86 | DCentre: XYZ from gp; |
87 | DDir : XYZ from gp; |
88 | DSDT : out Vec from gp) |
89 | is private; |
90 | |
91 | Deriv2T(me: in out; |
92 | DCentre: XYZ from gp; |
93 | DDir : XYZ from gp; |
94 | DFDT, D2FT : out Vector) |
95 | ---Purpose: returns the values <F> of the T2 derivatives for |
96 | -- the parameter Param . |
97 | returns Boolean is static; |
98 | |
99 | |
100 | -- DerivTX(me: in out; |
101 | -- Param : Real from Standard; |
102 | -- Param0 : Real from Standard; |
103 | -- R : Vector from math; |
104 | -- X0 : Vector from math; |
105 | -- D: out Matrix) |
106 | ---Purpose: returns the values <D> of the TX derivatives for |
107 | -- the parameter Param . |
108 | -- returns Boolean is static; |
109 | |
110 | |
111 | -- Deriv2X(me: in out; |
112 | -- X : Vector from math; |
113 | -- T: out Tensor) |
114 | ---Purpose: returns the values <T> of the X2 derivatives for |
115 | -- the parameter Param . |
116 | -- returns Boolean is static; |
117 | |
118 | |
119 | |
120 | fields |
121 | TheGuide : HCurve from Adaptor3d; |
122 | TheLaw : SectionLaw from GeomFill; |
123 | isconst : Boolean; |
124 | TheCurve : Curve from Geom; |
125 | TheConst : Curve from Geom; |
126 | TheSurface: Surface from Geom; |
127 | First,Last: Real; |
128 | TheUonS : Real; |
129 | Centre : XYZ; |
130 | Dir : XYZ; |
131 | end FunctionGuide; |