Salome HOME
Update SketchBuilder to work on faces with holes (issue #1320)
[modules/shaper.git] / src / ModelAPI / ModelAPI_AttributeSelectionList.h
index c94062ba3e29ac664e929ac51a97355a25d40b52..0c875c3365ec8e35df1a87b04133c7bde0c67a25 100644 (file)
@@ -29,12 +29,16 @@ class ModelAPI_AttributeSelectionList : public ModelAPI_Attribute
                       const bool theTemporarily = false) = 0;
 
   /// Adds the new reference to the end of the list by the naming name of the selected shape
-  /// The type of shape is taken from the current selection type
-  virtual void append(std::string theNamingName) = 0;
+  /// The type of shape is taken from the current selection type if the given is empty
+  virtual void append(const std::string theNamingName, const std::string& theType = "") = 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;
+
   /// Returns the number of selection attributes in the list
   virtual int size() = 0;