b311480e |
1 | // Created on: 2005-10-14 |
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 <TColStd_HArray1OfReal.hxx> |
23 | #include <TColgp_HArray2OfPnt.hxx> |
24 | |
25 | |
26 | inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetNbSampleU() const |
27 | { |
28 | return myNbSampleU; |
29 | } |
30 | |
31 | |
32 | inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetNbSampleV() const |
33 | { |
34 | return myNbSampleV; |
35 | } |
36 | |
37 | |
38 | inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetMinRangeU() const |
39 | { |
40 | return myMinRangeU; |
41 | } |
42 | |
43 | |
44 | inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetMinRangeV() const |
45 | { |
46 | return myMinRangeV; |
47 | } |
48 | |
49 | |
50 | // Modified by skv - Thu Nov 3 09:59:43 2005 Optimization Begin |
51 | inline void IntTools_SurfaceRangeLocalizeData::SetGridDeflection |
52 | (const Standard_Real theDeflection) |
53 | { |
54 | myDeflection = theDeflection; |
55 | } |
56 | |
57 | inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetGridDeflection() const |
58 | { |
59 | return myDeflection; |
60 | } |
61 | |
62 | inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetRangeUGrid() const |
63 | { |
64 | return (myUParams.IsNull()) ? 0 : myUParams->Length(); |
65 | } |
66 | |
67 | |
68 | inline void IntTools_SurfaceRangeLocalizeData::SetUParam |
69 | (const Standard_Integer theIndex, |
70 | const Standard_Real theUParam) |
71 | { |
72 | myUParams->SetValue(theIndex, theUParam); |
73 | } |
74 | |
75 | |
76 | inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetUParam |
77 | (const Standard_Integer theIndex) const |
78 | { |
79 | return myUParams->Value(theIndex); |
80 | } |
81 | |
82 | |
83 | inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetRangeVGrid() const |
84 | { |
85 | return (myVParams.IsNull()) ? 0 : myVParams->Length(); |
86 | } |
87 | |
88 | |
89 | inline void IntTools_SurfaceRangeLocalizeData::SetVParam |
90 | (const Standard_Integer theIndex, |
91 | const Standard_Real theVParam) |
92 | { |
93 | myVParams->SetValue(theIndex, theVParam); |
94 | } |
95 | |
96 | |
97 | inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetVParam |
98 | (const Standard_Integer theIndex) const |
99 | { |
100 | return myVParams->Value(theIndex); |
101 | } |
102 | |
103 | |
104 | inline void IntTools_SurfaceRangeLocalizeData::SetGridPoint |
105 | (const Standard_Integer theUIndex, |
106 | const Standard_Integer theVIndex, |
107 | const gp_Pnt &thePoint) |
108 | { |
109 | myGridPoints->SetValue(theUIndex, theVIndex, thePoint); |
110 | } |
111 | |
112 | |
113 | inline const gp_Pnt &IntTools_SurfaceRangeLocalizeData::GetGridPoint |
114 | (const Standard_Integer theUIndex, |
115 | const Standard_Integer theVIndex) const |
116 | { |
117 | return myGridPoints->Value(theUIndex, theVIndex); |
118 | } |
119 | |
120 | |
121 | inline Standard_Integer IntTools_SurfaceRangeLocalizeData:: |
122 | GetNBUPointsInFrame() const |
123 | { |
124 | return myUIndMax - myUIndMin + 1; |
125 | } |
126 | |
127 | |
128 | inline Standard_Integer IntTools_SurfaceRangeLocalizeData:: |
129 | GetNBVPointsInFrame() const |
130 | { |
131 | return myVIndMax - myVIndMin + 1; |
132 | } |
133 | // Modified by skv - Thu Nov 3 09:59:43 2005 Optimization End |