|
|
|
@ -73,6 +73,16 @@ nmDataFault* nmPlotGraphicBinder::getFaultDataFor(nmObjLineFault* pGraphic)
|
|
|
|
return m_mapFaultData.value(pGraphic, nullptr);
|
|
|
|
return m_mapFaultData.value(pGraphic, nullptr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 名称同步:检测图元名称与数据名称是否一致,不一致则同步
|
|
|
|
|
|
|
|
void nmPlotGraphicBinder::syncFaultName(nmObjLineFault* pGraphic)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!pGraphic) return;
|
|
|
|
|
|
|
|
nmDataFault* pData = m_mapFaultData.value(pGraphic, nullptr);
|
|
|
|
|
|
|
|
if (pData && pData->getFaultName() != pGraphic->getName()) {
|
|
|
|
|
|
|
|
pData->setFaultName(pGraphic->getName());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 切换分析时更新绑定的 DataManager
|
|
|
|
// 切换分析时更新绑定的 DataManager
|
|
|
|
// 旧图元已由 deleteAllPlotObjs 清除,清理残留映射避免悬空指针
|
|
|
|
// 旧图元已由 deleteAllPlotObjs 清除,清理残留映射避免悬空指针
|
|
|
|
void nmPlotGraphicBinder::updateDataMgr(nmDataAnalyzeManager* pDataMgr)
|
|
|
|
void nmPlotGraphicBinder::updateDataMgr(nmDataAnalyzeManager* pDataMgr)
|
|
|
|
@ -265,6 +275,16 @@ nmDataFracture* nmPlotGraphicBinder::getCrackDataFor(nmObjLineCrack* pGraphic)
|
|
|
|
return m_mapCrackData.value(pGraphic, nullptr);
|
|
|
|
return m_mapCrackData.value(pGraphic, nullptr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 名称同步:检测图元名称与数据名称是否一致,不一致则同步
|
|
|
|
|
|
|
|
void nmPlotGraphicBinder::syncCrackName(nmObjLineCrack* pGraphic)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!pGraphic) return;
|
|
|
|
|
|
|
|
nmDataFracture* pData = m_mapCrackData.value(pGraphic, nullptr);
|
|
|
|
|
|
|
|
if (pData && pData->getFractureName() != pGraphic->getName()) {
|
|
|
|
|
|
|
|
pData->setFractureName(pGraphic->getName());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 将裂缝数据值推到图元本地副本
|
|
|
|
// 将裂缝数据值推到图元本地副本
|
|
|
|
void nmPlotGraphicBinder::_pushCrackDataToGraphic(nmObjLineCrack* pGraphic, nmDataFracture* pData)
|
|
|
|
void nmPlotGraphicBinder::_pushCrackDataToGraphic(nmObjLineCrack* pGraphic, nmDataFracture* pData)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|