Integration of OCCT 6.5.0 from SVN
[occt.git] / src / SelectBasics / SelectBasics_EntityOwner.cdl
1 -- File:        SelectBasics_EntityOwner.cdl
2 -- Created:     Thu Feb  9 14:58:14 1995
3 -- Author:      Mister rmi
4 --              <rmi@photon>
5 ---Copyright:    Matra Datavision 1995
6
7
8
9
10 deferred class EntityOwner from SelectBasics inherits TShared from MMgt
11
12         ---Purpose: defines an abstract owner of sensitive primitives.
13         --           Owners are typically used to establish a connection
14         --           between sensitive entities and high-level objects (e.g. presentations).
15         --
16         --          Priority : It's possible to give a priority:
17         --           the scale : [0-9] ; the default priority is 0
18         --           it allows the predominance of one selected object upon
19         --           another one if many objects are selected at the same time
20         --            
21         --              
22         --          example : Selection of shapes : the owners are 
23         --           selectable objects (presentations)
24         --          
25         --           a user can give vertex priority [3], edges [2] faces [1] shape [0],
26         --           so that if during selection one vertex one edge and one face are
27         --           simultaneously detected, the vertex will only be hilighted.
28
29
30 uses
31     Location    from TopLoc
32     
33 is
34
35     Initialize (aPriority: Integer = 0) ; 
36     ---Level: Public 
37
38     Set (me:mutable; aPriority :Integer) is static;
39     ---Level: Public 
40     ---Purpose: sets the selectable priority of the owner
41     ---C++: inline
42
43     Priority(me) returns Integer is static;
44     ---Level: Public 
45     ---C++: inline
46
47     -- Deferred methods dealing with locations.
48     -- Used in Select3D package.
49     HasLocation(me) returns Boolean from Standard is deferred;
50     
51     SetLocation(me:mutable; aLoc : Location from TopLoc) is deferred;
52     
53     ResetLocation(me:mutable) is deferred;
54     
55     Location(me) returns Location from TopLoc is deferred;
56     ---C++: return const&
57
58
59
60 fields
61
62     mypriority  : Integer is protected;
63
64 end EntityOwner;
65
66
67