X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_AttributeSelection.h;h=40882dde44a8871b1ee8ec21e7afc328db6c53b7;hb=e77818ce255793f73f8188dedd30741f18942643;hp=98d4af7d625254d2b76c55303a811ad808c51008;hpb=8170985e13476f171bb839474ffaf2cce5d0546d;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_AttributeSelection.h b/src/ModelAPI/ModelAPI_AttributeSelection.h index 98d4af7d6..40882dde4 100644 --- a/src/ModelAPI/ModelAPI_AttributeSelection.h +++ b/src/ModelAPI/ModelAPI_AttributeSelection.h @@ -26,6 +26,10 @@ class ModelAPI_AttributeSelection : public ModelAPI_Attribute /// Returns the context of the selection (the whole shape owner) virtual ResultPtr context() = 0; + /// Updates the underlied selection due to the changes in the referenced objects + /// \returns false if update is failed + virtual bool update() = 0; + /// Returns the type of this class of attributes static std::string type() { @@ -50,4 +54,7 @@ class ModelAPI_AttributeSelection : public ModelAPI_Attribute } }; +//! Pointer on double attribute +typedef boost::shared_ptr AttributeSelectionPtr; + #endif