0025969: Wrong result obtained by 2d classifier algorithm.
[occt.git] / src / IntTools / IntTools_SurfaceRangeSample.lxx
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 inline void IntTools_SurfaceRangeSample::SetRanges(const IntTools_CurveRangeSample& theRangeU,
17                                                    const IntTools_CurveRangeSample& theRangeV) 
18 {
19   myRangeU = theRangeU;
20   myRangeV = theRangeV;
21 }
22
23  
24 inline void IntTools_SurfaceRangeSample::GetRanges(IntTools_CurveRangeSample& theRangeU,
25                                              IntTools_CurveRangeSample& theRangeV) const
26 {
27   theRangeU = myRangeU;
28   theRangeV = myRangeV;
29 }
30
31  
32 inline void IntTools_SurfaceRangeSample::SetIndexes(const Standard_Integer theIndexU,
33                                                     const Standard_Integer theIndexV) 
34 {
35   myRangeU.SetRangeIndex(theIndexU);
36   myRangeV.SetRangeIndex(theIndexV);
37 }
38
39  
40 inline void IntTools_SurfaceRangeSample::GetIndexes(Standard_Integer& theIndexU,Standard_Integer& theIndexV) const
41 {
42   theIndexU = myRangeU.GetRangeIndex();
43   theIndexV = myRangeV.GetRangeIndex();
44 }
45
46  
47 inline void IntTools_SurfaceRangeSample::GetDepths(Standard_Integer& theDepthU,Standard_Integer& theDepthV) const
48 {
49   theDepthU = myRangeU.GetDepth();
50   theDepthV = myRangeV.GetDepth();
51 }
52
53  
54 inline void IntTools_SurfaceRangeSample::SetSampleRangeU(const IntTools_CurveRangeSample& theRangeSampleU) 
55 {
56   myRangeU = theRangeSampleU;
57 }
58
59  
60 inline const IntTools_CurveRangeSample& IntTools_SurfaceRangeSample::GetSampleRangeU() const
61 {
62   return myRangeU;
63 }
64
65  
66 inline void IntTools_SurfaceRangeSample::SetSampleRangeV(const IntTools_CurveRangeSample& theRangeSampleV) 
67 {
68   myRangeV = theRangeSampleV;
69 }
70
71  
72 inline const IntTools_CurveRangeSample& IntTools_SurfaceRangeSample::GetSampleRangeV() const
73 {
74   return myRangeV;
75 }
76
77  
78 inline void IntTools_SurfaceRangeSample::SetIndexU(const Standard_Integer theIndexU) 
79 {
80   myRangeU.SetRangeIndex(theIndexU);
81 }
82
83  
84 inline Standard_Integer IntTools_SurfaceRangeSample::GetIndexU() const
85 {
86   return myRangeU.GetRangeIndex();
87 }
88
89  
90 inline void IntTools_SurfaceRangeSample::SetIndexV(const Standard_Integer theIndexV) 
91 {
92   myRangeV.SetRangeIndex(theIndexV);
93 }
94
95  
96 inline Standard_Integer IntTools_SurfaceRangeSample::GetIndexV() const
97 {
98   return myRangeV.GetRangeIndex();
99 }
100
101  
102 inline void IntTools_SurfaceRangeSample::SetDepthU(const Standard_Integer theDepthU) 
103 {
104   myRangeU.SetDepth(theDepthU);
105 }
106
107  
108 inline Standard_Integer IntTools_SurfaceRangeSample::GetDepthU() const
109 {
110   return myRangeU.GetDepth();
111 }
112
113  
114 inline void IntTools_SurfaceRangeSample::SetDepthV(const Standard_Integer theDepthV) 
115 {
116   myRangeV.SetDepth(theDepthV);
117 }
118
119  
120 inline Standard_Integer IntTools_SurfaceRangeSample::GetDepthV() const
121 {
122   return myRangeV.GetDepth();
123 }
124
125 inline Standard_Boolean IntTools_SurfaceRangeSample::IsEqual(const IntTools_SurfaceRangeSample& Other) const
126 {
127   return (myRangeU.IsEqual(Other.myRangeU) && myRangeV.IsEqual(Other.myRangeV));
128 }
129
130  
131 inline Standard_Integer IntTools_SurfaceRangeSample::GetRangeIndexUDeeper(const Standard_Integer theNbSampleU) const
132 {
133   return myRangeU.GetRangeIndexDeeper(theNbSampleU);
134 }
135
136  
137 inline Standard_Integer IntTools_SurfaceRangeSample::GetRangeIndexVDeeper(const Standard_Integer theNbSampleV) const
138 {
139   return myRangeV.GetRangeIndexDeeper(theNbSampleV);
140 }