b311480e |
1 | -- Created on: 1994-01-17 |
2 | -- Created by: Modelistation |
3 | -- Copyright (c) 1994-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 | |
a6eb515f |
22 | class PlaneAspect from Prs3d inherits BasicAspect from Prs3d |
7fd59977 |
23 | ---Purpose: A framework to define the display of planes. |
24 | uses |
25 | |
26 | LineAspect from Prs3d, |
27 | Length from Quantity, |
28 | PlaneAngle from Quantity |
29 | |
30 | is |
31 | |
32 | Create returns mutable PlaneAspect from Prs3d; |
33 | ---Purpose: Constructs an empty framework for the display of planes. |
34 | EdgesAspect(me) returns mutable LineAspect from Prs3d; |
35 | |
36 | ---Purpose: Returns the attributes of displayed edges involved in the presentation of planes. |
37 | |
38 | IsoAspect(me) returns mutable LineAspect from Prs3d; |
39 | ---Purpose: Returns the attributes of displayed isoparameters involved in the presentation of planes. |
40 | |
41 | ArrowAspect(me) returns mutable LineAspect from Prs3d; |
42 | ---Purpose: Returns the settings for displaying an arrow. |
43 | SetArrowsLength(me:mutable; L : Length from Quantity); |
44 | |
45 | |
46 | ArrowsLength(me) returns Length from Quantity; |
47 | --- Purpose: Returns the length of the arrow shaft used in the display of arrows. |
48 | |
49 | SetArrowsSize(me:mutable; L : Length from Quantity); |
50 | ---Purpose: Sets the angle of the arrowhead used in the display of planes. |
51 | |
52 | ArrowsSize(me) returns Length from Quantity; |
53 | ---Purpose: Returns the size of arrows used in the display of planes. |
54 | |
55 | SetArrowsAngle(me:mutable; ang : PlaneAngle from Quantity); |
56 | ---Purpose: Sets the angle of the arrowhead used in the display |
57 | -- of arrows involved in the presentation of planes. |
58 | |
59 | ArrowsAngle(me) returns PlaneAngle from Quantity; |
60 | ---Purpose: Returns the angle of the arrowhead used in the |
61 | -- display of arrows involved in the presentation of planes. |
62 | |
63 | SetDisplayCenterArrow(me:mutable ; draw: Boolean from Standard); |
64 | ---Purpose: Sets the display attributes defined in DisplayCenterArrow to active. |
65 | |
66 | DisplayCenterArrow(me) returns Boolean from Standard; |
67 | ---Purpose: Returns true if the display of center arrows is allowed. |
68 | SetDisplayEdgesArrows(me:mutable ; draw: Boolean from Standard); |
69 | ---Purpose: Sets the display attributes defined in DisplayEdgesArrows to active. |
70 | |
71 | DisplayEdgesArrows(me) returns Boolean from Standard; |
72 | |
73 | --- Purpose: Returns true if the display of edge arrows is allowed. |
74 | SetDisplayEdges(me:mutable ; draw: Boolean from Standard); |
75 | DisplayEdges(me) returns Boolean from Standard; |
76 | |
77 | SetDisplayIso(me:mutable ; draw: Boolean from Standard); |
78 | ---Purpose: Sets the display attributes defined in DisplayIso to active. |
79 | |
80 | DisplayIso(me) returns Boolean from Standard; |
81 | --- Purpose: Returns true if the display of isoparameters is allowed. |
82 | SetPlaneLength(me:mutable; LX,LY: Length from Quantity); |
83 | PlaneXLength(me) returns Length from Quantity; |
84 | --- Purpose: Returns the length of the x axis used in the display of planes. |
85 | |
86 | PlaneYLength(me) returns Length from Quantity; |
87 | ---Purpose: Returns the length of the y axis used in the display of planes. |
88 | SetIsoDistance(me:mutable; L: Length from Quantity); |
89 | ---Purpose: Sets the distance L between isoparameters used in the display of planes. |
90 | IsoDistance(me) returns Length from Quantity; |
91 | ---Purpose: Returns the distance between isoparameters used in the display of planes. |
92 | |
93 | fields |
94 | |
95 | myEdgesAspect: LineAspect from Prs3d; |
96 | myIsoAspect: LineAspect from Prs3d; |
97 | myArrowAspect: LineAspect from Prs3d; |
98 | myArrowsLength: Length from Quantity; |
99 | myArrowsSize: Length from Quantity; |
100 | myArrowsAngle: PlaneAngle from Quantity; |
101 | myDrawCenterArrow: Boolean from Standard; |
102 | myDrawEdgesArrows: Boolean from Standard; |
103 | myDrawEdges: Boolean from Standard; |
104 | myDrawIso: Boolean from Standard; |
105 | myPlaneXLength : Length from Quantity; |
106 | myPlaneYLength : Length from Quantity; |
107 | myIsoDistance: Length from Quantity; |
108 | |
109 | end PlaneAspect from Prs3d; |
110 | |