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 <NCollection_Array1.hxx>
0017 #include <NCollection_HArray1.hxx>
0018 #include <gp_Pnt.hxx>
0019 #include <NCollection_Array2.hxx>
0020 #include <NCollection_HArray2.hxx>
0021
0022 inline int IntTools_SurfaceRangeLocalizeData::GetNbSampleU() const
0023 {
0024 return myNbSampleU;
0025 }
0026
0027 inline int IntTools_SurfaceRangeLocalizeData::GetNbSampleV() const
0028 {
0029 return myNbSampleV;
0030 }
0031
0032 inline double IntTools_SurfaceRangeLocalizeData::GetMinRangeU() const
0033 {
0034 return myMinRangeU;
0035 }
0036
0037 inline double IntTools_SurfaceRangeLocalizeData::GetMinRangeV() const
0038 {
0039 return myMinRangeV;
0040 }
0041
0042 // Modified by skv - Thu Nov 3 09:59:43 2005 Optimization Begin
0043 inline void IntTools_SurfaceRangeLocalizeData::SetGridDeflection(const double theDeflection)
0044 {
0045 myDeflection = theDeflection;
0046 }
0047
0048 inline double IntTools_SurfaceRangeLocalizeData::GetGridDeflection() const
0049 {
0050 return myDeflection;
0051 }
0052
0053 inline int IntTools_SurfaceRangeLocalizeData::GetRangeUGrid() const
0054 {
0055 return (myUParams.IsNull()) ? 0 : myUParams->Length();
0056 }
0057
0058 inline void IntTools_SurfaceRangeLocalizeData::SetUParam(const int theIndex, const double theUParam)
0059 {
0060 myUParams->SetValue(theIndex, theUParam);
0061 }
0062
0063 inline double IntTools_SurfaceRangeLocalizeData::GetUParam(const int theIndex) const
0064 {
0065 return myUParams->Value(theIndex);
0066 }
0067
0068 inline int IntTools_SurfaceRangeLocalizeData::GetRangeVGrid() const
0069 {
0070 return (myVParams.IsNull()) ? 0 : myVParams->Length();
0071 }
0072
0073 inline void IntTools_SurfaceRangeLocalizeData::SetVParam(const int theIndex, const double theVParam)
0074 {
0075 myVParams->SetValue(theIndex, theVParam);
0076 }
0077
0078 inline double IntTools_SurfaceRangeLocalizeData::GetVParam(const int theIndex) const
0079 {
0080 return myVParams->Value(theIndex);
0081 }
0082
0083 inline void IntTools_SurfaceRangeLocalizeData::SetGridPoint(const int theUIndex,
0084 const int theVIndex,
0085 const gp_Pnt& thePoint)
0086 {
0087 myGridPoints->SetValue(theUIndex, theVIndex, thePoint);
0088 }
0089
0090 inline const gp_Pnt& IntTools_SurfaceRangeLocalizeData::GetGridPoint(const int theUIndex,
0091 const int theVIndex) const
0092 {
0093 return myGridPoints->Value(theUIndex, theVIndex);
0094 }
0095
0096 inline int IntTools_SurfaceRangeLocalizeData::GetNBUPointsInFrame() const
0097 {
0098 return myUIndMax - myUIndMin + 1;
0099 }
0100
0101 inline int IntTools_SurfaceRangeLocalizeData::GetNBVPointsInFrame() const
0102 {
0103 return myVIndMax - myVIndMin + 1;
0104 }
0105
0106 // Modified by skv - Thu Nov 3 09:59:43 2005 Optimization End