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 #include <BOPCol_Box2DBndTree.hxx>
21 //=======================================================================
24 //=======================================================================
25 BOPCol_Box2DBndTreeSelector::BOPCol_Box2DBndTreeSelector()
28 //=======================================================================
31 //=======================================================================
32 BOPCol_Box2DBndTreeSelector::~BOPCol_Box2DBndTreeSelector()
35 //=======================================================================
38 //=======================================================================
39 Standard_Boolean BOPCol_Box2DBndTreeSelector::Reject
40 (const Bnd_Box2d& aBox2D) const
42 return myBox2D.IsOut(aBox2D);
44 //=======================================================================
47 //=======================================================================
48 Standard_Boolean BOPCol_Box2DBndTreeSelector::Accept
49 (const Standard_Integer& aIndex)
51 Standard_Boolean bRet=Standard_False;
53 myIndices.Append(aIndex);
58 //=======================================================================
61 //=======================================================================
62 void BOPCol_Box2DBndTreeSelector::SetBox(const Bnd_Box2d& aBox2D)
66 //=======================================================================
69 //=======================================================================
70 void BOPCol_Box2DBndTreeSelector::Clear()
74 //=======================================================================
77 //=======================================================================
78 const BOPCol_ListOfInteger& BOPCol_Box2DBndTreeSelector::Indices() const