0024428: Implementation of LGPL license
[occt.git] / src / MeshVS / MeshVS_SensitiveMesh.cdl
CommitLineData
b311480e 1-- Created on: 2007-01-25
2-- Created by: Sergey KOCHETKOV
973c2be1 3-- Copyright (c) 2007-2014 OPEN CASCADE SAS
b311480e 4--
973c2be1 5-- This file is part of Open CASCADE Technology software library.
b311480e 6--
973c2be1 7-- This library is free software; you can redistribute it and / or modify it
8-- under the terms of the GNU Lesser General Public version 2.1 as published
9-- by the Free Software Foundation, with special exception defined in the file
10-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11-- distribution for complete text of the license and disclaimer of any warranty.
b311480e 12--
973c2be1 13-- Alternatively, this file may be used under the terms of Open CASCADE
14-- commercial license or contractual agreement.
7fd59977 15
16class SensitiveMesh from MeshVS inherits SensitiveEntity from Select3D
17
18 ---Purpose: This class provides custom mesh sensitive entity used in advanced mesh selection.
19 ---It provides detection of mesh entities accordingly to activated selection mode
20
21uses
22 EntityOwner from SelectBasics,
23 Array1OfPnt2d from TColgp,
24 Box from Bnd,
25 Box2d from Bnd,
26 Location from TopLoc,
27 Lin from gp,
4269bd1b 28 ListOfBox2d from SelectBasics,
29 PickArgs from SelectBasics,
7fd59977 30 Projector from Select3D
31is
32
33 Create ( theOwner : EntityOwner from SelectBasics;
34 theMode : Integer = 0 )
35 returns mutable SensitiveMesh from MeshVS;
36
37 GetMode( me ) returns Integer from Standard;
38
39 GetConnected( me: mutable; aLocation : Location from TopLoc )
40 returns SensitiveEntity from Select3D is redefined;
4269bd1b 41
42 Matches (me : mutable;
43 thePickArgs : PickArgs from SelectBasics;
44 theMatchDMin, theMatchDepth : out Real from Standard)
45 returns Boolean is redefined;
46
7fd59977 47 Matches ( me: mutable; XMin, YMin, XMax, YMax : Real;
48 aTol : Real ) returns Boolean
49 is redefined;
50
51 Matches ( me: mutable; Polyline : Array1OfPnt2d from TColgp;
52 aBox : Box2d;
53 aTol : Real ) returns Boolean
54 is redefined;
55
56 Project ( me:mutable; aProjector : Projector from Select3D ) is redefined static;
57
58 Areas ( me: mutable ; boxes : in out ListOfBox2d from SelectBasics ) is redefined static;
59
60 ProjectOneCorner( me: mutable; aProjector : Projector from Select3D;
61 X,Y,Z : Real from Standard ) is private;
62
63fields
64
65 myMode : Integer from Standard;
66 mybox : Box from Bnd;
67 mybox2d : Box2d from Bnd;
68
69end SensitiveMesh;