From 0c98bb90a7156da981f2f10c1773cb1973e1c7ab Mon Sep 17 00:00:00 2001 From: lvjunjie Date: Tue, 28 Jul 2026 17:04:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BA=95=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=8F=98=E6=9B=B4=E7=9A=84=E5=A2=9E=E9=87=8F=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 拖动井时直接更新坐标和半径属性 - 移除井移动后的全量参数刷新 - 移除新增井后的重复全量属性广播 --- Src/nmNum/nmData/nmDataAnalyzeManager.cpp | 4 ---- Src/nmNum/nmPlot/nmPlotGraphicBinder.cpp | 18 +++--------------- 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/Src/nmNum/nmData/nmDataAnalyzeManager.cpp b/Src/nmNum/nmData/nmDataAnalyzeManager.cpp index 2611e0b..fee94c3 100644 --- a/Src/nmNum/nmData/nmDataAnalyzeManager.cpp +++ b/Src/nmNum/nmData/nmDataAnalyzeManager.cpp @@ -1445,8 +1445,6 @@ void nmDataAnalyzeManager::appendWellData(ZxDataWell* pWellData) } } emit sigWellAdded(code, name, paras); - if (m_pAttrRegistry) - m_pAttrRegistry->refreshAll(); } } @@ -1471,8 +1469,6 @@ void nmDataAnalyzeManager::appendNmWellData(nmDataWellBase* pWellData) } } emit sigWellAdded(code, name, paras); - if (m_pAttrRegistry) - m_pAttrRegistry->refreshAll(); } } diff --git a/Src/nmNum/nmPlot/nmPlotGraphicBinder.cpp b/Src/nmNum/nmPlot/nmPlotGraphicBinder.cpp index 92e1986..9f793b7 100644 --- a/Src/nmNum/nmPlot/nmPlotGraphicBinder.cpp +++ b/Src/nmNum/nmPlot/nmPlotGraphicBinder.cpp @@ -16,7 +16,6 @@ #include "nmDataRegion.h" #include "nmObjBase.h" #include "nmDataAnalyzeManager.h" -#include "nmAttrRegistry.h" #include "nmObjPointWell.h" #include "nmDataWellBase.h" #include "nmDataVerticalFracturedWell.h" @@ -1694,15 +1693,9 @@ void nmPlotGraphicBinder::syncWellMoveFromGraphic(nmObjPointWell* pGraphic, pWellData->setLocationX(newLocation.x()); pWellData->setLocationY(newLocation.y()); - nmDataAttribute tempAttr = pData->getX(); - tempAttr.setValue(pWellData->getLocationX()); - pData->setX(tempAttr); - tempAttr = pData->getY(); - tempAttr.setValue(pWellData->getLocationY()); - pData->setY(tempAttr); - tempAttr = pData->getRadius(); - tempAttr.setValue(pWellData->getWellRadius()); - pData->setRadius(tempAttr); + pData->getX().setValue(pWellData->getLocationX()); + pData->getY().setValue(pWellData->getLocationY()); + pData->getRadius().setValue(pWellData->getWellRadius()); if (wellType == NM_WELL_MODEL::Vertical_Fractured_Well) { // 裂缝井位置变化后,裂缝端点需要跟着重新计算。 @@ -1715,11 +1708,6 @@ void nmPlotGraphicBinder::syncWellMoveFromGraphic(nmObjPointWell* pGraphic, pHFWell->setFracs(); } } - - // 本轮移动数据写回完成后,统一刷新参数面板中的已注册属性。 - if (m_pDataMgr != nullptr && m_pDataMgr->getAttrRegistry() != nullptr) { - m_pDataMgr->getAttrRegistry()->refreshAll(); - } } bool nmPlotGraphicBinder::ensureSelectedWellData(nmObjPointWell* pGraphic,