b311480e |
1 | -- Created on: 1996-08-21 |
2 | -- Created by: Jacques MINOT |
3 | -- Copyright (c) 1996-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 | -- modified 12-january-98 by Sergey ZARITCHNY |
7fd59977 |
22 | |
23 | class DiameterPresentation from DsgPrs |
24 | |
25 | ---Purpose: A framework for displaying diameters in shapes. |
26 | |
27 | |
28 | uses |
29 | Presentation from Prs3d, |
30 | Pnt from gp, |
31 | Circ from gp, |
32 | Drawer from Prs3d, |
33 | ArrowSide from DsgPrs, |
34 | ExtendedString from TCollection |
35 | |
36 | is |
37 | Add( myclass; aPresentation : Presentation from Prs3d; |
38 | aDrawer : Drawer from Prs3d; |
39 | aText : ExtendedString from TCollection; |
40 | AttachmentPoint : Pnt from gp; |
41 | aCircle : Circ from gp; |
42 | ArrowSide: ArrowSide from DsgPrs; |
43 | IsDiamSymbol : Boolean from Standard ); |
44 | ---Purpose: Draws the diameter of the circle aCircle displayed in |
45 | -- the presentation aPresentation and with attributes |
46 | -- defined by the attribute manager aDrawer. The point |
47 | -- AttachmentPoint defines the point of contact |
48 | -- between the circle and the diameter presentation. |
49 | -- The value of the enumeration ArrowSide controls |
50 | -- whether arrows will be displayed at either or both |
51 | -- ends of the length. The text aText labels the diameter. |
52 | |
53 | |
54 | Add( myclass; aPresentation : Presentation from Prs3d; |
55 | aDrawer : Drawer from Prs3d; |
56 | aText : ExtendedString from TCollection; |
57 | AttachmentPoint : Pnt from gp; |
58 | aCircle : Circ from gp; |
59 | uFirst : Real from Standard; |
60 | uLast : Real from Standard; |
61 | ArrowSide : ArrowSide from DsgPrs; |
62 | IsDiamSymbol : Boolean from Standard); |
63 | ---Purpose: Draws the diameter of the arc anArc displayed in the |
64 | -- presentation aPresentation and with attributes |
65 | -- defined by the attribute manager aDrawer. The point |
66 | -- AttachmentPoint defines the point of contact |
67 | -- between the arc and the diameter presentation. The |
68 | -- value of the enumeration ArrowSide controls whether |
69 | -- arrows will be displayed at either or both ends of the |
70 | -- length. The parameters uFirst and uLast define the |
71 | -- first and last points of the arc. The text aText labels the diameter. |
72 | |
73 | end DiameterPresentation; |