X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_Events.h;h=02fdadb0936d97a68e6167a9aa5e4476b4364ac1;hb=d5c7ad3c50f89a2ddc2de1866ffb7f09397f3be2;hp=0b250ebd53e24493c8f0b4b93e42841d71b53aa4;hpb=59d7c196ce4f5ed43cb550ee5caecd68676abfb3;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_Events.h b/src/ModelAPI/ModelAPI_Events.h index 0b250ebd5..02fdadb09 100644 --- a/src/ModelAPI/ModelAPI_Events.h +++ b/src/ModelAPI/ModelAPI_Events.h @@ -486,6 +486,7 @@ class ModelAPI_ObjectMovedMessage : public Events_Message { ObjectPtr myMovedObject; AttributePtr myMovedAttribute; + int myMovedPointIndex; std::shared_ptr myOriginalPosition; std::shared_ptr myCurrentPosition; @@ -496,7 +497,10 @@ public: /// Set object which is being moved (if the message already contains attribute it will be cleared) MODELAPI_EXPORT void setMovedObject(const ObjectPtr& theMovedObject); /// Set attribute which is being moved (if the message already contains object it will be cleared) - MODELAPI_EXPORT void setMovedAttribute(const AttributePtr& theMovedAttribute); + /// \param[in] theMovedAttribute moved attribute + /// \param[in] thePointIndex index of the point if the moved attribute is an array of points + MODELAPI_EXPORT void setMovedAttribute(const AttributePtr& theMovedAttribute, + const int thePointIndex = -1); /// Return moved object ObjectPtr movedObject() const @@ -504,6 +508,9 @@ public: /// Return moved attribute AttributePtr movedAttribute() const { return myMovedAttribute; } + /// Return index of the moved point + int movedPointIndex() const + { return myMovedPointIndex; } /// Set original mouse position MODELAPI_EXPORT void setOriginalPosition(double theX, double theY);