0026586: Eliminate compile warnings obtained by building occt with vc14: declaration...
[occt.git] / src / IntTools / IntTools_SurfaceRangeSample.cxx
1 // Created on: 2005-10-05
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
17 #include <IntTools_CurveRangeSample.hxx>
18 #include <IntTools_Range.hxx>
19 #include <IntTools_SurfaceRangeSample.hxx>
20
21 IntTools_SurfaceRangeSample::IntTools_SurfaceRangeSample()
22 {
23 }
24
25 IntTools_SurfaceRangeSample::IntTools_SurfaceRangeSample(const Standard_Integer theIndexU,const Standard_Integer theDepthU,
26                                                          const Standard_Integer theIndexV,const Standard_Integer theDepthV)
27 {
28   myRangeU.SetRangeIndex(theIndexU);
29   myRangeU.SetDepth(theDepthU);
30   myRangeV.SetRangeIndex(theIndexV);
31   myRangeV.SetDepth(theDepthV);
32 }
33
34 IntTools_SurfaceRangeSample::IntTools_SurfaceRangeSample(const IntTools_CurveRangeSample& theRangeU,
35                                                          const IntTools_CurveRangeSample& theRangeV)
36 {
37   myRangeU = theRangeU;
38   myRangeV = theRangeV;
39 }
40
41 IntTools_SurfaceRangeSample::IntTools_SurfaceRangeSample(const IntTools_SurfaceRangeSample& Other)
42 {
43   Assign(Other);
44 }
45
46 IntTools_SurfaceRangeSample& IntTools_SurfaceRangeSample::Assign(const IntTools_SurfaceRangeSample& Other) 
47 {
48   myRangeU = Other.myRangeU;
49   myRangeV = Other.myRangeV;
50   return (*this);
51 }
52
53
54 IntTools_Range IntTools_SurfaceRangeSample::GetRangeU(const Standard_Real theFirstU,const Standard_Real theLastU,
55                                                       const Standard_Integer theNbSampleU) const
56 {
57   return myRangeU.GetRange(theFirstU, theLastU, theNbSampleU);
58 }
59
60 IntTools_Range IntTools_SurfaceRangeSample::GetRangeV(const Standard_Real theFirstV,const Standard_Real theLastV,
61                                                       const Standard_Integer theNbSampleV) const
62 {
63   return myRangeV.GetRange(theFirstV, theLastV, theNbSampleV);
64 }