X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_CompositeFeature.h;h=945e88dafe7eb2077fcd9c9f3d44aa82bbf3bc10;hb=ced98007eba772ef7ef3a3e7d98fee8477e8de07;hp=4a86409e2214825cffba19f8263846d9c97dc0b1;hpb=6d1d824304c048a69924a836c4e6fa74d301b95e;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_CompositeFeature.h b/src/ModelAPI/ModelAPI_CompositeFeature.h index 4a86409e2..945e88daf 100644 --- a/src/ModelAPI/ModelAPI_CompositeFeature.h +++ b/src/ModelAPI/ModelAPI_CompositeFeature.h @@ -28,7 +28,8 @@ public: virtual int numberOfSubs(bool forTree = false) const = 0; /// Returns the sub-feature by zero-base index - virtual std::shared_ptr subFeature(const int theIndex, bool forTree = false) = 0; + virtual std::shared_ptr subFeature(const int theIndex, + bool forTree = false) = 0; /// Returns the sub-feature unique identifier in this composite feature by zero-base index virtual int subFeatureId(const int theIndex) const = 0; @@ -39,6 +40,13 @@ public: /// This method to inform that sub-feature is removed and must be removed from the internal data /// structures of the owner (the remove from the document will be done outside just after) virtual void removeFeature(std::shared_ptr theFeature) = 0; + + /// Exchanges IDs of two given features: needed for more correct naming in some cases (issue 769) + MODELAPI_EXPORT virtual void exchangeIDs(std::shared_ptr theFeature1, + std::shared_ptr theFeature2); + + /// in addition removes all subs + MODELAPI_EXPORT virtual void erase(); }; //! Pointer on the composite feature object