Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extrusion fix
[modules/shaper.git]
/
src
/
ModelAPI
/
ModelAPI_AttributeRefList.h
diff --git
a/src/ModelAPI/ModelAPI_AttributeRefList.h
b/src/ModelAPI/ModelAPI_AttributeRefList.h
index 2a282108fb911197c2f837557fa4e62cd827865b..101fc8695959e9a84470cead938bf45f1c6011f9 100644
(file)
--- a/
src/ModelAPI/ModelAPI_AttributeRefList.h
+++ b/
src/ModelAPI/ModelAPI_AttributeRefList.h
@@
-52,12
+52,19
@@
class ModelAPI_AttributeRefList : public ModelAPI_Attribute
///\param theWithEmpty if it is false, counts the not-empty referenced objects only
virtual ObjectPtr object(const int theIndex, const bool theWithEmpty = true) const = 0;
///\param theWithEmpty if it is false, counts the not-empty referenced objects only
virtual ObjectPtr object(const int theIndex, const bool theWithEmpty = true) const = 0;
- /// Substitutes the
feature
by another one. Does nothing if such object is not found.
+ /// Substitutes the
object
by another one. Does nothing if such object is not found.
virtual void substitute(const ObjectPtr& theCurrent, const ObjectPtr& theNew) = 0;
virtual void substitute(const ObjectPtr& theCurrent, const ObjectPtr& theNew) = 0;
+ /// Substitutes the object by another one and back. So, features wil become exchanged in the list
+ virtual void exchange(const ObjectPtr& theObject1, const ObjectPtr& theObject2) = 0;
+
/// Removes the last element in the list.
virtual void removeLast() = 0;
/// Removes the last element in the list.
virtual void removeLast() = 0;
+ /// Removes the elements from the list.
+ /// \param theIndices a list of indices of elements to be removed
+ virtual void remove(const std::set<int>& theIndices) = 0;
+
MODELAPI_EXPORT virtual ~ModelAPI_AttributeRefList();
protected:
/// Objects are created for features automatically
MODELAPI_EXPORT virtual ~ModelAPI_AttributeRefList();
protected:
/// Objects are created for features automatically