File indexing completed on 2025-01-18 10:04:11
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_MapOfCurveSample.hxx>
0023 #include <IntTools_DataMapOfCurveSampleBox.hxx>
0024 #include <IntTools_ListOfCurveRangeSample.hxx>
0025
0026 class IntTools_CurveRangeSample;
0027 class Bnd_Box;
0028
0029 class IntTools_CurveRangeLocalizeData
0030 {
0031 public:
0032
0033 DEFINE_STANDARD_ALLOC
0034
0035
0036 Standard_EXPORT IntTools_CurveRangeLocalizeData(const Standard_Integer theNbSample, const Standard_Real theMinRange);
0037
0038 Standard_Integer GetNbSample() const { return myNbSampleC; }
0039
0040 Standard_Real 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 Standard_Boolean FindBox (const IntTools_CurveRangeSample& theRange, Bnd_Box& theBox) const;
0047
0048 Standard_EXPORT Standard_Boolean IsRangeOut (const IntTools_CurveRangeSample& theRange) const;
0049
0050 Standard_EXPORT void ListRangeOut (IntTools_ListOfCurveRangeSample& theList) const;
0051
0052 private:
0053
0054 Standard_Integer myNbSampleC;
0055 Standard_Real myMinRangeC;
0056 IntTools_MapOfCurveSample myMapRangeOut;
0057 IntTools_DataMapOfCurveSampleBox myMapBox;
0058
0059 };
0060
0061 #endif