7fd59977 |
1 | -- File: Prs3d_LengthAspect.cdl |
2 | -- Created: Thu Jun 3 09:28:46 1993 |
3 | -- Author: Jean-Louis FRENKEL |
4 | -- <jlf@stylox> |
5 | ---Copyright: Matra Datavision 1993 |
6 | |
7 | class LengthAspect from Prs3d inherits CompositeAspect from Prs3d |
8 | |
9 | ---Purpose: defines the attributes when drawing a Length Presentation. |
10 | uses |
11 | |
12 | AspectLine3d from Graphic3d, |
13 | ArrowAspect from Prs3d, |
14 | LineAspect from Prs3d, |
15 | TextAspect from Prs3d, |
16 | NameOfColor from Quantity, |
17 | TypeOfLine from Aspect, |
18 | PlaneAngle from Quantity |
19 | |
20 | is |
21 | |
22 | -- |
23 | -- Attributes for the lines. |
24 | -- |
25 | Create returns mutable LengthAspect from Prs3d; |
26 | --- Purpose: Constructs an empty framework to define the display of lengths. |
27 | |
28 | LineAspect(me) returns mutable LineAspect from Prs3d; |
29 | ---Purpose: Returns the settings for the display of lines used in presentation of lengths. |
30 | |
31 | SetLineAspect(me: mutable; anAspect: LineAspect from Prs3d); |
32 | ---Purpose: Sets the display attributes of lines used in presentation of lengths. |
33 | |
34 | Arrow1Aspect(me) returns mutable ArrowAspect from Prs3d is static; |
35 | --- Purpose: Returns the settings for displaying a right-pointing arrow. |
36 | |
37 | SetArrow1Aspect(me: mutable; anAspect: ArrowAspect from Prs3d) is static; |
38 | ---Purpose: Sets the display attributes of the first arrow used in presentation of lengths. |
39 | |
40 | Arrow2Aspect(me) returns mutable ArrowAspect from Prs3d is static; |
41 | --- Purpose: Returns the settings for displaying a left-pointing arrow. |
42 | |
43 | SetArrow2Aspect(me: mutable ; anAspect: ArrowAspect from Prs3d) is static; |
44 | ---Purpose: Sets the display attributes of the second arrow used in presentation of lengths. |
45 | |
46 | TextAspect(me) returns mutable TextAspect from Prs3d is static; |
47 | --- Purpose: Returns the settings for the display of text used in presentation of lengths. |
48 | |
49 | SetTextAspect(me:mutable; anAspect: TextAspect from Prs3d) is static; |
50 | ---Purpose: Sets the display attributes of text used in presentation of lengths. |
51 | |
52 | SetDrawFirstArrow(me: mutable; draw: Boolean from Standard) is static; |
53 | --- Purpose: Sets the DrawFirstArrow attributes to active. |
54 | |
55 | DrawFirstArrow(me) returns Boolean from Standard is static; |
56 | ---Purpose: Returns true if the first arrow can be drawn. |
57 | SetDrawSecondArrow(me: mutable; draw: Boolean from Standard) is static; |
58 | ---Purpose: Sets the DrawSecondArrow attributes to active. |
59 | |
60 | DrawSecondArrow(me) returns Boolean from Standard is static; |
61 | ---Purpose: Returns true if the second arrow can be drawn. |
62 | Print(me; s: in out OStream from Standard) is static; |
63 | |
64 | fields |
65 | |
66 | myLineAspect: LineAspect from Prs3d; |
67 | myArrow1Aspect: ArrowAspect from Prs3d; |
68 | myArrow2Aspect: ArrowAspect from Prs3d; |
69 | myTextAspect: TextAspect from Prs3d; |
70 | myDrawFirstArrow: Boolean from Standard; |
71 | myDrawSecondArrow: Boolean from Standard; |
72 | |
73 | end LengthAspect from Prs3d; |