/// will be possible from SMESH module of SALOME.
MODEL_EXPORT virtual int Id();
+ /// Defines the sub-shape by Id
+ /// NOTE: This method is opposite to Id() method.
+ MODEL_EXPORT virtual void setId(int theID);
+
/// Selects (i.e. creates Naming data structure) of sub-shape specifed by textual name
MODEL_EXPORT virtual void selectSubShape(const std::string& theType, const std::string& theSubShapeName);
/// Returns true if recomute of selection become impossible
MODEL_EXPORT virtual bool isInvalid();
+ /// Updates the arguments of selection if something was affected by creation
+ /// or reorder of features upper in the history line (issue #1757)
+ MODEL_EXPORT virtual void updateInHistory();
protected:
/// Objects are created for features automatically
MODEL_EXPORT Model_AttributeSelection(TDF_Label& theLabel);
- /// Performs the selection for the body result (TNaming Selection)
+
+ /// Performs the selection for the body result (TNaming Selection)
/// Performs the selection for the body result (TNaming selection)
virtual void selectBody(
/// Sets the ID of the attribute in Data (called from Data): here it is used for myRef ID setting
MODEL_EXPORT virtual void setID(const std::string theID);
+ /// Returns the name by context. Adds the part name if the context is located in other document
+ std::string contextName(const ResultPtr& theContext) const;
+
friend class Model_Data;
friend class Model_AttributeSelectionList;
};