0024624: Lost word in license statement in source files
[occt.git] / src / BOPCol / BOPCol_Box2DBndTree.cxx
... / ...
CommitLineData
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//
7//
8// This file is part of Open CASCADE Technology software library.
9//
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.
18
19#include <BOPCol_Box2DBndTree.hxx>
20
21//=======================================================================
22//function :
23//purpose :
24//=======================================================================
25BOPCol_Box2DBndTreeSelector::BOPCol_Box2DBndTreeSelector()
26{
27}
28//=======================================================================
29//function : ~
30//purpose :
31//=======================================================================
32BOPCol_Box2DBndTreeSelector::~BOPCol_Box2DBndTreeSelector()
33{
34}
35//=======================================================================
36//function : Reject
37//purpose :
38//=======================================================================
39Standard_Boolean BOPCol_Box2DBndTreeSelector::Reject
40 (const Bnd_Box2d& aBox2D) const
41{
42 return myBox2D.IsOut(aBox2D);
43}
44//=======================================================================
45//function : Accept
46//purpose :
47//=======================================================================
48Standard_Boolean BOPCol_Box2DBndTreeSelector::Accept
49 (const Standard_Integer& aIndex)
50{
51 Standard_Boolean bRet=Standard_False;
52 //
53 myIndices.Append(aIndex);
54 bRet=!bRet;
55 //}
56 return bRet;
57}
58//=======================================================================
59//function : SetBox
60//purpose :
61//=======================================================================
62void BOPCol_Box2DBndTreeSelector::SetBox(const Bnd_Box2d& aBox2D)
63{
64 myBox2D=aBox2D;
65}
66//=======================================================================
67//function : Clear
68//purpose :
69//=======================================================================
70void BOPCol_Box2DBndTreeSelector::Clear()
71{
72 myIndices.Clear();
73}
74//=======================================================================
75//function : Indices
76//purpose :
77//=======================================================================
78const BOPCol_ListOfInteger& BOPCol_Box2DBndTreeSelector::Indices() const
79{
80 return myIndices;
81}