diff --git a/logPlus/qmycustomplot.cpp b/logPlus/qmycustomplot.cpp index fc7ebfd..ac9bcd9 100644 --- a/logPlus/qmycustomplot.cpp +++ b/logPlus/qmycustomplot.cpp @@ -758,7 +758,7 @@ void QMyCustomPlot::updateImage(float fTopY, FormInfo* pInfo) float sdep, edep, flDepthScale = 18.897617f, temp; float sdepc = abs(fTopY);// _wave.StartDepth; sdep = sdepc; - edep = sdep + 50; + edep = sdep + 100; if (edep > m_EDep) edep = m_EDep; if (sdep < m_SDep) sdep = m_SDep; @@ -805,7 +805,7 @@ void QMyCustomPlot::updateImage(float fTopY, FormInfo* pInfo) QSize qsize; - int rh = 1000;// rt.height(); + int rh = 2000;// rt.height(); int rw = this->size().width(); long nLnBytes = (nPoint * 3 + 3) / 4 * 4; 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 sdepc = abs(fTopY);// _wave.StartDepth; sdep = sdepc; - edep = sdep + 50; + edep = sdep + 100; if (sdep > m_EDep) sdep = m_EDep; if (edep < m_SDep) edep = m_SDep; @@ -944,7 +944,7 @@ void QMyCustomPlot::updateImage3D(float fTopY, FormInfo* pInfo) int dep = 0; float detp = sdepc; - int rh = 1000;// rt.height(); + int rh = 2000;// rt.height(); int rw = this->size().width(); double ratio = 1;// int((float)iDepCount * 1000 / rt.height()) / 1000.0; if (ratio > 1) ratio = 1; @@ -1617,7 +1617,13 @@ void QMyCustomPlot::mouseMoveEvent(QMouseEvent *event) // 像素坐标转成实际的x,y轴的坐标 //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); } }