Test for 0022778: Bug in BRepMesh
[occt.git] / src / SelectBasics / SelectBasics_SortAlgo.cdl
CommitLineData
b311480e 1-- Created on: 1995-01-23
2-- Created by: Didier Piffault
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-- Full Copy of Select_Rectangle (Didier Piffault 94)
7fd59977 22
23
24class SortAlgo from SelectBasics
25
26 ---Purpose: Quickly selection of a rectangle in a set of rectangles
27
28
29uses Integer from Standard,
30 Real from Standard,
31 MapIteratorOfMapOfInteger from TColStd,
32 MapOfInteger from TColStd,
33 ListIteratorOfListOfInteger from TColStd,
34 Box2d from Bnd,
35 HArray1OfBox2d from Bnd,
36 BoundSortBox2d from Bnd
37
38
39is Create
40 ---Purpose: Empty rectangle selector.
41 returns SortAlgo from SelectBasics;
42
43 Create (ClippingRectangle : Box2d from Bnd;
44 sizeOfSensitiveArea : Real from Standard;
45 theRectangles : HArray1OfBox2d from Bnd)
46 ---Purpose: Creates a initialized selector.
47 returns SortAlgo from SelectBasics;
48
49 Initialize (me : in out;
50 ClippingRectangle : Box2d from Bnd;
51 sizeOfSensitiveArea : Real from Standard;
52 theRectangles : HArray1OfBox2d from Bnd)
53 ---Purpose: Clears and initializes the selector.
54 is static;
55
56
57 InitSelect (me : in out;
58 x, y : Real from Standard)
59 ---Purpose: Searchs the items on this position.
60 is static;
61
62
63 InitSelect (me : in out;
64 rect : Box2d from Bnd)
65 ---Purpose: Searchs the items in this rectangle.
66 is static;
67
68
69
70 More(me)
71 ---Purpose: Returns true if there is something selected.
72 returns Boolean from Standard is static;
73
74 Next(me : in out)
75 ---Purpose: Sets value on the next selected item.
76 is static;
77
78 Value(me)
79 ---Purpose: Returns the index of the selected rectangle.
80 returns Integer from Standard is static;
81
82
83fields clipRect : Box2d from Bnd;
84 sizeArea : Real from Standard;
85 sortedRect : BoundSortBox2d from Bnd;
86 myMap : MapOfInteger from TColStd;
87 curResult : MapIteratorOfMapOfInteger from TColStd;
88
89end SortAlgo;
90
91
92