File indexing completed on 2025-01-18 10:03:32
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _GCPnts_DistFunction2d_HeaderFile
0015 #define _GCPnts_DistFunction2d_HeaderFile
0016
0017 #include <math_Function.hxx>
0018 #include <math_MultipleVarFunction.hxx>
0019 #include <Adaptor2d_Curve2d.hxx>
0020
0021
0022
0023
0024
0025
0026 class GCPnts_DistFunction2d : public math_Function
0027 {
0028 public:
0029 Standard_EXPORT GCPnts_DistFunction2d(const Adaptor2d_Curve2d& theCurve,
0030 const Standard_Real U1, const Standard_Real U2);
0031
0032 Standard_EXPORT GCPnts_DistFunction2d(const GCPnts_DistFunction2d& theOther);
0033
0034 Standard_EXPORT virtual Standard_Boolean Value (const Standard_Real X,
0035 Standard_Real& F);
0036 private:
0037 GCPnts_DistFunction2d & operator = (const GCPnts_DistFunction2d & theOther);
0038
0039 const Adaptor2d_Curve2d& myCurve;
0040 gp_Lin2d myLin;
0041 Standard_Real myU1;
0042 Standard_Real myU2;
0043 };
0044
0045
0046
0047
0048 class GCPnts_DistFunction2dMV : public math_MultipleVarFunction
0049 {
0050 public:
0051 Standard_EXPORT GCPnts_DistFunction2dMV(GCPnts_DistFunction2d& theCurvLinDist);
0052
0053 Standard_EXPORT virtual Standard_Boolean Value (const math_Vector& X,
0054 Standard_Real& F);
0055
0056
0057 Standard_EXPORT virtual Standard_Integer NbVariables() const;
0058
0059 private:
0060 GCPnts_DistFunction2dMV & operator = (const GCPnts_DistFunction2dMV & theOther);
0061 GCPnts_DistFunction2d& myMaxCurvLinDist;
0062 };
0063
0064
0065
0066 #endif