0024428: Implementation of LGPL license
[occt.git] / src / BOPDS / BOPDS_BoxBndTree.hxx
CommitLineData
4e57c75e 1// Created by: Peter KURNEV
973c2be1 2// Copyright (c) 2010-2014 OPEN CASCADE SAS
4e57c75e 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//
973c2be1 7// This file is part of Open CASCADE Technology software library.
4e57c75e 8//
973c2be1 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.
4e57c75e 14//
973c2be1 15// Alternatively, this file may be used under the terms of Open CASCADE
16// commercial license or contractual agreement.
4e57c75e 17
18#ifndef NMTDS_BoxBndTree_HeaderFile
19#define NMTDS_BoxBndTree_HeaderFile
20
21#include <NCollection_UBTree.hxx>
22#include <Bnd_Box.hxx>
23#include <BOPCol_ListOfInteger.hxx>
24/**
25 * The instantiation of the algorithm of unbalanced binary tree
26 * of overlapped bounding boxes.
27 *
28*/
29typedef NCollection_UBTree <Standard_Integer , Bnd_Box> BOPDS_BoxBndTree;
30
31 class BOPDS_BoxBndTreeSelector : public BOPDS_BoxBndTree::Selector {
32 public:
33 Standard_EXPORT BOPDS_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 ~BOPDS_BoxBndTreeSelector();
37
38 Standard_EXPORT void Clear();
39 Standard_EXPORT void SetBox(const Bnd_Box&);
40 Standard_EXPORT const BOPCol_ListOfInteger& Indices() const;
41
42 protected:
43 Bnd_Box myBox;
44 BOPCol_ListOfInteger myIndices;
45
46 };
47
48#endif