7fd59977 |
1 | -- File: Point.cdl |
2 | -- Created: Thu Feb 21 10:31:01 1991 |
3 | -- Author: Isabelle GRIGNON |
4 | -- <isg@topsn3> |
5 | ---Copyright: Matra Datavision 1991 |
6 | |
7 | |
8 | generic class Point from Extrema (Pnt as any) |
9 | inherits Storable from Standard |
10 | ---Purpose: Definition of a point on curve. |
11 | |
12 | |
13 | is |
14 | Create returns Point; |
15 | ---Purpose: Creation of an indefinite point on curve. |
16 | |
17 | Create (U: Real; P: Pnt) returns Point; |
18 | ---Purpose: Creation of a point on curve with a parameter |
19 | -- value on the curve and a Pnt from gp. |
20 | |
21 | SetValues(me: in out; U: Real; P: Pnt) |
22 | ---Purpose: sets the point and parameter values. |
23 | is static; |
24 | |
25 | Value (me) returns Pnt |
26 | ---Purpose: Returns the point. |
27 | ---C++: return const& |
28 | ---C++: inline |
29 | is static; |
30 | |
31 | Parameter (me) returns Real |
32 | ---Purpose: Returns the parameter on the curve. |
33 | ---C++: inline |
34 | is static; |
35 | |
36 | fields |
37 | myU: Real; |
38 | myP: Pnt; |
39 | |
40 | end Point; |