图像道显示深度放大,鼠标移动到对应的位置获取深度
This commit is contained in:
parent
3a621133c7
commit
a6f7b4360e
|
|
@ -758,7 +758,7 @@ void QMyCustomPlot::updateImage(float fTopY, FormInfo* pInfo)
|
||||||
float sdep, edep, flDepthScale = 18.897617f, temp;
|
float sdep, edep, flDepthScale = 18.897617f, temp;
|
||||||
float sdepc = abs(fTopY);// _wave.StartDepth;
|
float sdepc = abs(fTopY);// _wave.StartDepth;
|
||||||
sdep = sdepc;
|
sdep = sdepc;
|
||||||
edep = sdep + 50;
|
edep = sdep + 100;
|
||||||
|
|
||||||
if (edep > m_EDep) edep = m_EDep;
|
if (edep > m_EDep) edep = m_EDep;
|
||||||
if (sdep < m_SDep) sdep = m_SDep;
|
if (sdep < m_SDep) sdep = m_SDep;
|
||||||
|
|
@ -805,7 +805,7 @@ void QMyCustomPlot::updateImage(float fTopY, FormInfo* pInfo)
|
||||||
|
|
||||||
QSize qsize;
|
QSize qsize;
|
||||||
|
|
||||||
int rh = 1000;// rt.height();
|
int rh = 2000;// rt.height();
|
||||||
int rw = this->size().width();
|
int rw = this->size().width();
|
||||||
long nLnBytes = (nPoint * 3 + 3) / 4 * 4;
|
long nLnBytes = (nPoint * 3 + 3) / 4 * 4;
|
||||||
unsigned char *pData = new unsigned char[nLnBytes*(int)(rh + 0.5)];
|
unsigned char *pData = new unsigned char[nLnBytes*(int)(rh + 0.5)];
|
||||||
|
|
@ -920,7 +920,7 @@ void QMyCustomPlot::updateImage3D(float fTopY, FormInfo* pInfo)
|
||||||
float sdep, edep, flDepthScale = 18.897617f, temp;
|
float sdep, edep, flDepthScale = 18.897617f, temp;
|
||||||
float sdepc = abs(fTopY);// _wave.StartDepth;
|
float sdepc = abs(fTopY);// _wave.StartDepth;
|
||||||
sdep = sdepc;
|
sdep = sdepc;
|
||||||
edep = sdep + 50;
|
edep = sdep + 100;
|
||||||
|
|
||||||
if (sdep > m_EDep) sdep = m_EDep;
|
if (sdep > m_EDep) sdep = m_EDep;
|
||||||
if (edep < m_SDep) edep = m_SDep;
|
if (edep < m_SDep) edep = m_SDep;
|
||||||
|
|
@ -944,7 +944,7 @@ void QMyCustomPlot::updateImage3D(float fTopY, FormInfo* pInfo)
|
||||||
int dep = 0;
|
int dep = 0;
|
||||||
float detp = sdepc;
|
float detp = sdepc;
|
||||||
|
|
||||||
int rh = 1000;// rt.height();
|
int rh = 2000;// rt.height();
|
||||||
int rw = this->size().width();
|
int rw = this->size().width();
|
||||||
double ratio = 1;// int((float)iDepCount * 1000 / rt.height()) / 1000.0;
|
double ratio = 1;// int((float)iDepCount * 1000 / rt.height()) / 1000.0;
|
||||||
if (ratio > 1) ratio = 1;
|
if (ratio > 1) ratio = 1;
|
||||||
|
|
@ -1617,7 +1617,13 @@ void QMyCustomPlot::mouseMoveEvent(QMouseEvent *event)
|
||||||
|
|
||||||
// 像素坐标转成实际的x,y轴的坐标
|
// 像素坐标转成实际的x,y轴的坐标
|
||||||
//float x_val = yAxis->pixelToCoord(x_pos);
|
//float x_val = yAxis->pixelToCoord(x_pos);
|
||||||
float y_val = xAxis->pixelToCoord(y_pos);
|
float y_val = 0.0f;
|
||||||
|
|
||||||
|
if (m_bX2Y)
|
||||||
|
y_val = xAxis->pixelToCoord(y_pos);
|
||||||
|
else
|
||||||
|
y_val = yAxis->pixelToCoord(y_pos);
|
||||||
|
|
||||||
emit CallManage::getInstance()->sig_MouseMove(m_strUuid, m_strWellName, m_strTrackName, 0-y_val);
|
emit CallManage::getInstance()->sig_MouseMove(m_strUuid, m_strWellName, m_strTrackName, 0-y_val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user