mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-25 12:04:07 +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.
187 lines
5.6 KiB
Plaintext
187 lines
5.6 KiB
Plaintext
// Copyright (c) 1999-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.
|
|
|
|
//=======================================================================
|
|
//function : SetTol3d
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
inline void ShapeCustom_BSplineRestriction::SetTol3d(const Standard_Real Tol3d)
|
|
{
|
|
myTol3d = Tol3d;
|
|
}
|
|
|
|
|
|
//=======================================================================
|
|
//function : SetTol2d
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
inline void ShapeCustom_BSplineRestriction::SetTol2d(const Standard_Real Tol2d)
|
|
{
|
|
myTol2d = Tol2d;
|
|
}
|
|
|
|
|
|
//=======================================================================
|
|
//function : ModifyApproxSurfaceFlag
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
inline Standard_Boolean& ShapeCustom_BSplineRestriction::ModifyApproxSurfaceFlag()
|
|
{
|
|
|
|
return myApproxSurfaceFlag;
|
|
}
|
|
|
|
|
|
//=======================================================================
|
|
//function : ModifyApproxCurve3dFlag
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
inline Standard_Boolean& ShapeCustom_BSplineRestriction::ModifyApproxCurve3dFlag()
|
|
{
|
|
return myApproxCurve3dFlag;
|
|
}
|
|
|
|
|
|
//=======================================================================
|
|
//function : ModifyApproxCurve2dFlag
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
inline Standard_Boolean& ShapeCustom_BSplineRestriction::ModifyApproxCurve2dFlag()
|
|
{
|
|
return myApproxCurve2dFlag;
|
|
}
|
|
|
|
|
|
//=======================================================================
|
|
//function : SetContinuity3d
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
inline void ShapeCustom_BSplineRestriction::SetContinuity3d(const GeomAbs_Shape Continuity3d)
|
|
{
|
|
myContinuity3d = Continuity3d;
|
|
}
|
|
|
|
|
|
//=======================================================================
|
|
//function : SetContinuity2d
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
inline void ShapeCustom_BSplineRestriction::SetContinuity2d(const GeomAbs_Shape Continuity2d)
|
|
{
|
|
myContinuity2d = Continuity2d;
|
|
}
|
|
|
|
|
|
//=======================================================================
|
|
//function : SetMaxDegree
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
inline void ShapeCustom_BSplineRestriction::SetMaxDegree(const Standard_Integer MaxDegree)
|
|
{
|
|
myMaxDegree = MaxDegree;
|
|
}
|
|
|
|
|
|
//=======================================================================
|
|
//function : SetMaxNbSegments
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
inline void ShapeCustom_BSplineRestriction::SetMaxNbSegments(const Standard_Integer MaxNbSegments)
|
|
{
|
|
myNbMaxSeg = MaxNbSegments;
|
|
}
|
|
|
|
|
|
//=======================================================================
|
|
//function : Curve3dError
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
inline Standard_Real ShapeCustom_BSplineRestriction::Curve3dError() const
|
|
{
|
|
return myCurve3dError;
|
|
}
|
|
|
|
|
|
//=======================================================================
|
|
//function : Curve2dError
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
inline Standard_Real ShapeCustom_BSplineRestriction::Curve2dError() const
|
|
{
|
|
return myCurve2dError;
|
|
}
|
|
|
|
|
|
//=======================================================================
|
|
//function : SurfaceError
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
inline Standard_Real ShapeCustom_BSplineRestriction::SurfaceError() const
|
|
{
|
|
return mySurfaceError;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : SetPriority
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
inline void ShapeCustom_BSplineRestriction::SetPriority(const Standard_Boolean Degree)
|
|
{
|
|
myDeg = Degree;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : SetConvRational
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
inline void ShapeCustom_BSplineRestriction::SetConvRational(const Standard_Boolean Rational)
|
|
{
|
|
myRational = Rational;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : GetRestrictionParameters
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
inline Handle(ShapeCustom_RestrictionParameters) ShapeCustom_BSplineRestriction::
|
|
GetRestrictionParameters() const
|
|
{
|
|
return myParameters;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : SetRestrictionParameters
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
inline void ShapeCustom_BSplineRestriction::
|
|
SetRestrictionParameters(const Handle(ShapeCustom_RestrictionParameters)& aModes)
|
|
{
|
|
myParameters = aModes;
|
|
}
|