File indexing completed on 2025-01-18 10:03:29
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Extrema_PCFOfEPCOfExtPC2d_HeaderFile
0018 #define _Extrema_PCFOfEPCOfExtPC2d_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022
0023 #include <gp_Pnt2d.hxx>
0024 #include <TColStd_SequenceOfReal.hxx>
0025 #include <TColStd_SequenceOfInteger.hxx>
0026 #include <Extrema_SequenceOfPOnCurv2d.hxx>
0027 #include <Standard_Integer.hxx>
0028 #include <math_FunctionWithDerivative.hxx>
0029 class Standard_OutOfRange;
0030 class Standard_TypeMismatch;
0031 class Adaptor2d_Curve2d;
0032 class Extrema_Curve2dTool;
0033 class Extrema_POnCurv2d;
0034 class gp_Pnt2d;
0035 class gp_Vec2d;
0036
0037 class Extrema_PCFOfEPCOfExtPC2d : public math_FunctionWithDerivative
0038 {
0039 public:
0040
0041 DEFINE_STANDARD_ALLOC
0042
0043
0044 Standard_EXPORT Extrema_PCFOfEPCOfExtPC2d();
0045
0046 Standard_EXPORT Extrema_PCFOfEPCOfExtPC2d(const gp_Pnt2d& P, const Adaptor2d_Curve2d& C);
0047
0048
0049 Standard_EXPORT void Initialize (const Adaptor2d_Curve2d& C);
0050
0051
0052 Standard_EXPORT void SetPoint (const gp_Pnt2d& P);
0053
0054
0055 Standard_EXPORT Standard_Boolean Value (const Standard_Real U, Standard_Real& F) Standard_OVERRIDE;
0056
0057
0058 Standard_EXPORT Standard_Boolean Derivative (const Standard_Real U, Standard_Real& DF) Standard_OVERRIDE;
0059
0060
0061 Standard_EXPORT Standard_Boolean Values (const Standard_Real U, Standard_Real& F, Standard_Real& DF) Standard_OVERRIDE;
0062
0063
0064 Standard_EXPORT virtual Standard_Integer GetStateNumber() Standard_OVERRIDE;
0065
0066
0067 Standard_EXPORT Standard_Integer NbExt() const;
0068
0069
0070 Standard_EXPORT Standard_Real SquareDistance (const Standard_Integer N) const;
0071
0072
0073 Standard_EXPORT Standard_Boolean IsMin (const Standard_Integer N) const;
0074
0075
0076 Standard_EXPORT const Extrema_POnCurv2d& Point (const Standard_Integer N) const;
0077
0078
0079 Standard_EXPORT void SubIntervalInitialize (const Standard_Real theUfirst, const Standard_Real theUlast);
0080
0081
0082
0083 Standard_EXPORT Standard_Real SearchOfTolerance();
0084
0085
0086
0087
0088 protected:
0089
0090
0091
0092
0093
0094 private:
0095
0096
0097
0098 gp_Pnt2d myP;
0099 Standard_Address myC;
0100 Standard_Real myU;
0101 gp_Pnt2d myPc;
0102 Standard_Real myD1f;
0103 TColStd_SequenceOfReal mySqDist;
0104 TColStd_SequenceOfInteger myIsMin;
0105 Extrema_SequenceOfPOnCurv2d myPoint;
0106 Standard_Boolean myPinit;
0107 Standard_Boolean myCinit;
0108 Standard_Boolean myD1Init;
0109 Standard_Real myTol;
0110 Standard_Integer myMaxDerivOrder;
0111 Standard_Real myUinfium;
0112 Standard_Real myUsupremum;
0113
0114
0115 };
0116
0117
0118
0119
0120
0121
0122
0123 #endif