Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-13 09:17:00

0001 // Created on: 2005-10-14
0002 // Created by: Mikhail KLOKOV
0003 // Copyright (c) 2005-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _IntTools_CurveRangeLocalizeData_HeaderFile
0017 #define _IntTools_CurveRangeLocalizeData_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022 #include <IntTools_CurveRangeSample.hxx>
0023 #include <NCollection_Map.hxx>
0024 #include <Bnd_Box.hxx>
0025 #include <NCollection_DataMap.hxx>
0026 #include <NCollection_List.hxx>
0027 
0028 class IntTools_CurveRangeSample;
0029 class Bnd_Box;
0030 
0031 class IntTools_CurveRangeLocalizeData
0032 {
0033 public:
0034   DEFINE_STANDARD_ALLOC
0035 
0036   Standard_EXPORT IntTools_CurveRangeLocalizeData(const int theNbSample, const double theMinRange);
0037 
0038   int GetNbSample() const { return myNbSampleC; }
0039 
0040   double GetMinRange() const { return myMinRangeC; }
0041 
0042   Standard_EXPORT void AddOutRange(const IntTools_CurveRangeSample& theRange);
0043 
0044   Standard_EXPORT void AddBox(const IntTools_CurveRangeSample& theRange, const Bnd_Box& theBox);
0045 
0046   Standard_EXPORT bool FindBox(const IntTools_CurveRangeSample& theRange, Bnd_Box& theBox) const;
0047 
0048   Standard_EXPORT bool IsRangeOut(const IntTools_CurveRangeSample& theRange) const;
0049 
0050   Standard_EXPORT void ListRangeOut(NCollection_List<IntTools_CurveRangeSample>& theList) const;
0051 
0052 private:
0053   int                                                     myNbSampleC;
0054   double                                                  myMinRangeC;
0055   NCollection_Map<IntTools_CurveRangeSample>              myMapRangeOut;
0056   NCollection_DataMap<IntTools_CurveRangeSample, Bnd_Box> myMapBox;
0057 };
0058 
0059 #endif // _IntTools_CurveRangeLocalizeData_HeaderFile