X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_AttributeSelection.h;h=4ca2ef3db2230fcd79ebd748144f3f6bce4ddf9e;hb=e6655db718a3c9dad621d3990d9ff4c833ac1532;hp=74c77344d5daea843647d8d2c63ad4cf0d1f0d7c;hpb=dfbaae968c07258f014f62094bd75941b5f2d3ff;p=modules%2Fshaper.git diff --git a/src/Model/Model_AttributeSelection.h b/src/Model/Model_AttributeSelection.h index 74c77344d..4ca2ef3db 100644 --- a/src/Model/Model_AttributeSelection.h +++ b/src/Model/Model_AttributeSelection.h @@ -42,6 +42,9 @@ public: /// Returns a textual string of the selection MODEL_EXPORT virtual std::string namingName(); + /// 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); + protected: /// Objects are created for features automatically MODEL_EXPORT Model_AttributeSelection(TDF_Label& theLabel); @@ -50,6 +53,7 @@ protected: /// Performs the selection for the body result (TNaming selection) virtual void selectBody( const ResultPtr& theContext, const std::shared_ptr& theSubShape); + /// Performs the selection for the construction result (selection by index) virtual void selectConstruction( const ResultPtr& theContext, const std::shared_ptr& theSubShape);