Warning, /include/opencascade/BRepGProp_TFunction.lxx is written in an unsupported language. File is not indexed.
0001 // Created on: 2005-12-21
0002 // Created by: Sergey KHROMOV
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 //=======================================================================
0017 // function : SetNbKronrodPoints
0018 // purpose :
0019 //=======================================================================
0020
0021 inline void BRepGProp_TFunction::SetNbKronrodPoints(const Standard_Integer theNbPoints)
0022 {
0023 myNbPntOuter = (theNbPoints % 2 == 0) ? theNbPoints + 1 : theNbPoints;
0024 }
0025
0026 //=======================================================================
0027 // function : SetValueType
0028 // purpose :
0029 //=======================================================================
0030
0031 inline void BRepGProp_TFunction::SetValueType(const GProp_ValueType theType)
0032 {
0033 myValueType = theType;
0034 myUFunction.SetValueType(myValueType);
0035 }
0036
0037 //=======================================================================
0038 // function : SetTolerance
0039 // purpose :
0040 //=======================================================================
0041
0042 inline void BRepGProp_TFunction::SetTolerance(const Standard_Real theTolerance)
0043 {
0044 myTolerance = theTolerance;
0045 }
0046
0047 //=======================================================================
0048 // function : TolReached
0049 // purpose :
0050 //=======================================================================
0051
0052 inline Standard_Real BRepGProp_TFunction::ErrorReached() const
0053 {
0054 return myErrReached;
0055 }
0056
0057 //=======================================================================
0058 // function : ErrorReached
0059 // purpose :
0060 //=======================================================================
0061
0062 inline Standard_Real BRepGProp_TFunction::AbsolutError() const
0063 {
0064 return myAbsError;
0065 }