1 // Created on: 2005-10-05
2 // Created by: Mikhail KLOKOV
3 // Copyright (c) 2005-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _IntTools_SurfaceRangeSample_HeaderFile
17 #define _IntTools_SurfaceRangeSample_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_DefineAlloc.hxx>
21 #include <Standard_Handle.hxx>
23 #include <IntTools_CurveRangeSample.hxx>
24 #include <Standard_Integer.hxx>
25 #include <Standard_Real.hxx>
26 #include <Standard_Boolean.hxx>
27 class IntTools_CurveRangeSample;
31 //! class for range index management of surface
32 class IntTools_SurfaceRangeSample
39 Standard_EXPORT IntTools_SurfaceRangeSample();
41 Standard_EXPORT IntTools_SurfaceRangeSample(const Standard_Integer theIndexU, const Standard_Integer theDepthU, const Standard_Integer theIndexV, const Standard_Integer theDepthV);
43 Standard_EXPORT IntTools_SurfaceRangeSample(const IntTools_CurveRangeSample& theRangeU, const IntTools_CurveRangeSample& theRangeV);
45 Standard_EXPORT IntTools_SurfaceRangeSample(const IntTools_SurfaceRangeSample& Other);
47 Standard_EXPORT IntTools_SurfaceRangeSample& Assign (const IntTools_SurfaceRangeSample& Other);
48 IntTools_SurfaceRangeSample& operator = (const IntTools_SurfaceRangeSample& Other)
53 void SetRanges (const IntTools_CurveRangeSample& theRangeU, const IntTools_CurveRangeSample& theRangeV);
55 void GetRanges (IntTools_CurveRangeSample& theRangeU, IntTools_CurveRangeSample& theRangeV) const;
57 void SetIndexes (const Standard_Integer theIndexU, const Standard_Integer theIndexV);
59 void GetIndexes (Standard_Integer& theIndexU, Standard_Integer& theIndexV) const;
61 void GetDepths (Standard_Integer& theDepthU, Standard_Integer& theDepthV) const;
63 void SetSampleRangeU (const IntTools_CurveRangeSample& theRangeSampleU);
65 const IntTools_CurveRangeSample& GetSampleRangeU() const;
67 void SetSampleRangeV (const IntTools_CurveRangeSample& theRangeSampleV);
69 const IntTools_CurveRangeSample& GetSampleRangeV() const;
71 void SetIndexU (const Standard_Integer theIndexU);
73 Standard_Integer GetIndexU() const;
75 void SetIndexV (const Standard_Integer theIndexV);
77 Standard_Integer GetIndexV() const;
79 void SetDepthU (const Standard_Integer theDepthU);
81 Standard_Integer GetDepthU() const;
83 void SetDepthV (const Standard_Integer theDepthV);
85 Standard_Integer GetDepthV() const;
87 Standard_EXPORT IntTools_Range GetRangeU (const Standard_Real theFirstU, const Standard_Real theLastU, const Standard_Integer theNbSampleU) const;
89 Standard_EXPORT IntTools_Range GetRangeV (const Standard_Real theFirstV, const Standard_Real theLastV, const Standard_Integer theNbSampleV) const;
91 Standard_Boolean IsEqual (const IntTools_SurfaceRangeSample& Other) const;
93 Standard_Integer GetRangeIndexUDeeper (const Standard_Integer theNbSampleU) const;
95 Standard_Integer GetRangeIndexVDeeper (const Standard_Integer theNbSampleV) const;
110 IntTools_CurveRangeSample myRangeU;
111 IntTools_CurveRangeSample myRangeV;
117 #include <IntTools_SurfaceRangeSample.lxx>
123 #endif // _IntTools_SurfaceRangeSample_HeaderFile