X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Curve.h;h=20e0f0a46ee46b6044b3a1a969cb9da165a2d167;hb=7f873aed4bae5a98dca078209699b54276b46fce;hp=f09f1d375e22af89b48a0d4c43dfda11b9002126;hpb=4783f146b71a48c651523fcf0e12367bcf3d1fa8;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Curve.h b/src/GeomAPI/GeomAPI_Curve.h index f09f1d375..20e0f0a46 100644 --- a/src/GeomAPI/GeomAPI_Curve.h +++ b/src/GeomAPI/GeomAPI_Curve.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: GeomAPI_Curve.hxx // Created: 04 Sep 2014 // Author: Mikhail PONIKAROV @@ -8,6 +10,8 @@ #include #include +class GeomAPI_Pnt; + /**\class GeomAPI_Curve * \ingroup DataModel * \brief Interface to the generic curve object @@ -31,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