New compiler warnings (vc10 64-bit) fixed in BOPCol_TBB.hxx
[occt.git] / src / BOPCol / BOPCol_Box2DBndTree.hxx
CommitLineData
db8e4b9a 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
6//
db8e4b9a 7//
d5f74e42 8// This file is part of Open CASCADE Technology software library.
db8e4b9a 9//
d5f74e42 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.
15//
16// Alternatively, this file may be used under the terms of Open CASCADE
17// commercial license or contractual agreement.
db8e4b9a 18
19#ifndef BOPCol_Box2DBndTree_HeaderFile
20#define BOPCol_Box2DBndTree_HeaderFile
21
22#include <NCollection_UBTree.hxx>
23#include <Bnd_Box2d.hxx>
24#include <BOPCol_ListOfInteger.hxx>
25/**
26 * The instantiation of the algorithm of unbalanced binary tree
27 * of overlapped bounding boxes 2D.
28 *
29*/
30typedef NCollection_UBTree <Standard_Integer , Bnd_Box2d> BOPCol_Box2DBndTree;
31
32 class BOPCol_Box2DBndTreeSelector : public BOPCol_Box2DBndTree::Selector {
33 public:
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();
38
39 Standard_EXPORT void Clear();
40 Standard_EXPORT void SetBox(const Bnd_Box2d&);
41 Standard_EXPORT const BOPCol_ListOfInteger& Indices() const;
42
43 protected:
44 Bnd_Box2d myBox2D;
45 BOPCol_ListOfInteger myIndices;
46 };
47
48#endif