Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/opencascade/ShapeCustom_BSplineRestriction.lxx is written in an unsupported language. File is not indexed.

0001 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013 
0014 //=================================================================================================
0015 
0016 inline void ShapeCustom_BSplineRestriction::SetTol3d(const double Tol3d)
0017 {
0018   myTol3d = Tol3d;
0019 }
0020 
0021 //=================================================================================================
0022 
0023 inline void ShapeCustom_BSplineRestriction::SetTol2d(const double Tol2d)
0024 {
0025   myTol2d = Tol2d;
0026 }
0027 
0028 //=================================================================================================
0029 
0030 inline bool& ShapeCustom_BSplineRestriction::ModifyApproxSurfaceFlag()
0031 {
0032 
0033   return myApproxSurfaceFlag;
0034 }
0035 
0036 //=================================================================================================
0037 
0038 inline bool& ShapeCustom_BSplineRestriction::ModifyApproxCurve3dFlag()
0039 {
0040   return myApproxCurve3dFlag;
0041 }
0042 
0043 //=================================================================================================
0044 
0045 inline bool& ShapeCustom_BSplineRestriction::ModifyApproxCurve2dFlag()
0046 {
0047   return myApproxCurve2dFlag;
0048 }
0049 
0050 //=================================================================================================
0051 
0052 inline void ShapeCustom_BSplineRestriction::SetContinuity3d(const GeomAbs_Shape Continuity3d)
0053 {
0054   myContinuity3d = Continuity3d;
0055 }
0056 
0057 //=================================================================================================
0058 
0059 inline void ShapeCustom_BSplineRestriction::SetContinuity2d(const GeomAbs_Shape Continuity2d)
0060 {
0061   myContinuity2d = Continuity2d;
0062 }
0063 
0064 //=================================================================================================
0065 
0066 inline void ShapeCustom_BSplineRestriction::SetMaxDegree(const int MaxDegree)
0067 {
0068   myMaxDegree = MaxDegree;
0069 }
0070 
0071 //=================================================================================================
0072 
0073 inline void ShapeCustom_BSplineRestriction::SetMaxNbSegments(const int MaxNbSegments)
0074 {
0075   myNbMaxSeg = MaxNbSegments;
0076 }
0077 
0078 //=================================================================================================
0079 
0080 inline double ShapeCustom_BSplineRestriction::Curve3dError() const
0081 {
0082   return myCurve3dError;
0083 }
0084 
0085 //=================================================================================================
0086 
0087 inline double ShapeCustom_BSplineRestriction::Curve2dError() const
0088 {
0089   return myCurve2dError;
0090 }
0091 
0092 //=================================================================================================
0093 
0094 inline double ShapeCustom_BSplineRestriction::SurfaceError() const
0095 {
0096   return mySurfaceError;
0097 }
0098 
0099 //=================================================================================================
0100 
0101 inline void ShapeCustom_BSplineRestriction::SetPriority(const bool Degree)
0102 {
0103   myDeg = Degree;
0104 }
0105 
0106 //=================================================================================================
0107 
0108 inline void ShapeCustom_BSplineRestriction::SetConvRational(const bool Rational)
0109 {
0110   myRational = Rational;
0111 }
0112 
0113 //=================================================================================================
0114 
0115 inline occ::handle<ShapeCustom_RestrictionParameters> ShapeCustom_BSplineRestriction::
0116   GetRestrictionParameters() const
0117 {
0118   return myParameters;
0119 }
0120 
0121 //=================================================================================================
0122 
0123 inline void ShapeCustom_BSplineRestriction::SetRestrictionParameters(
0124   const occ::handle<ShapeCustom_RestrictionParameters>& aModes)
0125 {
0126   myParameters = aModes;
0127 }