解决按比例缩放后的绘图变形问题,参照道宽改变,岩性、井壁取心外形不变
This commit is contained in:
parent
a74b15aa18
commit
da81be0e62
|
|
@ -3134,6 +3134,9 @@ void FormDraw::setRowHeight(double dHight, QProgressBar *progressBar, int iSplit
|
||||||
|
|
||||||
//emit CallManage::getInstance()->sig_ChangeLeftScale(m_strUuid, form->m_strSlfName, m_strWellName, m_strTrackName, form->m_strLineName, form->m_iX1);
|
//emit CallManage::getInstance()->sig_ChangeLeftScale(m_strUuid, form->m_strSlfName, m_strWellName, m_strTrackName, form->m_strLineName, form->m_iX1);
|
||||||
|
|
||||||
|
//比例改变后,避免井壁取心等组件变形,需要重新刷新
|
||||||
|
form->resetPosition();
|
||||||
|
|
||||||
form->replot();//屏蔽,缩减时间
|
form->replot();//屏蔽,缩减时间
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9970,7 +9970,17 @@ void QMyCustomPlot::resetPosition_SwallCore()
|
||||||
it++;
|
it++;
|
||||||
//
|
//
|
||||||
QCPRange tmpRange = pDraggableRect->getRange();
|
QCPRange tmpRange = pDraggableRect->getRange();
|
||||||
pDraggableRect->setRange(tmpRange.lower, tmpRange.upper, false);
|
|
||||||
|
//--------------------------
|
||||||
|
// 设置初始范围
|
||||||
|
double h = 32;
|
||||||
|
double Depth = tmpRange.lower;
|
||||||
|
double x1 = this->xAxis->coordToPixel(Depth);
|
||||||
|
double Depth2 = this->xAxis->pixelToCoord(x1-h);
|
||||||
|
//--------------------------
|
||||||
|
|
||||||
|
//
|
||||||
|
pDraggableRect->setRange(Depth, Depth2, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user