0024133: Development of improvement of dimensions implementation; new length, radius...
[occt.git] / src / AIS / AIS_DimensionOwner.cdl
CommitLineData
b311480e 1-- Created on: 1996-12-05
2-- Created by: 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 DimensionOwner from AIS inherits EntityOwner from SelectMgr
23
a6eb515f 24 ---Purpose: The owner is the entity which makes it possible to link
25 -- the sensitive primitives and the reference shapes that
26 -- you want to detect. It stocks the various pieces of
27 -- information which make it possible to find objects. An
28 -- owner has a priority which you can modulate, so as to
29 -- make one entity more selectable than another. You
30 -- might want to make edges more selectable than
31 -- faces, for example. In that case, you could attribute sa
32 -- higher priority to the one compared to the other. An
33 -- edge, could have priority 5, for example, and a face,
34 -- priority 4. The default priority is 5.
7fd59977 35
36uses
37
a6eb515f 38 SelectableObject from SelectMgr,
39 PresentationManager from PrsMgr,
40 PresentationManager3d from PrsMgr,
41 NameOfColor from Quantity,
42 DimensionDisplayMode from AIS
7fd59977 43
44is
45
a6eb515f 46 Create (theSelObject : SelectableObject;
47 theDisplayMode : DimensionDisplayMode from AIS;
48 thePriority : Integer from Standard = 0)
7fd59977 49 returns mutable DimensionOwner from AIS;
a6eb515f 50 ---Purpose:
51 -- Initializes the dimension owner, theSO, and attributes it
52 -- the priority, thePriority.
7fd59977 53
a6eb515f 54 SetDisplayMode (me : mutable; theMode : DimensionDisplayMode from AIS);
55
56 DisplayMode (me)
57 returns DimensionDisplayMode from AIS;
58
59 HilightWithColor (me : mutable;
60 thePM : PresentationManager3d from PrsMgr;
61 theColor : NameOfColor from Quantity;
62 theMode : Integer from Standard = 0)
63 is redefined virtual;
64
65 IsHilighted (me;
66 thePM : PresentationManager from PrsMgr;
67 theMode : Integer from Standard =0)
68 returns Boolean from Standard is redefined virtual;
69 ---Purpose: Returns true if an object with the selection mode
70 -- aMode is highlighted in the presentation manager aPM.
71
72 Hilight(me : mutable;
73 thePM : PresentationManager from PrsMgr;
74 theMode : Integer from Standard =0) is redefined virtual;
75
76 Unhilight(me : mutable;
77 thePM : PresentationManager from PrsMgr;
78 theMode : Integer from Standard =0) is redefined virtual;
79 ---Purpose: Removes highlighting from the selected part of dimension.
7fd59977 80fields
81
a6eb515f 82 myDisplayMode : DimensionDisplayMode from AIS;
7fd59977 83
84end DimensionOwner;