File indexing completed on 2025-01-18 10:03:34
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Geom2dConvert_PPoint_HeaderFile
0018 #define _Geom2dConvert_PPoint_HeaderFile
0019
0020 #include <gp_Pnt2d.hxx>
0021 #include <gp_Vec2d.hxx>
0022
0023 class Adaptor2d_Curve2d;
0024
0025
0026 class Geom2dConvert_PPoint
0027 {
0028 public:
0029
0030 Standard_EXPORT inline Geom2dConvert_PPoint ()
0031 : myParameter (::RealLast()),
0032 myPoint (0., 0.),
0033 myD1 (0., 0.) {}
0034
0035
0036 Standard_EXPORT inline Geom2dConvert_PPoint (const Standard_Real theParameter,
0037 const gp_XY& thePoint,
0038 const gp_XY& theD1)
0039 : myParameter (theParameter),
0040 myPoint (thePoint),
0041 myD1 (theD1) {}
0042
0043
0044 Standard_EXPORT Geom2dConvert_PPoint (const Standard_Real theParameter,
0045 const Adaptor2d_Curve2d& theAdaptor);
0046
0047
0048 inline Standard_Real Dist (const Geom2dConvert_PPoint& theOth) const
0049 { return myPoint.Distance(theOth.myPoint); }
0050
0051
0052 inline Standard_Real Parameter () const { return myParameter; }
0053
0054
0055 inline const gp_XY& Point () const { return myPoint.XY(); }
0056
0057
0058 inline const gp_XY& D1 () const { return myD1.XY(); }
0059
0060
0061 inline void SetD1 (const gp_XY& theD1)
0062 { myD1.SetXY (theD1); }
0063
0064
0065 Standard_EXPORT Standard_Boolean operator == (const Geom2dConvert_PPoint&) const;
0066
0067
0068 Standard_EXPORT Standard_Boolean operator != (const Geom2dConvert_PPoint&) const;
0069
0070 private:
0071 Standard_Real myParameter;
0072 gp_Pnt2d myPoint;
0073 gp_Vec2d myD1;
0074 };
0075
0076 #endif