7fd59977 |
1 | -- File: PGeom_Ellipse.cdl |
2 | -- Created: Mon Feb 22 18:27:31 1993 |
3 | -- Author: Philippe DAUTRY |
4 | -- <fid@phobox> |
5 | -- Copyright: Matra Datavision 1993 |
6 | |
7 | |
8 | class Ellipse from PGeom inherits Conic from PGeom |
9 | |
10 | ---Purpose : Defines an ellipse in 3D space. |
11 | -- |
12 | ---See Also : Ellipse from Geom. |
13 | |
14 | uses Ax2 from gp |
15 | |
16 | is |
17 | |
18 | |
19 | Create returns mutable Ellipse from PGeom; |
20 | ---Purpose : Creates an ellipse with default values. |
21 | ---Level: Internal |
22 | |
23 | |
24 | Create (aPosition : Ax2 from gp; |
25 | aMajorRadius, aMinorRadius : Real from Standard) |
26 | returns mutable Ellipse from PGeom; |
27 | ---Purpose : Creates an Ellipse with <aPosition>, |
28 | -- <aMajorRadius> and <aMinorRadius> as field values. |
29 | -- The major radius of the ellipse is on the "XAxis" |
30 | -- and the minor radius of the ellipse is on the |
31 | -- "YAxis". |
32 | ---Level: Internal |
33 | |
34 | |
35 | MajorRadius (me : mutable; aMajorRadius : Real from Standard); |
36 | ---Purpose: Set the value of the field majorRadius with <aMajorRadius>. |
37 | ---Level: Internal |
38 | |
39 | |
40 | MajorRadius (me) returns Real from Standard; |
41 | ---Purpose: Returns the value of the field majorRadius. |
42 | ---Level: Internal |
43 | |
44 | |
45 | MinorRadius (me : mutable; aMinorRadius : Real from Standard); |
46 | ---Purpose: Set the value of the field minorRadius with <aMinorRadius>. |
47 | ---Level: Internal |
48 | |
49 | |
50 | MinorRadius (me) returns Real from Standard; |
51 | ---Purpose: Returns the value of the field minorRadius. |
52 | ---Level: Internal |
53 | |
54 | |
55 | fields |
56 | |
57 | majorRadius : Real from Standard; |
58 | minorRadius : Real from Standard; |
59 | |
60 | end; |
61 | |