0026738: Make Boolean operations safely treating arguments when running with fuzzy...
[occt.git] / src / IntTools / IntTools_CurveRangeLocalizeData.hxx
CommitLineData
42cf5bc1 1// Created on: 2005-10-14
2// Created by: Mikhail KLOKOV
3// Copyright (c) 2005-2014 OPEN CASCADE SAS
4//
5// This file is part of Open CASCADE Technology software library.
6//
7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License version 2.1 as published
9// by the Free Software Foundation, with special exception defined in the file
10// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11// distribution for complete text of the license and disclaimer of any warranty.
12//
13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
15
16#ifndef _IntTools_CurveRangeLocalizeData_HeaderFile
17#define _IntTools_CurveRangeLocalizeData_HeaderFile
18
19#include <Standard.hxx>
20#include <Standard_DefineAlloc.hxx>
21#include <Standard_Handle.hxx>
22
23#include <Standard_Integer.hxx>
24#include <Standard_Real.hxx>
25#include <IntTools_MapOfCurveSample.hxx>
26#include <IntTools_DataMapOfCurveSampleBox.hxx>
27#include <Standard_Boolean.hxx>
28#include <IntTools_ListOfCurveRangeSample.hxx>
29class IntTools_CurveRangeSample;
30class Bnd_Box;
31
32
33
34class IntTools_CurveRangeLocalizeData
35{
36public:
37
38 DEFINE_STANDARD_ALLOC
39
40
41 Standard_EXPORT IntTools_CurveRangeLocalizeData(const Standard_Integer theNbSample, const Standard_Real theMinRange);
42
43 Standard_Integer GetNbSample() const;
44
45 Standard_Real GetMinRange() const;
46
47 Standard_EXPORT void AddOutRange (const IntTools_CurveRangeSample& theRange);
48
49 Standard_EXPORT void AddBox (const IntTools_CurveRangeSample& theRange, const Bnd_Box& theBox);
50
51 Standard_EXPORT Standard_Boolean FindBox (const IntTools_CurveRangeSample& theRange, Bnd_Box& theBox) const;
52
53 Standard_EXPORT Standard_Boolean IsRangeOut (const IntTools_CurveRangeSample& theRange) const;
54
55 Standard_EXPORT void ListRangeOut (IntTools_ListOfCurveRangeSample& theList) const;
56
57
58
59
60protected:
61
62
63
64
65
66private:
67
68
69
70 Standard_Integer myNbSampleC;
71 Standard_Real myMinRangeC;
72 IntTools_MapOfCurveSample myMapRangeOut;
73 IntTools_DataMapOfCurveSampleBox myMapBox;
74
75
76};
77
78
79#include <IntTools_CurveRangeLocalizeData.lxx>
80
81
82
83
84
85#endif // _IntTools_CurveRangeLocalizeData_HeaderFile