b311480e |
1 | -- Created on: 1996-08-21 |
2 | -- Created by: Jacques MINOT |
3 | -- Copyright (c) 1996-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
7 | -- |
d5f74e42 |
8 | -- This library is free software; you can redistribute it and/or modify it under |
9 | -- the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
10 | -- by the Free Software Foundation, with special exception defined in the file |
11 | -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | -- distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
b311480e |
16 | |
7fd59977 |
17 | -- modified 12-january-98 by Sergey ZARITCHNY |
7fd59977 |
18 | |
19 | class DiameterPresentation from DsgPrs |
20 | |
21 | ---Purpose: A framework for displaying diameters in shapes. |
22 | |
23 | |
24 | uses |
25 | Presentation from Prs3d, |
26 | Pnt from gp, |
27 | Circ from gp, |
28 | Drawer from Prs3d, |
29 | ArrowSide from DsgPrs, |
30 | ExtendedString from TCollection |
31 | |
32 | is |
33 | Add( myclass; aPresentation : Presentation from Prs3d; |
34 | aDrawer : Drawer from Prs3d; |
35 | aText : ExtendedString from TCollection; |
36 | AttachmentPoint : Pnt from gp; |
37 | aCircle : Circ from gp; |
38 | ArrowSide: ArrowSide from DsgPrs; |
39 | IsDiamSymbol : Boolean from Standard ); |
40 | ---Purpose: Draws the diameter of the circle aCircle displayed in |
41 | -- the presentation aPresentation and with attributes |
42 | -- defined by the attribute manager aDrawer. The point |
43 | -- AttachmentPoint defines the point of contact |
44 | -- between the circle and the diameter presentation. |
45 | -- The value of the enumeration ArrowSide controls |
46 | -- whether arrows will be displayed at either or both |
47 | -- ends of the length. The text aText labels the diameter. |
48 | |
49 | |
50 | Add( myclass; aPresentation : Presentation from Prs3d; |
51 | aDrawer : Drawer from Prs3d; |
52 | aText : ExtendedString from TCollection; |
53 | AttachmentPoint : Pnt from gp; |
54 | aCircle : Circ from gp; |
55 | uFirst : Real from Standard; |
56 | uLast : Real from Standard; |
57 | ArrowSide : ArrowSide from DsgPrs; |
58 | IsDiamSymbol : Boolean from Standard); |
59 | ---Purpose: Draws the diameter of the arc anArc displayed in the |
60 | -- presentation aPresentation and with attributes |
61 | -- defined by the attribute manager aDrawer. The point |
62 | -- AttachmentPoint defines the point of contact |
63 | -- between the arc and the diameter presentation. The |
64 | -- value of the enumeration ArrowSide controls whether |
65 | -- arrows will be displayed at either or both ends of the |
66 | -- length. The parameters uFirst and uLast define the |
67 | -- first and last points of the arc. The text aText labels the diameter. |
68 | |
69 | end DiameterPresentation; |