1 // Created on: 2005-10-14
2 // Created by: Mikhail KLOKOV
3 // Copyright (c) 2005-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and / or modify it
8 // under the terms of the GNU Lesser General Public version 2.1 as published
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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #include <TColStd_HArray1OfReal.hxx>
17 #include <TColgp_HArray2OfPnt.hxx>
20 inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetNbSampleU() const
26 inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetNbSampleV() const
32 inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetMinRangeU() const
38 inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetMinRangeV() const
44 // Modified by skv - Thu Nov 3 09:59:43 2005 Optimization Begin
45 inline void IntTools_SurfaceRangeLocalizeData::SetGridDeflection
46 (const Standard_Real theDeflection)
48 myDeflection = theDeflection;
51 inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetGridDeflection() const
56 inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetRangeUGrid() const
58 return (myUParams.IsNull()) ? 0 : myUParams->Length();
62 inline void IntTools_SurfaceRangeLocalizeData::SetUParam
63 (const Standard_Integer theIndex,
64 const Standard_Real theUParam)
66 myUParams->SetValue(theIndex, theUParam);
70 inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetUParam
71 (const Standard_Integer theIndex) const
73 return myUParams->Value(theIndex);
77 inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetRangeVGrid() const
79 return (myVParams.IsNull()) ? 0 : myVParams->Length();
83 inline void IntTools_SurfaceRangeLocalizeData::SetVParam
84 (const Standard_Integer theIndex,
85 const Standard_Real theVParam)
87 myVParams->SetValue(theIndex, theVParam);
91 inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetVParam
92 (const Standard_Integer theIndex) const
94 return myVParams->Value(theIndex);
98 inline void IntTools_SurfaceRangeLocalizeData::SetGridPoint
99 (const Standard_Integer theUIndex,
100 const Standard_Integer theVIndex,
101 const gp_Pnt &thePoint)
103 myGridPoints->SetValue(theUIndex, theVIndex, thePoint);
107 inline const gp_Pnt &IntTools_SurfaceRangeLocalizeData::GetGridPoint
108 (const Standard_Integer theUIndex,
109 const Standard_Integer theVIndex) const
111 return myGridPoints->Value(theUIndex, theVIndex);
115 inline Standard_Integer IntTools_SurfaceRangeLocalizeData::
116 GetNBUPointsInFrame() const
118 return myUIndMax - myUIndMin + 1;
122 inline Standard_Integer IntTools_SurfaceRangeLocalizeData::
123 GetNBVPointsInFrame() const
125 return myVIndMax - myVIndMin + 1;
127 // Modified by skv - Thu Nov 3 09:59:43 2005 Optimization End