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