1 // Created on: 2005-10-14
2 // Created by: Mikhail KLOKOV
3 // Copyright (c) 2005-2012 OPEN CASCADE SAS
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.
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.
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.
22 #include <TColStd_HArray1OfReal.hxx>
23 #include <TColgp_HArray2OfPnt.hxx>
26 inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetNbSampleU() const
32 inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetNbSampleV() const
38 inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetMinRangeU() const
44 inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetMinRangeV() const
50 // Modified by skv - Thu Nov 3 09:59:43 2005 Optimization Begin
51 inline void IntTools_SurfaceRangeLocalizeData::SetGridDeflection
52 (const Standard_Real theDeflection)
54 myDeflection = theDeflection;
57 inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetGridDeflection() const
62 inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetRangeUGrid() const
64 return (myUParams.IsNull()) ? 0 : myUParams->Length();
68 inline void IntTools_SurfaceRangeLocalizeData::SetUParam
69 (const Standard_Integer theIndex,
70 const Standard_Real theUParam)
72 myUParams->SetValue(theIndex, theUParam);
76 inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetUParam
77 (const Standard_Integer theIndex) const
79 return myUParams->Value(theIndex);
83 inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetRangeVGrid() const
85 return (myVParams.IsNull()) ? 0 : myVParams->Length();
89 inline void IntTools_SurfaceRangeLocalizeData::SetVParam
90 (const Standard_Integer theIndex,
91 const Standard_Real theVParam)
93 myVParams->SetValue(theIndex, theVParam);
97 inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetVParam
98 (const Standard_Integer theIndex) const
100 return myVParams->Value(theIndex);
104 inline void IntTools_SurfaceRangeLocalizeData::SetGridPoint
105 (const Standard_Integer theUIndex,
106 const Standard_Integer theVIndex,
107 const gp_Pnt &thePoint)
109 myGridPoints->SetValue(theUIndex, theVIndex, thePoint);
113 inline const gp_Pnt &IntTools_SurfaceRangeLocalizeData::GetGridPoint
114 (const Standard_Integer theUIndex,
115 const Standard_Integer theVIndex) const
117 return myGridPoints->Value(theUIndex, theVIndex);
121 inline Standard_Integer IntTools_SurfaceRangeLocalizeData::
122 GetNBUPointsInFrame() const
124 return myUIndMax - myUIndMin + 1;
128 inline Standard_Integer IntTools_SurfaceRangeLocalizeData::
129 GetNBVPointsInFrame() const
131 return myVIndMax - myVIndMin + 1;
133 // Modified by skv - Thu Nov 3 09:59:43 2005 Optimization End