0022627: Change OCCT memory management defaults
[occt.git] / src / IntTools / IntTools_SurfaceRangeLocalizeData.lxx
CommitLineData
7fd59977 1// File: IntTools_SurfaceRangeLocalizeData.lxx
2// Created: Fri Oct 14 19:52:29 2005
3// Author: Mikhail KLOKOV
4// <mkk@kurox>
5
6
7#include <TColStd_HArray1OfReal.hxx>
8#include <TColgp_HArray2OfPnt.hxx>
9
10
11inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetNbSampleU() const
12{
13 return myNbSampleU;
14}
15
16
17inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetNbSampleV() const
18{
19 return myNbSampleV;
20}
21
22
23inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetMinRangeU() const
24{
25 return myMinRangeU;
26}
27
28
29inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetMinRangeV() const
30{
31 return myMinRangeV;
32}
33
34
35// Modified by skv - Thu Nov 3 09:59:43 2005 Optimization Begin
36inline void IntTools_SurfaceRangeLocalizeData::SetGridDeflection
37 (const Standard_Real theDeflection)
38{
39 myDeflection = theDeflection;
40}
41
42inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetGridDeflection() const
43{
44 return myDeflection;
45}
46
47inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetRangeUGrid() const
48{
49 return (myUParams.IsNull()) ? 0 : myUParams->Length();
50}
51
52
53inline void IntTools_SurfaceRangeLocalizeData::SetUParam
54 (const Standard_Integer theIndex,
55 const Standard_Real theUParam)
56{
57 myUParams->SetValue(theIndex, theUParam);
58}
59
60
61inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetUParam
62 (const Standard_Integer theIndex) const
63{
64 return myUParams->Value(theIndex);
65}
66
67
68inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetRangeVGrid() const
69{
70 return (myVParams.IsNull()) ? 0 : myVParams->Length();
71}
72
73
74inline void IntTools_SurfaceRangeLocalizeData::SetVParam
75 (const Standard_Integer theIndex,
76 const Standard_Real theVParam)
77{
78 myVParams->SetValue(theIndex, theVParam);
79}
80
81
82inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetVParam
83 (const Standard_Integer theIndex) const
84{
85 return myVParams->Value(theIndex);
86}
87
88
89inline void IntTools_SurfaceRangeLocalizeData::SetGridPoint
90 (const Standard_Integer theUIndex,
91 const Standard_Integer theVIndex,
92 const gp_Pnt &thePoint)
93{
94 myGridPoints->SetValue(theUIndex, theVIndex, thePoint);
95}
96
97
98inline const gp_Pnt &IntTools_SurfaceRangeLocalizeData::GetGridPoint
99 (const Standard_Integer theUIndex,
100 const Standard_Integer theVIndex) const
101{
102 return myGridPoints->Value(theUIndex, theVIndex);
103}
104
105
106inline Standard_Integer IntTools_SurfaceRangeLocalizeData::
107 GetNBUPointsInFrame() const
108{
109 return myUIndMax - myUIndMin + 1;
110}
111
112
113inline Standard_Integer IntTools_SurfaceRangeLocalizeData::
114 GetNBVPointsInFrame() const
115{
116 return myVIndMax - myVIndMin + 1;
117}
118// Modified by skv - Thu Nov 3 09:59:43 2005 Optimization End