File indexing completed on 2026-06-06 08:35:55
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Extrema_ExtPElC2d_HeaderFile
0018 #define _Extrema_ExtPElC2d_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022
0023 #include <Standard_Integer.hxx>
0024 #include <Extrema_POnCurv2d.hxx>
0025 class gp_Pnt2d;
0026 class gp_Lin2d;
0027 class gp_Circ2d;
0028 class gp_Elips2d;
0029 class gp_Hypr2d;
0030 class gp_Parab2d;
0031
0032
0033
0034
0035 class Extrema_ExtPElC2d
0036 {
0037 public:
0038 DEFINE_STANDARD_ALLOC
0039
0040 Standard_EXPORT Extrema_ExtPElC2d();
0041
0042
0043
0044 Standard_EXPORT Extrema_ExtPElC2d(const gp_Pnt2d& P,
0045 const gp_Lin2d& C,
0046 const Standard_Real Tol,
0047 const Standard_Real Uinf,
0048 const Standard_Real Usup);
0049
0050 Standard_EXPORT void Perform(const gp_Pnt2d& P,
0051 const gp_Lin2d& L,
0052 const Standard_Real Tol,
0053 const Standard_Real Uinf,
0054 const Standard_Real Usup);
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065
0066
0067 Standard_EXPORT Extrema_ExtPElC2d(const gp_Pnt2d& P,
0068 const gp_Circ2d& C,
0069 const Standard_Real Tol,
0070 const Standard_Real Uinf,
0071 const Standard_Real Usup);
0072
0073 Standard_EXPORT void Perform(const gp_Pnt2d& P,
0074 const gp_Circ2d& C,
0075 const Standard_Real Tol,
0076 const Standard_Real Uinf,
0077 const Standard_Real Usup);
0078
0079
0080
0081
0082
0083
0084
0085
0086
0087
0088
0089
0090
0091 Standard_EXPORT Extrema_ExtPElC2d(const gp_Pnt2d& P,
0092 const gp_Elips2d& C,
0093 const Standard_Real Tol,
0094 const Standard_Real Uinf,
0095 const Standard_Real Usup);
0096
0097 Standard_EXPORT void Perform(const gp_Pnt2d& P,
0098 const gp_Elips2d& C,
0099 const Standard_Real Tol,
0100 const Standard_Real Uinf,
0101 const Standard_Real Usup);
0102
0103
0104
0105
0106
0107
0108
0109 Standard_EXPORT Extrema_ExtPElC2d(const gp_Pnt2d& P,
0110 const gp_Hypr2d& C,
0111 const Standard_Real Tol,
0112 const Standard_Real Uinf,
0113 const Standard_Real Usup);
0114
0115 Standard_EXPORT void Perform(const gp_Pnt2d& P,
0116 const gp_Hypr2d& C,
0117 const Standard_Real Tol,
0118 const Standard_Real Uinf,
0119 const Standard_Real Usup);
0120
0121
0122
0123
0124
0125
0126
0127 Standard_EXPORT Extrema_ExtPElC2d(const gp_Pnt2d& P,
0128 const gp_Parab2d& C,
0129 const Standard_Real Tol,
0130 const Standard_Real Uinf,
0131 const Standard_Real Usup);
0132
0133 Standard_EXPORT void Perform(const gp_Pnt2d& P,
0134 const gp_Parab2d& C,
0135 const Standard_Real Tol,
0136 const Standard_Real Uinf,
0137 const Standard_Real Usup);
0138
0139
0140 Standard_EXPORT Standard_Boolean IsDone() const;
0141
0142
0143 Standard_EXPORT Standard_Integer NbExt() const;
0144
0145
0146 Standard_EXPORT Standard_Real SquareDistance(const Standard_Integer N) const;
0147
0148
0149
0150 Standard_EXPORT Standard_Boolean IsMin(const Standard_Integer N) const;
0151
0152
0153 Standard_EXPORT const Extrema_POnCurv2d& Point(const Standard_Integer N) const;
0154
0155 protected:
0156 private:
0157 Standard_Boolean myDone;
0158 Standard_Integer myNbExt;
0159 Standard_Real mySqDist[4];
0160 Standard_Boolean myIsMin[4];
0161 Extrema_POnCurv2d myPoint[4];
0162 };
0163
0164 #endif