0023024: Update headers of OCCT files
[occt.git] / src / AIS / AIS_PerpendicularRelation.cdl
CommitLineData
b311480e 1-- Created on: 1996-12-05
2-- Created by: Jean-Pierre COMBE/Odile Olivier
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
22class PerpendicularRelation from AIS inherits Relation from AIS
23 ---Purpose: A framework to display constraints of perpendicularity
24 -- between two or more interactive datums. These
25 -- datums can be edges or faces.
26uses Shape from TopoDS,
27 Presentation from Prs3d,
28 PresentationManager3d from PrsMgr,
29 Selection from SelectMgr,
30 Pnt from gp,
31 Dir from gp,
32 Projector from Prs3d,
33 Transformation from Geom,
34 PresentationManager2d from PrsMgr,
35 GraphicObject from Graphic2d,
36 Plane from Geom
37
38is
39 Create (aFShape : Shape from TopoDS;
40 aSShape : Shape from TopoDS;
41 aPlane : Plane from Geom)
42 ---Purpose: Constructs an object to display constraints of
43 -- perpendicularity on shapes.
44 -- This object is defined by a first shape aFShape, a
45 -- second shape aSShape, and a plane aPlane.
46 -- aPlane is the plane of reference to show and test the
47 -- perpendicular relation between two shapes, at least
48 -- one of which has a revolved surface.
49 returns mutable PerpendicularRelation from AIS;
50
51 Create (aFShape : Shape from TopoDS;
52 aSShape : Shape from TopoDS)
53 ---Purpose: Constructs an object to display constraints of
54 -- perpendicularity on shapes.
55 -- This object is defined by a first shape aFShape and a
56 -- second shape aSShape.
57 returns mutable PerpendicularRelation from AIS;
58
59-- -- Methods from PresentableObject
60
61 Compute(me : mutable;
62 aPresentationManager: PresentationManager3d from PrsMgr;
63 aPresentation : mutable Presentation from Prs3d;
64 aMode : Integer from Standard= 0)
65 is redefined static private;
66
67 Compute(me:mutable;
68 aProjector: Projector from Prs3d;
69 aPresentation: mutable Presentation from Prs3d)
70 is redefined static private;
71
72 Compute(me:mutable;
73 aPresentationManager: PresentationManager2d from PrsMgr;
74 aPresentation: mutable GraphicObject from Graphic2d;
75 aMode: Integer from Standard = 0)
76 is redefined static private;
77
78 Compute(me : mutable;
79 aProjector : Projector from Prs3d;
80 aTrsf : Transformation from Geom;
81 aPresentation : mutable Presentation from Prs3d)
82 is redefined;
83 ---Purpose: computes the presentation according to a point of view
84 -- given by <aProjector>.
85 -- To be Used when the associated degenerated Presentations
86 -- have been transformed by <aTrsf> which is not a Pure
87 -- Translation. The HLR Prs can't be deducted automatically
88 -- WARNING :<aTrsf> must be applied
89 -- to the object to display before computation !!!
90
91-- Methods from SelectableObject
92
93 ComputeSelection(me : mutable;
94 aSelection : mutable Selection from SelectMgr;
95 aMode : Integer from Standard)is private;
96
97
98--
99-- Computation private methods
100--
101
102 ComputeTwoFacesPerpendicular(me: mutable;
103 aPresentation : mutable Presentation from Prs3d)
104 is private;
105
106 ComputeTwoEdgesPerpendicular(me: mutable;
107 aPresentation : mutable Presentation from Prs3d)
108 is private;
109
110
111fields
112
113 myFAttach : Pnt from gp;
114 mySAttach : Pnt from gp;
115
116end PerpendicularRelation;
117
118