0022627: Change OCCT memory management defaults
[occt.git] / src / AIS / AIS_DimensionOwner.cdl
CommitLineData
7fd59977 1-- File: AIS_DimensionOwner.cdl
2-- Created: Thu Dec 5 17:04:35 1996
3-- Author: Odile Olivier
4-- <odl@sacadox.paris1.matra-dtv.fr>
5---Copyright: Matra Datavision 1996
6
7class DimensionOwner from AIS inherits EntityOwner from SelectMgr
8
9 ---Purpose: The owner is the entity which makes it possible to link
10 -- the sensitive primitives and the reference shapes that
11 -- you want to detect. It stocks the various pieces of
12 -- information which make it possible to find objects. An
13 -- owner has a priority which you can modulate, so as to
14 -- make one entity more selectable than another. You
15 -- might want to make edges more selectable than
16 -- faces, for example. In that case, you could attribute sa
17 -- higher priority to the one compared to the other. An
18 -- edge, could have priority 5, for example, and a face,
19 -- priority 4. The default priority is 5.
20
21uses
22
23 SelectableObject from SelectMgr,
24 Shape from TopoDS
25
26is
27
28 Create ( aSO : SelectableObject;
29 aPriority : Integer from Standard =0)
30 returns mutable DimensionOwner from AIS;
31 ---Purpose:
32 -- Initializes the dimension owner, aSO, and attributes it
33 -- the priority, aPriority.
34
35 SetShape(me : mutable; aShape : Shape from TopoDS);
36 ---C++: inline
37 ---Purpose:
38 -- Constructs the reference shape owner aShape for
39 -- presentation primitives.
40
41 FixedShape(me)
42 ---C++: return const &
43 ---C++: inline
44 ---Purpose:
45 -- Returns the owner shape whose primitives we are concerned with.
46 returns Shape from TopoDS;
47
48
49fields
50
51 myFixedShape : Shape from TopoDS;
52
53end DimensionOwner;
54