File indexing completed on 2026-09-13 09:17:00
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
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