X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Curve.h;h=20e0f0a46ee46b6044b3a1a969cb9da165a2d167;hb=7f873aed4bae5a98dca078209699b54276b46fce;hp=f09654a8c941328b2f0554a6ccf9035589ec09d4;hpb=f1cd93fd02a54259f72e3191d037323a496b2bef;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Curve.h b/src/GeomAPI/GeomAPI_Curve.h index f09654a8c..20e0f0a46 100644 --- a/src/GeomAPI/GeomAPI_Curve.h +++ b/src/GeomAPI/GeomAPI_Curve.h @@ -10,6 +10,8 @@ #include #include +class GeomAPI_Pnt; + /**\class GeomAPI_Curve * \ingroup DataModel * \brief Interface to the generic curve object @@ -33,6 +35,19 @@ class GEOMAPI_EXPORT GeomAPI_Curve : public GeomAPI_Interface /// Returns whether the curve is circular virtual bool isCircle() const; + /// Returns start parameter of the curve + double startParam() const { return myStart; } + + /// Returns end parameter of the curve + double endParam() const { return myEnd; } + + /// Returns point on the curve by parameter + /// \param theParam parameter on the curve + std::shared_ptr getPoint(double theParam); + +private: + double myStart; + double myEnd; }; #endif