0024784: Move documentation in CDL files to proper location
[occt.git] / src / SelectBasics / SelectBasics_BasicTool.cdl
CommitLineData
b311480e 1-- Created on: 1995-06-08
2-- Created by: Robert COUBLANC
3-- Copyright (c) 1995-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 7--
d5f74e42 8-- This library is free software; you can redistribute it and/or modify it under
9-- the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 10-- by the Free Software Foundation, with special exception defined in the file
11-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12-- distribution for complete text of the license and disclaimer of any warranty.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17class BasicTool from SelectBasics
18
ff8178ef 19 ---Purpose: give Tools for sorting Selection results
20 -- (example : sensitive entities matching)
7fd59977 21
22uses
23 Pnt2d from gp,
24 Array1OfPnt2d from TColgp
25is
26
27 MatchSegments(myclass;
28 P1,P2 : Pnt2d from gp;
29 P3,P4 : Pnt2d from gp)
30 returns Boolean;
31 ---Purpose: returns True if The Segment {P1P2} is
32 -- intersected by the segment {P3P4}
33
34 MatchSegment(myclass;
35 pBegin,pEnd : Pnt2d from gp;
36 X,Y,aTol : Real;
37 DMin : in out Real) returns Boolean;
38 ---Level: Internal
39 ---Purpose: return True if Segment(pBegin, pEnd) is Selected
40
41 AutoInter(myclass; aPolyg2d: Array1OfPnt2d from TColgp)
42 returns Boolean;
43
44 MatchPolyg2d (myclass;
45 tabpoint: Array1OfPnt2d from TColgp;
46 X,Y,aTol: Real;
47 DMin : in out Real;
48 Rank : in out Integer) returns Boolean;
49 ---Level: Internal
50 ---Purpose: package method used to find if a point
51 -- is close enough to a polygon of 2D points
52 -- to be Used by Primitives like curves or faces...
53 -- Rank gives the index of the touched
54 -- segment
55
56
57
58
59end BasicTool;