File indexing completed on 2025-01-18 10:03:30
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _FEmTool_Curve_HeaderFile
0018 #define _FEmTool_Curve_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <Standard_Integer.hxx>
0024 #include <TColStd_HArray1OfReal.hxx>
0025 #include <TColStd_Array1OfInteger.hxx>
0026 #include <TColStd_Array1OfReal.hxx>
0027 #include <Standard_Real.hxx>
0028 #include <Standard_Transient.hxx>
0029 #include <TColStd_Array2OfReal.hxx>
0030 class PLib_Base;
0031
0032
0033 class FEmTool_Curve;
0034 DEFINE_STANDARD_HANDLE(FEmTool_Curve, Standard_Transient)
0035
0036
0037 class FEmTool_Curve : public Standard_Transient
0038 {
0039
0040 public:
0041
0042
0043 Standard_EXPORT FEmTool_Curve(const Standard_Integer Dimension, const Standard_Integer NbElements, const Handle(PLib_Base)& TheBase, const Standard_Real Tolerance);
0044
0045 Standard_EXPORT TColStd_Array1OfReal& Knots() const;
0046
0047 Standard_EXPORT void SetElement (const Standard_Integer IndexOfElement, const TColStd_Array2OfReal& Coeffs);
0048
0049 Standard_EXPORT void D0 (const Standard_Real U, TColStd_Array1OfReal& Pnt);
0050
0051 Standard_EXPORT void D1 (const Standard_Real U, TColStd_Array1OfReal& Vec);
0052
0053 Standard_EXPORT void D2 (const Standard_Real U, TColStd_Array1OfReal& Vec);
0054
0055 Standard_EXPORT void Length (const Standard_Real FirstU, const Standard_Real LastU, Standard_Real& Length);
0056
0057 Standard_EXPORT void GetElement (const Standard_Integer IndexOfElement, TColStd_Array2OfReal& Coeffs);
0058
0059
0060 Standard_EXPORT void GetPolynom (TColStd_Array1OfReal& Coeffs);
0061
0062 Standard_EXPORT Standard_Integer NbElements() const;
0063
0064 Standard_EXPORT Standard_Integer Dimension() const;
0065
0066 Standard_EXPORT Handle(PLib_Base) Base() const;
0067
0068 Standard_EXPORT Standard_Integer Degree (const Standard_Integer IndexOfElement) const;
0069
0070 Standard_EXPORT void SetDegree (const Standard_Integer IndexOfElement, const Standard_Integer Degree);
0071
0072 Standard_EXPORT void ReduceDegree (const Standard_Integer IndexOfElement, const Standard_Real Tol, Standard_Integer& NewDegree, Standard_Real& MaxError);
0073
0074
0075
0076
0077 DEFINE_STANDARD_RTTIEXT(FEmTool_Curve,Standard_Transient)
0078
0079 protected:
0080
0081
0082
0083
0084 private:
0085
0086
0087 Standard_EXPORT void Update (const Standard_Integer Element, const Standard_Integer Order);
0088
0089 Standard_Integer myNbElements;
0090 Standard_Integer myDimension;
0091 Handle(PLib_Base) myBase;
0092 Handle(TColStd_HArray1OfReal) myKnots;
0093 TColStd_Array1OfInteger myDegree;
0094 TColStd_Array1OfReal myCoeff;
0095 TColStd_Array1OfReal myPoly;
0096 TColStd_Array1OfReal myDeri;
0097 TColStd_Array1OfReal myDsecn;
0098 TColStd_Array1OfInteger HasPoly;
0099 TColStd_Array1OfInteger HasDeri;
0100 TColStd_Array1OfInteger HasSecn;
0101 TColStd_Array1OfReal myLength;
0102 Standard_Real Uf;
0103 Standard_Real Ul;
0104 Standard_Real Denom;
0105 Standard_Real USum;
0106 Standard_Integer myIndex;
0107 Standard_Integer myPtr;
0108
0109
0110 };
0111
0112
0113
0114
0115
0116
0117
0118 #endif