0024284: Some trivial warnings produced by ICC 14
[occt.git] / src / IntTools / IntTools_SurfaceRangeSample.cxx
CommitLineData
b311480e 1// Created on: 2005-10-05
2// Created by: Mikhail KLOKOV
3// Copyright (c) 2005-2012 OPEN CASCADE SAS
4//
5// The content of this file is subject to the Open CASCADE Technology Public
6// License Version 6.5 (the "License"). You may not use the content of this file
7// except in compliance with the License. Please obtain a copy of the License
8// at http://www.opencascade.org and read it completely before using this file.
9//
10// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
12//
13// The Original Code and all software distributed under the License is
14// distributed on an "AS IS" basis, without warranty of any kind, and the
15// Initial Developer hereby disclaims all such warranties, including without
16// limitation, any warranties of merchantability, fitness for a particular
17// purpose or non-infringement. Please see the License for the specific terms
18// and conditions governing the rights and limitations under the License.
19
7fd59977 20
21
22#include <IntTools_SurfaceRangeSample.ixx>
23
24IntTools_SurfaceRangeSample::IntTools_SurfaceRangeSample()
25{
26}
27
28IntTools_SurfaceRangeSample::IntTools_SurfaceRangeSample(const Standard_Integer theIndexU,const Standard_Integer theDepthU,
29 const Standard_Integer theIndexV,const Standard_Integer theDepthV)
30{
31 myRangeU.SetRangeIndex(theIndexU);
32 myRangeU.SetDepth(theDepthU);
33 myRangeV.SetRangeIndex(theIndexV);
34 myRangeV.SetDepth(theDepthV);
35}
36
37IntTools_SurfaceRangeSample::IntTools_SurfaceRangeSample(const IntTools_CurveRangeSample& theRangeU,
38 const IntTools_CurveRangeSample& theRangeV)
39{
40 myRangeU = theRangeU;
41 myRangeV = theRangeV;
42}
43
44IntTools_SurfaceRangeSample::IntTools_SurfaceRangeSample(const IntTools_SurfaceRangeSample& Other)
45{
46 Assign(Other);
47}
48
49IntTools_SurfaceRangeSample& IntTools_SurfaceRangeSample::Assign(const IntTools_SurfaceRangeSample& Other)
50{
51 myRangeU = Other.myRangeU;
52 myRangeV = Other.myRangeV;
53 return (*this);
54}
55
56
57IntTools_Range IntTools_SurfaceRangeSample::GetRangeU(const Standard_Real theFirstU,const Standard_Real theLastU,
58 const Standard_Integer theNbSampleU) const
59{
60 return myRangeU.GetRange(theFirstU, theLastU, theNbSampleU);
61}
62
63IntTools_Range IntTools_SurfaceRangeSample::GetRangeV(const Standard_Real theFirstV,const Standard_Real theLastV,
64 const Standard_Integer theNbSampleV) const
65{
66 return myRangeV.GetRange(theFirstV, theLastV, theNbSampleV);
67}