|
|
|
|
@ -4028,6 +4028,28 @@ void nmWxWellboreTrajectoryDisplay::setCurrentWellboreData(nmDataWellBase* pWell
|
|
|
|
|
m_pCrossSectionViewWidget->resetViewTransform();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void nmWxWellboreTrajectoryDisplay::selectDefaultViewForCurrentWell()
|
|
|
|
|
{
|
|
|
|
|
if (m_pDataWell == nullptr || m_pViewButtonGroup == nullptr ||
|
|
|
|
|
m_pStackedWidget == nullptr)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 多段压裂水平井优先展示平面分段,其余井型优先展示井深截面。
|
|
|
|
|
int nViewId = m_pDataWell->getWellType() ==
|
|
|
|
|
NM_WELL_MODEL::Horizontal_Fractured_Well ? 0 : 1;
|
|
|
|
|
QAbstractButton* pViewButton = m_pViewButtonGroup->button(nViewId);
|
|
|
|
|
if (pViewButton == nullptr)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 程序设置选中状态不会触发buttonClicked,复用统一入口同步页面和工具栏。
|
|
|
|
|
pViewButton->setChecked(true);
|
|
|
|
|
onViewRadioButtonToggled(nViewId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void nmWxWellboreTrajectoryDisplay::set3DViewVisible(bool bVisible)
|
|
|
|
|
{
|
|
|
|
|
if (m_p3DViewRadio == nullptr || m_pStackedWidget == nullptr)
|
|
|
|
|
|