From eab95def22ec1527eea81185f89263fa68ed037d Mon Sep 17 00:00:00 2001 From: szy Date: Thu, 25 Dec 2014 18:41:12 +0300 Subject: [PATCH] Small fix to register selected name. --- src/Model/Model_AttributeSelection.cpp | 21 ++++++++++++++++----- src/ModelAPI/ModelAPI_AttributeSelection.h | 5 ++++- 2 files changed, 20 insertions(+), 6 deletions(-) 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() { -- 2.39.2