b311480e |
1 | -- Created on: 1996-03-19 |
2 | -- Created by: Flore Lantheaume |
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 | |
22 | |
23 | class Chamf2dPresentation from DsgPrs |
24 | |
25 | ---Purpose: Framework for display of 2D chamfers. |
26 | |
27 | uses |
28 | |
29 | Presentation from Prs3d, |
30 | Drawer from Prs3d, |
31 | Pnt from gp, |
32 | ArrowSide from DsgPrs, |
33 | ExtendedString from TCollection |
34 | |
35 | |
36 | is |
37 | |
38 | Add(myclass; |
39 | aPresentation: Presentation from Prs3d; |
40 | aDrawer: Drawer from Prs3d; |
41 | aPntAttach : Pnt from gp; |
42 | aPntEnd : Pnt from gp; |
43 | aText : ExtendedString from TCollection); |
44 | |
45 | ---Purpose: Defines the display of elements showing 2D chamfers on shapes. |
46 | -- These include the text aText, the point of attachment, |
47 | -- aPntAttach and the end point aPntEnd. |
48 | -- These arguments are added to the presentation |
49 | -- object aPresentation. Their display attributes are |
50 | -- defined by the attribute manager aDrawer. |
51 | |
52 | |
53 | Add(myclass; |
54 | aPresentation: Presentation from Prs3d; |
55 | aDrawer: Drawer from Prs3d; |
56 | aPntAttach : Pnt from gp; |
57 | aPntEnd : Pnt from gp; |
58 | aText : ExtendedString from TCollection; |
59 | ArrowSide : ArrowSide from DsgPrs); |
60 | |
61 | ---Purpose: Defines the display of texts, symbols and icons used |
62 | -- to present 2D chamfers. |
63 | -- These include the text aText, the point of attachment, |
64 | -- aPntAttach and the end point aPntEnd. |
65 | -- These arguments are added to the presentation |
66 | -- object aPresentation. Their display attributes are |
67 | -- defined by the attribute manager aDrawer. The arrow |
68 | -- at the point of attachment has a display defined by a |
69 | -- value of the enumeration DsgPrs_Arrowside. |
70 | |
71 | end Chamf2dPresentation; |