|
||||
File indexing completed on 2025-01-18 10:02:53
0001 // Created on: 1998-02-18 0002 // Created by: Jeanine PANCIATICI 0003 // Copyright (c) 1998-1999 Matra Datavision 0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS 0005 // 0006 // This file is part of Open CASCADE Technology software library. 0007 // 0008 // This library is free software; you can redistribute it and/or modify it under 0009 // the terms of the GNU Lesser General Public License version 2.1 as published 0010 // by the Free Software Foundation, with special exception defined in the file 0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0012 // distribution for complete text of the license and disclaimer of any warranty. 0013 // 0014 // Alternatively, this file may be used under the terms of Open CASCADE 0015 // commercial license or contractual agreement. 0016 0017 #ifndef _Adaptor3d_InterFunc_HeaderFile 0018 #define _Adaptor3d_InterFunc_HeaderFile 0019 0020 #include <math_FunctionWithDerivative.hxx> 0021 0022 class Adaptor2d_Curve2d; 0023 0024 //! Used to find the points U(t) = U0 or V(t) = V0 in 0025 //! order to determine the Cn discontinuities of an 0026 //! Adpator_CurveOnSurface relatively to the 0027 //! discontinuities of the surface. Used to 0028 //! find the roots of the functions 0029 class Adaptor3d_InterFunc : public math_FunctionWithDerivative 0030 { 0031 public: 0032 0033 DEFINE_STANDARD_ALLOC 0034 0035 0036 //! build the function U(t)=FixVal if Fix =1 or 0037 //! V(t)=FixVal if Fix=2 0038 Standard_EXPORT Adaptor3d_InterFunc(const Handle(Adaptor2d_Curve2d)& C, const Standard_Real FixVal, const Standard_Integer Fix); 0039 0040 //! computes the value <F>of the function for the variable <X>. 0041 //! Returns True if the calculation were successfully done, 0042 //! False otherwise. 0043 Standard_EXPORT Standard_Boolean Value (const Standard_Real X, Standard_Real& F); 0044 0045 //! computes the derivative <D> of the function 0046 //! for the variable <X>. 0047 //! Returns True if the calculation were successfully done, 0048 //! False otherwise. 0049 Standard_EXPORT Standard_Boolean Derivative (const Standard_Real X, Standard_Real& D); 0050 0051 //! computes the value <F> and the derivative <D> of the 0052 //! function for the variable <X>. 0053 //! Returns True if the calculation were successfully done, 0054 //! False otherwise. 0055 Standard_EXPORT Standard_Boolean Values (const Standard_Real X, Standard_Real& F, Standard_Real& D); 0056 0057 private: 0058 0059 Handle(Adaptor2d_Curve2d) myCurve2d; 0060 Standard_Real myFixVal; 0061 Standard_Integer myFix; 0062 0063 }; 0064 0065 #endif // _Adaptor3d_InterFunc_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |