mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-06 18:26:22 +03:00
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast Wrong license statements corrected in several files. Copyright and license statements added in XSD and GLSL files. Copyright year updated in some files. Obsolete documentation files removed from DrawResources.
128 lines
3.4 KiB
Plaintext
128 lines
3.4 KiB
Plaintext
// Created on: 2005-10-14
|
|
// Created by: Mikhail KLOKOV
|
|
// Copyright (c) 2005-2014 OPEN CASCADE SAS
|
|
//
|
|
// This file is part of Open CASCADE Technology software library.
|
|
//
|
|
// This library is free software; you can redistribute it and/or modify it under
|
|
// the terms of the GNU Lesser General Public License version 2.1 as published
|
|
// by the Free Software Foundation, with special exception defined in the file
|
|
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
// distribution for complete text of the license and disclaimer of any warranty.
|
|
//
|
|
// Alternatively, this file may be used under the terms of Open CASCADE
|
|
// commercial license or contractual agreement.
|
|
|
|
#include <TColStd_HArray1OfReal.hxx>
|
|
#include <TColgp_HArray2OfPnt.hxx>
|
|
|
|
|
|
inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetNbSampleU() const
|
|
{
|
|
return myNbSampleU;
|
|
}
|
|
|
|
|
|
inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetNbSampleV() const
|
|
{
|
|
return myNbSampleV;
|
|
}
|
|
|
|
|
|
inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetMinRangeU() const
|
|
{
|
|
return myMinRangeU;
|
|
}
|
|
|
|
|
|
inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetMinRangeV() const
|
|
{
|
|
return myMinRangeV;
|
|
}
|
|
|
|
|
|
// Modified by skv - Thu Nov 3 09:59:43 2005 Optimization Begin
|
|
inline void IntTools_SurfaceRangeLocalizeData::SetGridDeflection
|
|
(const Standard_Real theDeflection)
|
|
{
|
|
myDeflection = theDeflection;
|
|
}
|
|
|
|
inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetGridDeflection() const
|
|
{
|
|
return myDeflection;
|
|
}
|
|
|
|
inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetRangeUGrid() const
|
|
{
|
|
return (myUParams.IsNull()) ? 0 : myUParams->Length();
|
|
}
|
|
|
|
|
|
inline void IntTools_SurfaceRangeLocalizeData::SetUParam
|
|
(const Standard_Integer theIndex,
|
|
const Standard_Real theUParam)
|
|
{
|
|
myUParams->SetValue(theIndex, theUParam);
|
|
}
|
|
|
|
|
|
inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetUParam
|
|
(const Standard_Integer theIndex) const
|
|
{
|
|
return myUParams->Value(theIndex);
|
|
}
|
|
|
|
|
|
inline Standard_Integer IntTools_SurfaceRangeLocalizeData::GetRangeVGrid() const
|
|
{
|
|
return (myVParams.IsNull()) ? 0 : myVParams->Length();
|
|
}
|
|
|
|
|
|
inline void IntTools_SurfaceRangeLocalizeData::SetVParam
|
|
(const Standard_Integer theIndex,
|
|
const Standard_Real theVParam)
|
|
{
|
|
myVParams->SetValue(theIndex, theVParam);
|
|
}
|
|
|
|
|
|
inline Standard_Real IntTools_SurfaceRangeLocalizeData::GetVParam
|
|
(const Standard_Integer theIndex) const
|
|
{
|
|
return myVParams->Value(theIndex);
|
|
}
|
|
|
|
|
|
inline void IntTools_SurfaceRangeLocalizeData::SetGridPoint
|
|
(const Standard_Integer theUIndex,
|
|
const Standard_Integer theVIndex,
|
|
const gp_Pnt &thePoint)
|
|
{
|
|
myGridPoints->SetValue(theUIndex, theVIndex, thePoint);
|
|
}
|
|
|
|
|
|
inline const gp_Pnt &IntTools_SurfaceRangeLocalizeData::GetGridPoint
|
|
(const Standard_Integer theUIndex,
|
|
const Standard_Integer theVIndex) const
|
|
{
|
|
return myGridPoints->Value(theUIndex, theVIndex);
|
|
}
|
|
|
|
|
|
inline Standard_Integer IntTools_SurfaceRangeLocalizeData::
|
|
GetNBUPointsInFrame() const
|
|
{
|
|
return myUIndMax - myUIndMin + 1;
|
|
}
|
|
|
|
|
|
inline Standard_Integer IntTools_SurfaceRangeLocalizeData::
|
|
GetNBVPointsInFrame() const
|
|
{
|
|
return myVIndMax - myVIndMin + 1;
|
|
}
|
|
// Modified by skv - Thu Nov 3 09:59:43 2005 Optimization End
|