Salome HOME
Task 2.4. Ability to modify the radius of circles and arcs of circle with the mouse
[modules/shaper.git] / src / SketchSolver / SketchSolver_Group.h
index fa590266467fe289621e49dd605838b8ab64ae7d..ae10ff58b551ac02b17772e105a913add1604b35 100644 (file)
@@ -17,6 +17,8 @@
 #include <memory>
 #include <map>
 
+class GeomAPI_Pnt2d;
+
 typedef std::map<ConstraintPtr, SolverConstraintPtr> ConstraintConstraintMap;
 
 /** \class   SketchSolver_Group
@@ -57,12 +59,35 @@ class SketchSolver_Group
    */
   bool updateFeature(FeaturePtr theFeature);
 
+#ifdef SUPPORT_NEW_MOVE
+  /** \brief Updates the data corresponding the specified feature moved in GUI.
+   *         Special kind of Fixed constraints is created.
+   *  \param[in] theFeature the feature to be updated
+   *  \param[in] theFrom    start point of the movement
+   *  \param[in] theTo      final point of the movement
+   *  \return \c true, if the feature is really moved
+   */
+  bool moveFeature(FeaturePtr theFeature,
+                   const std::shared_ptr<GeomAPI_Pnt2d>& theFrom,
+                   const std::shared_ptr<GeomAPI_Pnt2d>& theTo);
+  /** \brief Updates the data corresponding the specified point moved in GUI.
+   *         Special kind of Fixed constraints is created.
+   *  \param[in] thePoint the attribute to be updated
+   *  \param[in] theFrom  start point of the movement
+   *  \param[in] theTo    final point of the movement
+   *  \return \c true, if the attribute is really moved
+   */
+  bool movePoint(AttributePtr thePoint,
+                 const std::shared_ptr<GeomAPI_Pnt2d>& theFrom,
+                 const std::shared_ptr<GeomAPI_Pnt2d>& theTo);
+#else
   /** \brief Updates the data corresponding the specified feature moved in GUI.
    *         Additional Fixed constraints are created.
    *  \param[in] theFeature the feature to be updated
    *  \return \c true, if the feature is moved
    */
   bool moveFeature(FeaturePtr theFeature);
+#endif
 
   /// Returns the current workplane
   inline const CompositeFeaturePtr& getWorkplane() const