00001 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE 00002 // 00003 // This library is free software; you can redistribute it and/or 00004 // modify it under the terms of the GNU Lesser General Public 00005 // License as published by the Free Software Foundation; either 00006 // version 2.1 of the License. 00007 // 00008 // This library is distributed in the hope that it will be useful, 00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 // Lesser General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU Lesser General Public 00014 // License along with this library; if not, write to the Free Software 00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00016 // 00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com 00018 // 00019 00020 // File: NMTDS_BndSphereTree.hxx 00021 // Created: 00022 // Author: Peter KURNEV 00023 // <pkv@irinox> 00024 // 00025 #ifndef NMTDS_BndSphereTree_HeaderFile 00026 #define NMTDS_BndSphereTree_HeaderFile 00027 00028 #include <NCollection_UBTree.hxx> 00029 #include <NMTDS_BndSphere.hxx> 00030 #include <TColStd_MapOfInteger.hxx> 00031 #include <TColStd_ListOfInteger.hxx> 00032 00033 typedef NCollection_UBTree <Standard_Integer , NMTDS_BndSphere> NMTDS_BndSphereTree; 00034 00035 class NMTDS_BndSphereTreeSelector : public NMTDS_BndSphereTree::Selector { 00036 public: 00037 Standard_EXPORT NMTDS_BndSphereTreeSelector(); 00038 Standard_EXPORT virtual Standard_Boolean Reject(const NMTDS_BndSphere&) const; 00039 Standard_EXPORT virtual Standard_Boolean Accept(const Standard_Integer &); 00040 Standard_EXPORT virtual ~NMTDS_BndSphereTreeSelector(); 00041 00042 Standard_EXPORT void Clear(); 00043 Standard_EXPORT void SetBox(const NMTDS_BndSphere&); 00044 Standard_EXPORT const TColStd_ListOfInteger& Indices() const; 00045 00046 protected: 00047 NMTDS_BndSphere myBox; 00048 TColStd_MapOfInteger myFence; 00049 TColStd_ListOfInteger myIndices; 00050 00051 }; 00052 00053 #endif