1 // Created by: Peter KURNEV
2 // Copyright (c) 2010-2012 OPEN CASCADE SAS
3 // Copyright (c) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
4 // Copyright (c) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT,
5 // EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
8 // This file is part of Open CASCADE Technology software library.
10 // This library is free software; you can redistribute it and/or modify it under
11 // the terms of the GNU Lesser General Public License version 2.1 as published
12 // by the Free Software Foundation, with special exception defined in the file
13 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
14 // distribution for complete text of the license and disclaimer of any warranty.
16 // Alternatively, this file may be used under the terms of Open CASCADE
17 // commercial license or contractual agreement.
19 #ifndef BOPCol_Box2DBndTree_HeaderFile
20 #define BOPCol_Box2DBndTree_HeaderFile
22 #include <NCollection_UBTree.hxx>
23 #include <Bnd_Box2d.hxx>
24 #include <BOPCol_ListOfInteger.hxx>
26 * The instantiation of the algorithm of unbalanced binary tree
27 * of overlapped bounding boxes 2D.
30 typedef NCollection_UBTree <Standard_Integer , Bnd_Box2d> BOPCol_Box2DBndTree;
32 class BOPCol_Box2DBndTreeSelector : public BOPCol_Box2DBndTree::Selector {
34 Standard_EXPORT BOPCol_Box2DBndTreeSelector();
35 Standard_EXPORT virtual Standard_Boolean Reject(const Bnd_Box2d&) const;
36 Standard_EXPORT virtual Standard_Boolean Accept(const Standard_Integer &);
37 Standard_EXPORT virtual ~BOPCol_Box2DBndTreeSelector();
39 Standard_EXPORT void Clear();
40 Standard_EXPORT void SetBox(const Bnd_Box2d&);
41 Standard_EXPORT const BOPCol_ListOfInteger& Indices() const;
45 BOPCol_ListOfInteger myIndices;