From a6f7b4360eb42f43bc307fea6e0bbf85101f9ee2 Mon Sep 17 00:00:00 2001 From: "DESKTOP-450PEFP\\mainc" Date: Thu, 14 May 2026 09:05:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E5=83=8F=E9=81=93=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=B7=B1=E5=BA=A6=E6=94=BE=E5=A4=A7=EF=BC=8C=E9=BC=A0=E6=A0=87?= =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E5=88=B0=E5=AF=B9=E5=BA=94=E7=9A=84=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E8=8E=B7=E5=8F=96=E6=B7=B1=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logPlus/qmycustomplot.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) 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); } }