X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchSolver%2FSketchSolver_Manager.h;h=d119338cae5682313f9713d910d5924722420654;hb=57f95f226733dbd01fcd42c4b1f842c71560b7d7;hp=ce83c3d9b9355c01143917f250c8c47e0200b1aa;hpb=e77c787fceea6450212f99bcf2028313ba72fd34;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SketchSolver_Manager.h b/src/SketchSolver/SketchSolver_Manager.h index ce83c3d9b..d119338ca 100644 --- a/src/SketchSolver/SketchSolver_Manager.h +++ b/src/SketchSolver/SketchSolver_Manager.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2022 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -85,12 +85,14 @@ protected: const std::shared_ptr& theToPoint); /** \brief Move feature using its moved attribute - * \param[in] theMovedAttribute dragged point attribute of sketch feature - * \param[in] theFromPoint original position of the moved point - * \param[in] theToPoint prefereble position (current position of the mouse) + * \param[in] theMovedAttribute dragged point (array of points) attribute of sketch feature + * \param[in] theMovedPointIndex index of dragged point in an array (-1 otherwise) + * \param[in] theFromPoint original position of the moved point + * \param[in] theToPoint prefereble position (current position of the mouse) * \return \c true if the attribute owner has been changed successfully */ - bool moveAttribute(const std::shared_ptr& theMovedAttribute, + bool moveAttribute(const std::shared_ptr& theMovedAttribute, + const int theMovedPointIndex, const std::shared_ptr& theFromPoint, const std::shared_ptr& theToPoint); @@ -112,6 +114,11 @@ private: * \return Pointer to corresponding group or NULL if the group cannot be created. */ SketchGroupPtr findGroup(std::shared_ptr theFeature); + /** \brief Searches group related to specified composite feature + * \param[in] theSketch sketch to be found + * \return Pointer to corresponding group or NULL if the group cannot be created. + */ + SketchGroupPtr findGroup(std::shared_ptr theSketch); /// \brief Stop sending the Update event until all features updated /// \return \c true, if the last flushed event is Update