Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:38

0001 // Created on: 1997-05-27
0002 // Created by: Sergey SOKOLOV
0003 // Copyright (c) 1997-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 _PLib_DoubleJacobiPolynomial_HeaderFile
0018 #define _PLib_DoubleJacobiPolynomial_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <TColStd_HArray1OfReal.hxx>
0025 #include <Standard_Integer.hxx>
0026 class PLib_JacobiPolynomial;
0027 
0028 
0029 
0030 class PLib_DoubleJacobiPolynomial 
0031 {
0032 public:
0033 
0034   DEFINE_STANDARD_ALLOC
0035 
0036   
0037   Standard_EXPORT PLib_DoubleJacobiPolynomial();
0038   
0039   Standard_EXPORT PLib_DoubleJacobiPolynomial(const Handle(PLib_JacobiPolynomial)& JacPolU, const Handle(PLib_JacobiPolynomial)& JacPolV);
0040   
0041   Standard_EXPORT Standard_Real MaxErrorU (const Standard_Integer Dimension, const Standard_Integer DegreeU, const Standard_Integer DegreeV, const Standard_Integer dJacCoeff, const TColStd_Array1OfReal& JacCoeff) const;
0042   
0043   Standard_EXPORT Standard_Real MaxErrorV (const Standard_Integer Dimension, const Standard_Integer DegreeU, const Standard_Integer DegreeV, const Standard_Integer dJacCoeff, const TColStd_Array1OfReal& JacCoeff) const;
0044   
0045   Standard_EXPORT Standard_Real MaxError (const Standard_Integer Dimension, const Standard_Integer MinDegreeU, const Standard_Integer MaxDegreeU, const Standard_Integer MinDegreeV, const Standard_Integer MaxDegreeV, const Standard_Integer dJacCoeff, const TColStd_Array1OfReal& JacCoeff, const Standard_Real Error) const;
0046   
0047   Standard_EXPORT void ReduceDegree (const Standard_Integer Dimension, const Standard_Integer MinDegreeU, const Standard_Integer MaxDegreeU, const Standard_Integer MinDegreeV, const Standard_Integer MaxDegreeV, const Standard_Integer dJacCoeff, const TColStd_Array1OfReal& JacCoeff, const Standard_Real EpmsCut, Standard_Real& MaxError, Standard_Integer& NewDegreeU, Standard_Integer& NewDegreeV) const;
0048   
0049   Standard_EXPORT Standard_Real AverageError (const Standard_Integer Dimension, const Standard_Integer DegreeU, const Standard_Integer DegreeV, const Standard_Integer dJacCoeff, const TColStd_Array1OfReal& JacCoeff) const;
0050   
0051   Standard_EXPORT void WDoubleJacobiToCoefficients (const Standard_Integer Dimension, const Standard_Integer DegreeU, const Standard_Integer DegreeV, const TColStd_Array1OfReal& JacCoeff, TColStd_Array1OfReal& Coefficients) const;
0052   
0053   //! returns myJacPolU;
0054     Handle(PLib_JacobiPolynomial) U() const;
0055   
0056   //! returns myJacPolV;
0057     Handle(PLib_JacobiPolynomial) V() const;
0058   
0059   //! returns myTabMaxU;
0060     Handle(TColStd_HArray1OfReal) TabMaxU() const;
0061   
0062   //! returns myTabMaxV;
0063     Handle(TColStd_HArray1OfReal) TabMaxV() const;
0064 
0065 
0066 
0067 
0068 protected:
0069 
0070 
0071 
0072 
0073 
0074 private:
0075 
0076 
0077 
0078   Handle(PLib_JacobiPolynomial) myJacPolU;
0079   Handle(PLib_JacobiPolynomial) myJacPolV;
0080   Handle(TColStd_HArray1OfReal) myTabMaxU;
0081   Handle(TColStd_HArray1OfReal) myTabMaxV;
0082 
0083 
0084 };
0085 
0086 
0087 #include <PLib_DoubleJacobiPolynomial.lxx>
0088 
0089 
0090 
0091 
0092 
0093 #endif // _PLib_DoubleJacobiPolynomial_HeaderFile