+ /// 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);
+
+ /// Sets the parent attribute
+ void setParent(Model_AttributeSelectionList* theParent);
+
+ /// Splits theNewShape into sub-shapes of theType type (for the list parent of this attribute)
+ void split(ResultPtr theContext, TopoDS_Shape theNewShape, TopAbs_ShapeEnum theType);
+
+ /// When group position is updated, searches the new context and new values
+ bool searchNewContext(std::shared_ptr<Model_Document> theDoc, const TopoDS_Shape theContShape,
+ ResultPtr theContext, TopoDS_Shape theValShape, TDF_Label theAccessLabel,
+ std::list<ResultPtr>& theResults, TopTools_ListOfShape& theValShapes);
+
+ /// Searches for the newest context, modification of the current, that contains theValue
+ ResultPtr newestContext(
+ const ResultPtr theCurrent, const std::shared_ptr<GeomAPI_Shape> theValue);
+
+ /// computes theShapes list - shapes that were generated/modified/deleted the theValShape
+ /// during creation from new to old context
+ void computeValues(ResultPtr theOldContext, ResultPtr theNewContext, TopoDS_Shape theValShape,
+ TopTools_ListOfShape& theShapes);
+
+ /// Returns true if is geometrical selection.
+ virtual bool isGeometricalSelection() const {
+ return myIsGeometricalSelection;
+ };
+
+ /// Returns the module document label if this selection attribute is not in this document.
+ /// Returns null label otherwise.
+ TDF_Label baseDocumentLab();