Warning, /include/opencascade/IntTools_SurfaceRangeLocalizeData.lxx is written in an unsupported language. File is not indexed.
0001 // Created on: 2005-10-14
0002 // Created by: Mikhail KLOKOV
0003 // Copyright (c) 2005-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015
0016 #include <TColStd_HArray1OfReal.hxx>
0017 #include <TColgp_HArray2OfPnt.hxx>
0018
0019
0020 inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetNbSampleU() const
0021 {
0022 return myNbSampleU;
0023 }
0024
0025
0026 inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetNbSampleV() const
0027 {
0028 return myNbSampleV;
0029 }
0030
0031
0032 inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetMinRangeU() const
0033 {
0034 return myMinRangeU;
0035 }
0036
0037
0038 inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetMinRangeV() const
0039 {
0040 return myMinRangeV;
0041 }
0042
0043
0044 // Modified by skv - Thu Nov 3 09:59:43 2005 Optimization Begin
0045 inline void IntTools_SurfaceRangeLocalizeData::SetGridDeflection
0046 (const Standard_Real theDeflection)
0047 {
0048 myDeflection = theDeflection;
0049 }
0050
0051 inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetGridDeflection() const
0052 {
0053 return myDeflection;
0054 }
0055
0056 inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetRangeUGrid() const
0057 {
0058 return (myUParams.IsNull()) ? 0 : myUParams->Length();
0059 }
0060
0061
0062 inline void IntTools_SurfaceRangeLocalizeData::SetUParam
0063 (const Standard_Integer theIndex,
0064 const Standard_Real theUParam)
0065 {
0066 myUParams->SetValue(theIndex, theUParam);
0067 }
0068
0069
0070 inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetUParam
0071 (const Standard_Integer theIndex) const
0072 {
0073 return myUParams->Value(theIndex);
0074 }
0075
0076
0077 inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetRangeVGrid() const
0078 {
0079 return (myVParams.IsNull()) ? 0 : myVParams->Length();
0080 }
0081
0082
0083 inline void IntTools_SurfaceRangeLocalizeData::SetVParam
0084 (const Standard_Integer theIndex,
0085 const Standard_Real theVParam)
0086 {
0087 myVParams->SetValue(theIndex, theVParam);
0088 }
0089
0090
0091 inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetVParam
0092 (const Standard_Integer theIndex) const
0093 {
0094 return myVParams->Value(theIndex);
0095 }
0096
0097
0098 inline void IntTools_SurfaceRangeLocalizeData::SetGridPoint
0099 (const Standard_Integer theUIndex,
0100 const Standard_Integer theVIndex,
0101 const gp_Pnt &thePoint)
0102 {
0103 myGridPoints->SetValue(theUIndex, theVIndex, thePoint);
0104 }
0105
0106
0107 inline const gp_Pnt &IntTools_SurfaceRangeLocalizeData::GetGridPoint
0108 (const Standard_Integer theUIndex,
0109 const Standard_Integer theVIndex) const
0110 {
0111 return myGridPoints->Value(theUIndex, theVIndex);
0112 }
0113
0114
0115 inline Standard_Integer IntTools_SurfaceRangeLocalizeData::
0116 GetNBUPointsInFrame() const
0117 {
0118 return myUIndMax - myUIndMin + 1;
0119 }
0120
0121
0122 inline Standard_Integer IntTools_SurfaceRangeLocalizeData::
0123 GetNBVPointsInFrame() const
0124 {
0125 return myVIndMax - myVIndMin + 1;
0126 }
0127 // Modified by skv - Thu Nov 3 09:59:43 2005 Optimization End