Salome HOME
Improve rigid constraint presentation
[modules/shaper.git] / src / GeomAPI / GeomAPI_Curve.h
index f09654a8c941328b2f0554a6ccf9035589ec09d4..20e0f0a46ee46b6044b3a1a969cb9da165a2d167 100644 (file)
@@ -10,6 +10,8 @@
 #include <GeomAPI_Shape.h>
 #include <memory>
 
+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<GeomAPI_Pnt> getPoint(double theParam);
+
+private:
+  double myStart;
+  double myEnd;
 };
 
 #endif