0028599: Replacement of old Boolean operations with new ones in BRepProj_Projection...
[occt.git] / src / IntTools / IntTools_SurfaceRangeSample.lxx
CommitLineData
b311480e 1// Created on: 2005-10-05
2// Created by: Mikhail KLOKOV
973c2be1 3// Copyright (c) 2005-2014 OPEN CASCADE SAS
b311480e 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
b311480e 6//
d5f74e42 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
973c2be1 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.
b311480e 12//
973c2be1 13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
7fd59977 15
16inline void IntTools_SurfaceRangeSample::SetRanges(const IntTools_CurveRangeSample& theRangeU,
17 const IntTools_CurveRangeSample& theRangeV)
18{
19 myRangeU = theRangeU;
20 myRangeV = theRangeV;
21}
22
23
24inline void IntTools_SurfaceRangeSample::GetRanges(IntTools_CurveRangeSample& theRangeU,
25 IntTools_CurveRangeSample& theRangeV) const
26{
27 theRangeU = myRangeU;
28 theRangeV = myRangeV;
29}
30
31
32inline 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
40inline void IntTools_SurfaceRangeSample::GetIndexes(Standard_Integer& theIndexU,Standard_Integer& theIndexV) const
41{
42 theIndexU = myRangeU.GetRangeIndex();
43 theIndexV = myRangeV.GetRangeIndex();
44}
45
46
47inline void IntTools_SurfaceRangeSample::GetDepths(Standard_Integer& theDepthU,Standard_Integer& theDepthV) const
48{
49 theDepthU = myRangeU.GetDepth();
50 theDepthV = myRangeV.GetDepth();
51}
52
53
54inline void IntTools_SurfaceRangeSample::SetSampleRangeU(const IntTools_CurveRangeSample& theRangeSampleU)
55{
56 myRangeU = theRangeSampleU;
57}
58
59
60inline const IntTools_CurveRangeSample& IntTools_SurfaceRangeSample::GetSampleRangeU() const
61{
62 return myRangeU;
63}
64
65
66inline void IntTools_SurfaceRangeSample::SetSampleRangeV(const IntTools_CurveRangeSample& theRangeSampleV)
67{
68 myRangeV = theRangeSampleV;
69}
70
71
72inline const IntTools_CurveRangeSample& IntTools_SurfaceRangeSample::GetSampleRangeV() const
73{
74 return myRangeV;
75}
76
77
78inline void IntTools_SurfaceRangeSample::SetIndexU(const Standard_Integer theIndexU)
79{
80 myRangeU.SetRangeIndex(theIndexU);
81}
82
83
84inline Standard_Integer IntTools_SurfaceRangeSample::GetIndexU() const
85{
86 return myRangeU.GetRangeIndex();
87}
88
89
90inline void IntTools_SurfaceRangeSample::SetIndexV(const Standard_Integer theIndexV)
91{
92 myRangeV.SetRangeIndex(theIndexV);
93}
94
95
96inline Standard_Integer IntTools_SurfaceRangeSample::GetIndexV() const
97{
98 return myRangeV.GetRangeIndex();
99}
100
101
102inline void IntTools_SurfaceRangeSample::SetDepthU(const Standard_Integer theDepthU)
103{
104 myRangeU.SetDepth(theDepthU);
105}
106
107
108inline Standard_Integer IntTools_SurfaceRangeSample::GetDepthU() const
109{
110 return myRangeU.GetDepth();
111}
112
113
114inline void IntTools_SurfaceRangeSample::SetDepthV(const Standard_Integer theDepthV)
115{
116 myRangeV.SetDepth(theDepthV);
117}
118
119
120inline Standard_Integer IntTools_SurfaceRangeSample::GetDepthV() const
121{
122 return myRangeV.GetDepth();
123}
124
125inline Standard_Boolean IntTools_SurfaceRangeSample::IsEqual(const IntTools_SurfaceRangeSample& Other) const
126{
127 return (myRangeU.IsEqual(Other.myRangeU) && myRangeV.IsEqual(Other.myRangeV));
128}
129
130
131inline Standard_Integer IntTools_SurfaceRangeSample::GetRangeIndexUDeeper(const Standard_Integer theNbSampleU) const
132{
133 return myRangeU.GetRangeIndexDeeper(theNbSampleU);
134}
135
136
137inline Standard_Integer IntTools_SurfaceRangeSample::GetRangeIndexVDeeper(const Standard_Integer theNbSampleV) const
138{
139 return myRangeV.GetRangeIndexDeeper(theNbSampleV);
140}