0024166: Unable to create file with "Save" menu of voxeldemo Qt sample
[occt.git] / src / AIS / AIS_EqualRadiusRelation.cdl
CommitLineData
b311480e 1-- Created on: 1998-01-17
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
23class EqualRadiusRelation from AIS inherits Relation from AIS
24
25 ---Purpose:
26
27uses
28 Edge from TopoDS,
29 Plane from Geom,
30 PresentationManager3d from PrsMgr,
31 Presentation from Prs3d,
32 Projector from Prs3d,
33 Transformation from Geom,
7fd59977 34 Selection from SelectMgr,
35 Pnt from gp
36
37is
38 Create( aFirstEdge : Edge from TopoDS;
39 aSecondEdge : Edge from TopoDS;
40 aPlane : Plane from Geom )
41 ---Purpose: Creates equal relation of two arc's radiuses.
42 -- If one of edges is not in the given plane,
43 -- the presentation method projects it onto the plane.
44 returns mutable EqualRadiusRelation from AIS;
45
46-- Methods from PresentableObject
47
48 Compute( me : mutable;
49 aPresentationManager: PresentationManager3d from PrsMgr;
50 aPresentation : mutable Presentation from Prs3d;
51 aMode : Integer from Standard= 0 )
52 is redefined static private;
53
54 Compute( me : mutable;
55 aProjector : Projector from Prs3d;
56 aPresentation : mutable Presentation from Prs3d )
128cc8df 57 is redefined static private;
7fd59977 58
59 Compute(me : mutable;
60 aProjector : Projector from Prs3d;
61 aTrsf : Transformation from Geom;
62 aPresentation : mutable Presentation from Prs3d)
63 is redefined;
64 ---Purpose: computes the presentation according to a point of view
65 -- given by <aProjector>.
66 -- To be Used when the associated degenerated Presentations
67 -- have been transformed by <aTrsf> which is not a Pure
68 -- Translation. The HLR Prs can't be deducted automatically
69 -- WARNING :<aTrsf> must be applied
70 -- to the object to display before computation !!!
71
72-- Methods from SelectableObject
73
74 ComputeSelection( me : mutable;
75 aSelection : mutable Selection from SelectMgr;
76 aMode : Integer from Standard)
77 is private;
78
79 ComputeRadiusPosition(me: mutable) is private;
80
81fields
82
83 myFirstCenter : Pnt from gp;
84 mySecondCenter : Pnt from gp;
85 myFirstPoint : Pnt from gp;
86 mySecondPoint : Pnt from gp;
87
88end EqualRadiusRelation;