From: szy Date: Thu, 25 Dec 2014 15:41:12 +0000 (+0300) Subject: Small fix to register selected name. X-Git-Tag: V_0.7.0_rc1~42^2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=eab95def22ec1527eea81185f89263fa68ed037d;p=modules%2Fshaper.git Small fix to register selected name. --- diff --git a/src/Model/Model_AttributeSelection.cpp b/src/Model/Model_AttributeSelection.cpp index ea00eaaec..f418c7b77 100644 --- a/src/Model/Model_AttributeSelection.cpp +++ b/src/Model/Model_AttributeSelection.cpp @@ -442,7 +442,7 @@ TDF_Label Model_AttributeSelection::selectionLabel() return myRef.myRef->Label().FindChild(1); } -#define DEB_NAME 1 +#define FIX_BUG1 1 std::string GetShapeName(std::shared_ptr theDoc, const TopoDS_Shape& theShape, const TDF_Label& theLabel) { @@ -573,21 +573,30 @@ std::string Model_AttributeSelection::buildSubShapeName(std::shared_ptraddNamingName(selectionLabel(), aName); } return aName; } diff --git a/src/ModelAPI/ModelAPI_AttributeSelection.h b/src/ModelAPI/ModelAPI_AttributeSelection.h index 4e8f2a51e..b34a24d1c 100644 --- a/src/ModelAPI/ModelAPI_AttributeSelection.h +++ b/src/ModelAPI/ModelAPI_AttributeSelection.h @@ -44,9 +44,12 @@ class ModelAPI_AttributeSelection : public ModelAPI_Attribute return type(); } - /// builds name of the SubShape + /// Builds name of the SubShape virtual std::string buildSubShapeName(std::shared_ptr theSubShape, const ResultPtr& theContext) = 0; + + /// Selects sub-shape by Name + //virtual selectSubShape(const std::string& theSubShapeName, const std::string& theContextShapeName) /// To virtually destroy the fields of successors virtual ~ModelAPI_AttributeSelection() {