b311480e |
1 | -- Created on: 1998-01-27 |
2 | -- Created by: Julia GERASIMOVA |
3 | -- Copyright (c) 1998-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 EqualDistancePresentation from DsgPrs |
24 | |
25 | ---Purpose: A framework to display equal distances between shapes and a given plane. |
26 | -- The distance is the length of a projection from the shape to the plane. |
27 | -- These distances are used to compare two shapes by this vector alone. |
28 | |
29 | uses |
30 | Presentation from Prs3d, |
31 | Drawer from Prs3d, |
32 | Pnt from gp, |
33 | Dir from gp, |
34 | Plane from Geom, |
35 | ArrowSide from DsgPrs, |
36 | Circ from gp |
37 | |
38 | is |
39 | Add( myclass; aPresentation : Presentation from Prs3d; |
40 | aDrawer : Drawer from Prs3d; |
41 | Point1 : Pnt from gp; |
42 | Point2 : Pnt from gp; |
43 | Point3 : Pnt from gp; |
44 | Point4 : Pnt from gp; |
45 | Plane : Plane from Geom ); |
46 | ---Purpose: Adds the points Point1, Point2, Point3 Point4, and the |
47 | -- plane Plane to the presentation object aPresentation. |
48 | -- The display attributes of these elements is defined by the attribute manager aDrawer. |
49 | -- The distance is the length of a projection from the shape to the plane. |
50 | -- These distances are used to compare two shapes by this vector alone. |
51 | |
52 | AddInterval( myclass; aPresentation : Presentation from Prs3d; |
53 | aDrawer : Drawer from Prs3d; |
54 | aPoint1 : Pnt from gp; |
55 | aPoint2 : Pnt from gp; |
56 | aDir : Dir from gp; |
57 | aPosition : Pnt from gp; |
58 | anArrowSide : ArrowSide from DsgPrs; |
59 | anExtremePnt1 : out Pnt from gp; |
60 | anExtremePnt2 : out Pnt from gp); |
61 | ---Purpose: is used for presentation of interval between |
62 | -- two lines or two points or between a line and a point. |
63 | |
64 | AddIntervalBetweenTwoArcs( myclass;aPresentation : Presentation from Prs3d; |
65 | aDrawer : Drawer from Prs3d; |
66 | aCircle1 : Circ from gp; |
67 | aCircle2 : Circ from gp; |
68 | aPoint1 : Pnt from gp; |
69 | aPoint2 : Pnt from gp; |
70 | aPoint3 : Pnt from gp; |
71 | aPoint4 : Pnt from gp; |
72 | anArrowSide : ArrowSide from DsgPrs); |
73 | ---Purpose:is used for presentation of interval between two arcs. |
74 | -- One of arcs can have a zero radius. |
75 | |
76 | end EqualDistancePresentation; |