1 // Created by: Peter KURNEV
2 // Copyright (c) 2010-2014 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
7 // This file is part of Open CASCADE Technology software library.
9 // This library is free software; you can redistribute it and / or modify it
10 // under the terms of the GNU Lesser General Public version 2.1 as published
11 // by the Free Software Foundation, with special exception defined in the file
12 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
13 // distribution for complete text of the license and disclaimer of any warranty.
15 // Alternatively, this file may be used under the terms of Open CASCADE
16 // commercial license or contractual agreement.
18 #ifndef NMTDS_BoxBndTree_HeaderFile
19 #define NMTDS_BoxBndTree_HeaderFile
21 #include <NCollection_UBTree.hxx>
22 #include <Bnd_Box.hxx>
23 #include <BOPCol_ListOfInteger.hxx>
25 * The instantiation of the algorithm of unbalanced binary tree
26 * of overlapped bounding boxes.
29 typedef NCollection_UBTree <Standard_Integer , Bnd_Box> BOPCol_BoxBndTree;
31 class BOPCol_BoxBndTreeSelector : public BOPCol_BoxBndTree::Selector {
33 Standard_EXPORT BOPCol_BoxBndTreeSelector();
34 Standard_EXPORT virtual Standard_Boolean Reject(const Bnd_Box&) const;
35 Standard_EXPORT virtual Standard_Boolean Accept(const Standard_Integer &);
36 Standard_EXPORT virtual ~BOPCol_BoxBndTreeSelector();
38 Standard_EXPORT void Clear();
39 Standard_EXPORT void SetBox(const Bnd_Box&);
40 Standard_EXPORT const BOPCol_ListOfInteger& Indices() const;
44 BOPCol_ListOfInteger myIndices;