0024624: Lost word in license statement in source files
[occt.git] / src / BOPCol / BOPCol_BoxBndTree.cxx
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
6 //
7 // This file is part of Open CASCADE Technology software library.
8 //
9 // This library is free software; you can redistribute it and/or modify it under
10 // the terms of the GNU Lesser General Public License 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.
14 //
15 // Alternatively, this file may be used under the terms of Open CASCADE
16 // commercial license or contractual agreement.
17
18 #include <BOPCol_BoxBndTree.hxx>
19
20 //=======================================================================
21 //function : 
22 //purpose  : 
23 //=======================================================================
24 BOPCol_BoxBndTreeSelector::BOPCol_BoxBndTreeSelector()
25 {
26 }
27 //=======================================================================
28 //function : ~
29 //purpose  : 
30 //=======================================================================
31 BOPCol_BoxBndTreeSelector::~BOPCol_BoxBndTreeSelector()
32 {
33 }
34 //=======================================================================
35 //function : Reject
36 //purpose  : 
37 //=======================================================================
38   Standard_Boolean BOPCol_BoxBndTreeSelector::Reject (const Bnd_Box& aBox) const
39 {
40   return myBox.IsOut(aBox);
41 }
42 //=======================================================================
43 //function : Accept
44 //purpose  : 
45 //=======================================================================
46 Standard_Boolean BOPCol_BoxBndTreeSelector::Accept (const Standard_Integer& aIndex)
47 {
48   Standard_Boolean bRet=Standard_False;
49   //
50   myIndices.Append(aIndex);
51   bRet=!bRet;
52   return bRet;
53 }
54 //=======================================================================
55 //function : SetBox
56 //purpose  : 
57 //=======================================================================
58 void BOPCol_BoxBndTreeSelector::SetBox(const Bnd_Box& aBox)
59 {
60   myBox=aBox;
61 }
62 //=======================================================================
63 //function : Clear
64 //purpose  : 
65 //=======================================================================
66 void BOPCol_BoxBndTreeSelector::Clear()
67 {
68   myIndices.Clear();
69 }
70 //=======================================================================
71 //function : Indices
72 //purpose  : 
73 //=======================================================================
74 const BOPCol_ListOfInteger& BOPCol_BoxBndTreeSelector::Indices() const
75 {
76   return myIndices;
77 }