1 -- Created on: 1996-08-21
2 -- Created by: Jacques MINOT
3 -- Copyright (c) 1996-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
8 -- This library is free software; you can redistribute it and / or modify it
9 -- under the terms of the GNU Lesser General Public version 2.1 as published
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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 -- modified 12-january-98 by Sergey ZARITCHNY
19 class DiameterPresentation from DsgPrs
21 ---Purpose: A framework for displaying diameters in shapes.
25 Presentation from Prs3d,
29 ArrowSide from DsgPrs,
30 ExtendedString from TCollection
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.
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.
69 end DiameterPresentation;