b311480e |
1 | -- Created on: 1993-06-03 |
2 | -- Created by: Jean-Louis FRENKEL |
3 | -- Copyright (c) 1993-1999 Matra Datavision |
4 | -- Copyright (c) 1999-2012 OPEN CASCADE SAS |
5 | -- |
6 | -- The content of this file is subject to the Open CASCADE Technology Public |
7 | -- License Version 6.5 (the "License"). You may not use the content of this file |
8 | -- except in compliance with the License. Please obtain a copy of the License |
9 | -- at http://www.opencascade.org and read it completely before using this file. |
10 | -- |
11 | -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
12 | -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
13 | -- |
14 | -- The Original Code and all software distributed under the License is |
15 | -- distributed on an "AS IS" basis, without warranty of any kind, and the |
16 | -- Initial Developer hereby disclaims all such warranties, including without |
17 | -- limitation, any warranties of merchantability, fitness for a particular |
18 | -- purpose or non-infringement. Please see the License for the specific terms |
19 | -- and conditions governing the rights and limitations under the License. |
20 | |
7fd59977 |
21 | |
22 | class LengthAspect from Prs3d inherits CompositeAspect from Prs3d |
23 | |
24 | ---Purpose: defines the attributes when drawing a Length Presentation. |
25 | uses |
26 | |
27 | AspectLine3d from Graphic3d, |
28 | ArrowAspect from Prs3d, |
29 | LineAspect from Prs3d, |
30 | TextAspect from Prs3d, |
31 | NameOfColor from Quantity, |
32 | TypeOfLine from Aspect, |
33 | PlaneAngle from Quantity |
34 | |
35 | is |
36 | |
37 | -- |
38 | -- Attributes for the lines. |
39 | -- |
40 | Create returns mutable LengthAspect from Prs3d; |
41 | --- Purpose: Constructs an empty framework to define the display of lengths. |
42 | |
43 | LineAspect(me) returns mutable LineAspect from Prs3d; |
44 | ---Purpose: Returns the settings for the display of lines used in presentation of lengths. |
45 | |
46 | SetLineAspect(me: mutable; anAspect: LineAspect from Prs3d); |
47 | ---Purpose: Sets the display attributes of lines used in presentation of lengths. |
48 | |
49 | Arrow1Aspect(me) returns mutable ArrowAspect from Prs3d is static; |
50 | --- Purpose: Returns the settings for displaying a right-pointing arrow. |
51 | |
52 | SetArrow1Aspect(me: mutable; anAspect: ArrowAspect from Prs3d) is static; |
53 | ---Purpose: Sets the display attributes of the first arrow used in presentation of lengths. |
54 | |
55 | Arrow2Aspect(me) returns mutable ArrowAspect from Prs3d is static; |
56 | --- Purpose: Returns the settings for displaying a left-pointing arrow. |
57 | |
58 | SetArrow2Aspect(me: mutable ; anAspect: ArrowAspect from Prs3d) is static; |
59 | ---Purpose: Sets the display attributes of the second arrow used in presentation of lengths. |
60 | |
61 | TextAspect(me) returns mutable TextAspect from Prs3d is static; |
62 | --- Purpose: Returns the settings for the display of text used in presentation of lengths. |
63 | |
64 | SetTextAspect(me:mutable; anAspect: TextAspect from Prs3d) is static; |
65 | ---Purpose: Sets the display attributes of text used in presentation of lengths. |
66 | |
67 | SetDrawFirstArrow(me: mutable; draw: Boolean from Standard) is static; |
68 | --- Purpose: Sets the DrawFirstArrow attributes to active. |
69 | |
70 | DrawFirstArrow(me) returns Boolean from Standard is static; |
71 | ---Purpose: Returns true if the first arrow can be drawn. |
72 | SetDrawSecondArrow(me: mutable; draw: Boolean from Standard) is static; |
73 | ---Purpose: Sets the DrawSecondArrow attributes to active. |
74 | |
75 | DrawSecondArrow(me) returns Boolean from Standard is static; |
8ca7beb8 |
76 | ---Purpose: Returns true if the second arrow can be drawn. |
7fd59977 |
77 | |
78 | fields |
79 | |
80 | myLineAspect: LineAspect from Prs3d; |
81 | myArrow1Aspect: ArrowAspect from Prs3d; |
82 | myArrow2Aspect: ArrowAspect from Prs3d; |
83 | myTextAspect: TextAspect from Prs3d; |
84 | myDrawFirstArrow: Boolean from Standard; |
85 | myDrawSecondArrow: Boolean from Standard; |
86 | |
87 | end LengthAspect from Prs3d; |