File indexing completed on 2025-01-18 10:02:53
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _AdvApprox_SimpleApprox_HeaderFile
0018 #define _AdvApprox_SimpleApprox_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <Standard_Integer.hxx>
0025 #include <TColStd_HArray1OfReal.hxx>
0026 #include <TColStd_HArray2OfReal.hxx>
0027 #include <GeomAbs_Shape.hxx>
0028 #include <AdvApprox_EvaluatorFunction.hxx>
0029 #include <TColStd_Array1OfInteger.hxx>
0030 #include <TColStd_Array1OfReal.hxx>
0031 #include <Standard_OStream.hxx>
0032 class PLib_JacobiPolynomial;
0033
0034
0035
0036
0037
0038
0039
0040 class AdvApprox_SimpleApprox
0041 {
0042 public:
0043
0044 DEFINE_STANDARD_ALLOC
0045
0046
0047 Standard_EXPORT AdvApprox_SimpleApprox(const Standard_Integer TotalDimension, const Standard_Integer TotalNumSS, const GeomAbs_Shape Continuity, const Standard_Integer WorkDegree, const Standard_Integer NbGaussPoints, const Handle(PLib_JacobiPolynomial)& JacobiBase, const AdvApprox_EvaluatorFunction& Func);
0048
0049
0050
0051
0052
0053
0054
0055 Standard_EXPORT void Perform (const TColStd_Array1OfInteger& LocalDimension, const TColStd_Array1OfReal& LocalTolerancesArray, const Standard_Real First, const Standard_Real Last, const Standard_Integer MaxDegree);
0056
0057 Standard_EXPORT Standard_Boolean IsDone() const;
0058
0059 Standard_EXPORT Standard_Integer Degree() const;
0060
0061
0062 Standard_EXPORT Handle(TColStd_HArray1OfReal) Coefficients() const;
0063
0064
0065 Standard_EXPORT Handle(TColStd_HArray2OfReal) FirstConstr() const;
0066
0067
0068 Standard_EXPORT Handle(TColStd_HArray2OfReal) LastConstr() const;
0069
0070 Standard_EXPORT Handle(TColStd_HArray1OfReal) SomTab() const;
0071
0072 Standard_EXPORT Handle(TColStd_HArray1OfReal) DifTab() const;
0073
0074 Standard_EXPORT Standard_Real MaxError (const Standard_Integer Index) const;
0075
0076 Standard_EXPORT Standard_Real AverageError (const Standard_Integer Index) const;
0077
0078
0079 Standard_EXPORT void Dump (Standard_OStream& o) const;
0080
0081
0082
0083
0084 protected:
0085
0086
0087
0088
0089
0090 private:
0091
0092
0093
0094 Standard_Integer myTotalNumSS;
0095 Standard_Integer myTotalDimension;
0096 Standard_Integer myNbGaussPoints;
0097 Standard_Integer myWorkDegree;
0098 Standard_Integer myNivConstr;
0099 Handle(PLib_JacobiPolynomial) myJacPol;
0100 Handle(TColStd_HArray1OfReal) myTabPoints;
0101 Handle(TColStd_HArray2OfReal) myTabWeights;
0102 Standard_Address myEvaluator;
0103 Standard_Integer myDegree;
0104 Handle(TColStd_HArray1OfReal) myCoeff;
0105 Handle(TColStd_HArray2OfReal) myFirstConstr;
0106 Handle(TColStd_HArray2OfReal) myLastConstr;
0107 Handle(TColStd_HArray1OfReal) mySomTab;
0108 Handle(TColStd_HArray1OfReal) myDifTab;
0109 Handle(TColStd_HArray1OfReal) myMaxError;
0110 Handle(TColStd_HArray1OfReal) myAverageError;
0111 Standard_Boolean done;
0112
0113
0114 };
0115
0116
0117
0118
0119
0120
0121
0122 #endif