1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File: NMTDS_BoxBndTree.cxx
21 // Created: Tue Oct 17 13:04:11 2006
22 // Author: Peter KURNEV
26 #include <NMTDS_BoxBndTree.hxx>
27 //=======================================================================
30 //=======================================================================
31 NMTDS_BoxBndTreeSelector::NMTDS_BoxBndTreeSelector()
34 //=======================================================================
37 //=======================================================================
38 NMTDS_BoxBndTreeSelector::~NMTDS_BoxBndTreeSelector()
41 //=======================================================================
44 //=======================================================================
45 Standard_Boolean NMTDS_BoxBndTreeSelector::Reject (const Bnd_Box& aBox) const
47 Standard_Boolean bRet;
49 bRet=myBox.IsOut(aBox);
52 //=======================================================================
55 //=======================================================================
56 Standard_Boolean NMTDS_BoxBndTreeSelector::Accept (const Standard_Integer& aIndex)
58 Standard_Boolean bRet=Standard_False;
60 if (myFence.Add(aIndex)) {
61 myIndices.Append(aIndex);
66 //=======================================================================
69 //=======================================================================
70 void NMTDS_BoxBndTreeSelector::SetBox(const Bnd_Box& aBox)
74 //=======================================================================
77 //=======================================================================
78 void NMTDS_BoxBndTreeSelector::Clear()
83 //=======================================================================
86 //=======================================================================
87 const TColStd_ListOfInteger& NMTDS_BoxBndTreeSelector::Indices() const