Salome HOME
Merge branch 'master' of https://codev-tuleap.cea.fr/plugins/git/salome/shaper
[modules/shaper.git] / src / ModelAPI / ModelAPI_AttributeSelection.h
index 9829bde7981cc73f8efa15b205a43dd53197a3e3..212e83be9941a605b78cd7c69ee5c9903eef3403 100644 (file)
@@ -108,12 +108,20 @@ class ModelAPI_AttributeSelection : public ModelAPI_Attribute
   virtual void selectSubShape(const std::string& theType,
                               const std::shared_ptr<GeomAPI_Pnt>& thePoint) = 0;
 
+  /// Selects sub-shape by weak naming index
+  virtual void selectSubShape(const std::string& theType,
+    const std::string& theContextName, const int theIndex) = 0;
+
   /// Returns true if recompute of selection become impossible
   virtual bool isInvalid() = 0;
 
+  /// Returns true if the name was stored using weak naming principle
+  MODELAPI_EXPORT virtual bool isWeakNaming() = 0;
+
   /// To virtually destroy the fields of successors
   MODELAPI_EXPORT virtual ~ModelAPI_AttributeSelection();
 
+
  protected:
   /// Objects are created for features automatically
   MODELAPI_EXPORT ModelAPI_AttributeSelection();