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,