b311480e |
1 | -- Created on: 2003-09-29 |
2 | -- Created by: Alexander SOLOVYOV and Sergey LITONIN |
3 | -- Copyright (c) 2003-2012 OPEN CASCADE SAS |
4 | -- |
5 | -- The content of this file is subject to the Open CASCADE Technology Public |
6 | -- License Version 6.5 (the "License"). You may not use the content of this file |
7 | -- except in compliance with the License. Please obtain a copy of the License |
8 | -- at http://www.opencascade.org and read it completely before using this file. |
9 | -- |
10 | -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
11 | -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
12 | -- |
13 | -- The Original Code and all software distributed under the License is |
14 | -- distributed on an "AS IS" basis, without warranty of any kind, and the |
15 | -- Initial Developer hereby disclaims all such warranties, including without |
16 | -- limitation, any warranties of merchantability, fitness for a particular |
17 | -- purpose or non-infringement. Please see the License for the specific terms |
18 | -- and conditions governing the rights and limitations under the License. |
19 | |
7fd59977 |
20 | |
21 | class SensitiveFace from MeshVS inherits SensitiveFace from Select3D |
22 | |
23 | ---Purpose: This class provides custom sensitive face, which will be selected if it center is in rectangle. |
24 | |
25 | uses |
26 | EntityOwner from SelectBasics, |
27 | |
28 | Array1OfPnt from TColgp, |
29 | |
30 | TypeOfSensitivity from Select3D, |
31 | Projector from Select3D, |
32 | |
33 | Pnt from gp, |
34 | Pnt2d from gp, |
35 | |
36 | Array1OfPnt2d from TColgp, |
37 | |
38 | Box2d from Bnd |
39 | |
40 | is |
41 | |
42 | Create ( theOwner : EntityOwner from SelectBasics; |
43 | thePoints : Array1OfPnt from TColgp; |
44 | theSensType : TypeOfSensitivity from Select3D = Select3D_TOS_INTERIOR ) |
45 | returns mutable SensitiveFace from MeshVS; |
46 | |
47 | Project( me: mutable; aProjector : Projector from Select3D ) is redefined; |
48 | |
49 | Matches ( me: mutable; XMin, YMin, XMax, YMax: Real; |
50 | aTol: Real ) returns Boolean is redefined; |
51 | |
52 | Matches ( me: mutable; Polyline: Array1OfPnt2d from TColgp; |
53 | aBox:Box2d; aTol: Real ) returns Boolean is redefined; |
54 | |
55 | fields |
56 | myCentre : Pnt from gp is protected; |
57 | myProjCentre : Pnt2d from gp is protected; |
58 | |
59 | end SensitiveFace; |