Integration of OCCT 6.5.0 from SVN
[occt.git] / src / MeshVS / MeshVS_SensitiveSegment.cdl
CommitLineData
7fd59977 1-- File: MeshVS_SensitiveSegment.cdl
2-- Created: Mon Sep 29 2003
3-- Author: Alexander SOLOVYOV and Sergey LITONIN
4---Copyright: Open CASCADE 2003
5
6class SensitiveSegment from MeshVS inherits SensitiveSegment from Select3D
7
8 ---Purpose: This class provides custom sensitive face, which will be selected if it center is in rectangle.
9
10uses
11 EntityOwner from SelectBasics,
12
13 Array1OfPnt from TColgp,
14
15 TypeOfSensitivity from Select3D,
16 Projector from Select3D,
17
18 Pnt from gp,
19 Pnt2d from gp,
20
21 Array1OfPnt2d from TColgp,
22
23 Box2d from Bnd
24
25is
26
27 Create ( theOwner : EntityOwner from SelectBasics;
28 theFirstP, theLastP : Pnt from gp;
29 theMaxRect : Integer = 1 ) returns mutable SensitiveSegment from MeshVS;
30
31 Project( me: mutable; aProjector : Projector from Select3D ) is redefined;
32
33 Matches ( me: mutable; XMin, YMin, XMax, YMax: Real;
34 aTol: Real ) returns Boolean is redefined;
35
36 Matches ( me: mutable; Polyline: Array1OfPnt2d from TColgp;
37 aBox: Box2d; aTol: Real ) returns Boolean is redefined;
38
39fields
40 myCentre : Pnt from gp is protected;
41 myProjCentre : Pnt2d from gp is protected;
42
43end SensitiveSegment;