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