X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Curve.h;h=3922217f1deb3c0ac52eccabdd75048c6eb35b3b;hb=ea593bc59e7e9461f6c4e2afd3f24d621edb1011;hp=30b9bd99840b9ebae2cc9637b2f0a055b08e4fd2;hpb=749e980caeebfe4d16441703b7028dbbb1f1d91a;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Curve.h b/src/GeomAPI/GeomAPI_Curve.h index 30b9bd998..3922217f1 100644 --- a/src/GeomAPI/GeomAPI_Curve.h +++ b/src/GeomAPI/GeomAPI_Curve.h @@ -57,13 +57,17 @@ class GeomAPI_Curve : public GeomAPI_Interface GEOMAPI_EXPORT virtual bool isCircle() const; + /// Returns whether the curve is elliptic + GEOMAPI_EXPORT + virtual bool isEllipse() const; + /// Returns start parameter of the curve GEOMAPI_EXPORT - double startParam() const { return myStart; } + double startParam(); /// Returns end parameter of the curve GEOMAPI_EXPORT - double endParam() const { return myEnd; } + double endParam(); /// Returns \c true if the curve is trimmed GEOMAPI_EXPORT @@ -78,6 +82,10 @@ class GeomAPI_Curve : public GeomAPI_Interface GEOMAPI_EXPORT std::shared_ptr getPoint(double theParam); + /// Project point on curve + GEOMAPI_EXPORT const std::shared_ptr project( + const std::shared_ptr& thePoint) const; + public: /// \brief Compare addresses of curves class Comparator