0023510: Integration of test grid "vis" into the new testing system
[occt.git] / src / Select2D / Select2D_SensitiveEntity.cdl
CommitLineData
b311480e 1-- Created on: 1995-03-10
2-- Created by: Mister rmi
3-- Copyright (c) 1995-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-- Modified by rob (18/10/96) : add methods to store a constant sensitivity
7fd59977 22
23
24
25deferred class SensitiveEntity from Select2D inherits SensitiveEntity from SelectBasics
26
27 ---Purpose: A framework to define what all sensitive 2D entities have in common.
28 -- This framework can be used to create new 2D sensitive entities.
29
30uses
31 EntityOwner from SelectBasics,
32 Array1OfPnt2d from TColgp,
33 Box2d from Bnd,
34 Projector from Select2D
35
36raises
37 NotImplemented from Standard
38
39is
40
41 Initialize(anOwnerId: EntityOwner from SelectBasics);
42
43 NeedsConversion (me) returns Boolean is virtual;
44 ---Purpose: returns Standard_False unless if redefined...
45 ---Level: Public
46 ---C++: inline
47
48 Convert(me:mutable;aProjector: Projector from Select2D) is virtual;
49 ---Purpose: Processes the projection of the sensitive primitives in
50 -- the active view. This must be performed before the selection action.
51 -- This function must be implemented in daughter classes.
52
53 MaxBoxes(me) returns Integer is virtual;
54 ---Purpose: Returns the maximum number of boxes.
55
56
57 SetOwnTolerance(me:mutable; aValue : Real from Standard) ;
58 ---Purpose: Sets and stores a tolerance value in the argument
59 -- aTol of the function Matches inherited from SelectBasics_SensitiveEntity.
60
61 UnsetOwnTolerance(me:mutable);
62 ---Purpose: Removes the in the argument aTol of the function
63 -- Matches inherited from SelectBasics_SensitiveEntity.
64
65 HasOwnTolerance(me) returns Boolean from Standard;
66 ---Purpose: Returns true if the entity has a setting for the
67 -- argument aTol of the function Matches inherited
68 -- from SelectBasics_SensitiveEntity.
69
70
71 OwnTolerance(me) returns Real from Standard;
72 ---Purpose: Returns the tolerance value in the argument aTol of
73 -- the function Matches inherited from SelectBasics_SensitiveEntity.
74
75 Is3D(me) returns Boolean from Standard is redefined static;
76 --- Purpose: Returns true if this object can provide 3D information.
77
78 Matches (me :mutable;
79 Polyline:Array1OfPnt2d from TColgp;
80 aBox:Box2d from Bnd;
81 aTol: Real from Standard)
82 returns Boolean from Standard is redefined virtual;
83 ---Purpose: Free contur selection for 2d is not defined
84
85
86fields
87
88 myOwnTolerance : Real from Standard is protected;
89
90end SensitiveEntity;