X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Curve.h;h=ecb8a79f80196665eb6cd7741b652bdd1184070e;hb=49c180426b47ea37eee3a779362fef3b78ab7cb9;hp=f09654a8c941328b2f0554a6ccf9035589ec09d4;hpb=f1cd93fd02a54259f72e3191d037323a496b2bef;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Curve.h b/src/GeomAPI/GeomAPI_Curve.h index f09654a8c..ecb8a79f8 100644 --- a/src/GeomAPI/GeomAPI_Curve.h +++ b/src/GeomAPI/GeomAPI_Curve.h @@ -10,29 +10,52 @@ #include #include +class GeomAPI_Pnt; + /**\class GeomAPI_Curve * \ingroup DataModel * \brief Interface to the generic curve object */ -class GEOMAPI_EXPORT GeomAPI_Curve : public GeomAPI_Interface +class GeomAPI_Curve : public GeomAPI_Interface { public: /// Creation of empty (null) shape + GEOMAPI_EXPORT GeomAPI_Curve(); /// Creates a curve from the shape (edge) + GEOMAPI_EXPORT GeomAPI_Curve(const std::shared_ptr& theShape); /// Returns true if curve is not initialized + GEOMAPI_EXPORT bool isNull() const; /// Returns whether the curve is linear + GEOMAPI_EXPORT virtual bool isLine() const; /// Returns whether the curve is circular + GEOMAPI_EXPORT virtual bool isCircle() const; + /// Returns start parameter of the curve + GEOMAPI_EXPORT + double startParam() const { return myStart; } + + /// Returns end parameter of the curve + GEOMAPI_EXPORT + double endParam() const { return myEnd; } + + /// Returns point on the curve by parameter + /// \param theParam parameter on the curve + GEOMAPI_EXPORT + std::shared_ptr getPoint(double theParam); + +private: + double myStart; + double myEnd; }; #endif