Salome HOME
Merge branch 'Dev_1.1.0' of newgeom:newgeom into Dev_1.1.0
[modules/shaper.git] / src / GeomAPI / GeomAPI_Curve.h
index e4f494875c029aec2065b8c6758908886d791ff9..20e0f0a46ee46b6044b3a1a969cb9da165a2d167 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 // File:        GeomAPI_Curve.hxx
 // Created:     04 Sep 2014
 // Author:      Mikhail PONIKAROV
@@ -6,7 +8,9 @@
 #define GeomAPI_Curve_H_
 
 #include <GeomAPI_Shape.h>
-#include <boost/shared_ptr.hpp>
+#include <memory>
+
+class GeomAPI_Pnt;
 
 /**\class GeomAPI_Curve
  * \ingroup DataModel
@@ -20,7 +24,7 @@ class GEOMAPI_EXPORT GeomAPI_Curve : public GeomAPI_Interface
   GeomAPI_Curve();
 
   /// Creates a curve from the shape (edge)
-  GeomAPI_Curve(const boost::shared_ptr<GeomAPI_Shape>& theShape);
+  GeomAPI_Curve(const std::shared_ptr<GeomAPI_Shape>& theShape);
 
   /// Returns true if curve is not initialized
   bool isNull() const;
@@ -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<GeomAPI_Pnt> getPoint(double theParam);
+
+private:
+  double myStart;
+  double myEnd;
 };
 
 #endif