默认隐藏网格。

This commit is contained in:
DESKTOP-450PEFP\mainc 2026-04-28 10:29:48 +08:00
parent a184cb0bad
commit 8c7bf0fed0
4 changed files with 4 additions and 32 deletions

View File

@ -134,11 +134,6 @@ void FormDraw::setDrawData(QStringList listdt, QJsonObject objInfo)
QMyCustomPlot *curv = new QMyCustomPlot(this, strSlfName, strWellName, m_strTrackName, strLineName); QMyCustomPlot *curv = new QMyCustomPlot(this, strSlfName, strWellName, m_strTrackName, strLineName);
//绑定m_formTrack方便关联formInfo //绑定m_formTrack方便关联formInfo
curv->m_formTrack = m_formTrack; curv->m_formTrack = m_formTrack;
if ("depthObject" == strType || "waveObject" == strType)
{
curv->m_bRowGridVisible = false;
curv->m_bColGridVisible = false;
}
curv->setDepthY(m_iY1, m_iY2); curv->setDepthY(m_iY1, m_iY2);
curv->initGeometry(m_strUuid, m_iScale, dW); curv->initGeometry(m_strUuid, m_iScale, dW);
curv->show(); curv->show();
@ -3020,8 +3015,6 @@ QMyCustomPlot* FormDraw::addTableLine(QString strUuid, QString strSlfName, QStri
} }
else if (strLineName == "RESULT") else if (strLineName == "RESULT")
{ {
curv->setRowGridVisible(false);
curv->setColGridVisible(false);
//解释结论 //解释结论
initResult(curv, strSlfName, strLineName); initResult(curv, strSlfName, strLineName);
} }
@ -3057,8 +3050,6 @@ QMyCustomPlot* FormDraw::addTableLine(QString strUuid, QString strSlfName, QStri
} }
else if (strLineName == "GUJING1_RESULT" || strLineName == "GUJING2_RESULT" || strLineName == "GUJING3_RESULT") else if (strLineName == "GUJING1_RESULT" || strLineName == "GUJING2_RESULT" || strLineName == "GUJING3_RESULT")
{ {
curv->setRowGridVisible(false);
curv->setColGridVisible(false);
//固井结论 //固井结论
if(listOtherProperty.size()>=3) if(listOtherProperty.size()>=3)
{ {
@ -3346,8 +3337,6 @@ void FormDraw::s_addWave(QString strUuid, QString strSlfName, QString strWellNam
QMyCustomPlot *curv = new QMyCustomPlot(this, strSlfName, strWellName, strTrackName, strWaveName); QMyCustomPlot *curv = new QMyCustomPlot(this, strSlfName, strWellName, strTrackName, strWaveName);
//绑定m_formTrack方便关联formInfo //绑定m_formTrack方便关联formInfo
curv->m_formTrack = m_formTrack; curv->m_formTrack = m_formTrack;
curv->m_bRowGridVisible = false;
curv->m_bColGridVisible = false;
curv->setDepthY(m_iY1, m_iY2); curv->setDepthY(m_iY1, m_iY2);
double nW = m_nTrackW; double nW = m_nTrackW;
@ -4418,8 +4407,6 @@ void FormDraw::initMCals(QMyCustomPlot *widget, QString strSlfName, QString strL
widget->xAxis->grid()->setVisible(false); widget->xAxis->grid()->setVisible(false);
widget->yAxis->grid()->setVisible(false); widget->yAxis->grid()->setVisible(false);
// //
widget->m_bRowGridVisible = false;
widget->m_bColGridVisible = false;
//------------------- //-------------------
int iMyWidth = widget->axisRect(0)->width(); int iMyWidth = widget->axisRect(0)->width();
@ -4698,7 +4685,8 @@ void FormDraw::initForm(QMyCustomPlot *widget, QString strSlfName, QString strLi
//AppendConsole(PAI_INFO, "FormDraw initForm ReadCurve end"); //AppendConsole(PAI_INFO, "FormDraw initForm ReadCurve end");
widget->setInteractions(QCP::iSelectLegend | QCP::iSelectPlottables); widget->setInteractions(QCP::iSelectLegend | QCP::iSelectPlottables);
widget->setRowGridVisible(true);
widget->setColGridVisible(true);
widget->setScaleX(vmin, vmax); widget->setScaleX(vmin, vmax);
widget->setDepthY(m_iY1, m_iY2); widget->setDepthY(m_iY1, m_iY2);
widget->initGeometry(m_strUuid, m_iScale, g_iOneWidth); widget->initGeometry(m_strUuid, m_iScale, g_iOneWidth);
@ -5253,8 +5241,6 @@ void FormDraw::initKedou(QMyCustomPlot *widget, QString strSlfName, QString strL
widget->xAxis->grid()->setVisible(false); widget->xAxis->grid()->setVisible(false);
widget->yAxis->grid()->setVisible(false); widget->yAxis->grid()->setVisible(false);
// //
widget->m_bRowGridVisible = false;
widget->m_bColGridVisible = false;
int iMyWidth = widget->axisRect(0)->width(); int iMyWidth = widget->axisRect(0)->width();
float vmax = iMyWidth; float vmax = iMyWidth;
@ -5302,8 +5288,6 @@ void FormDraw::initGanzhuang(QMyCustomPlot *widget, QString strSlfName, QString
widget->xAxis->grid()->setVisible(false); widget->xAxis->grid()->setVisible(false);
widget->yAxis->grid()->setVisible(false); widget->yAxis->grid()->setVisible(false);
// //
widget->m_bRowGridVisible = false;
widget->m_bColGridVisible = false;
int iMyWidth = widget->axisRect(0)->width(); int iMyWidth = widget->axisRect(0)->width();
float vmax = iMyWidth; float vmax = iMyWidth;
@ -5355,8 +5339,6 @@ void FormDraw::initJykt(QMyCustomPlot *widget, QString strSlfName, QString strLi
widget->xAxis->grid()->setVisible(false); widget->xAxis->grid()->setVisible(false);
widget->yAxis->grid()->setVisible(false); widget->yAxis->grid()->setVisible(false);
// //
widget->m_bRowGridVisible = false;
widget->m_bColGridVisible = false;
//------------------- //-------------------
m_LeftVal = 0; m_LeftVal = 0;
@ -5413,8 +5395,6 @@ void FormDraw::initDenv(QMyCustomPlot *widget, QString strSlfName, QString strLi
widget->xAxis->grid()->setVisible(false); widget->xAxis->grid()->setVisible(false);
widget->yAxis->grid()->setVisible(false); widget->yAxis->grid()->setVisible(false);
// //
widget->m_bRowGridVisible = false;
widget->m_bColGridVisible = false;
//------------------- //-------------------
m_LeftVal = 0; m_LeftVal = 0;

View File

@ -12,7 +12,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<QtMoc Include="wellheader.h" /> <QtMoc Include="wellheader.h" />
<QtMoc Include="TransparentDraggableCrackObject.h" />
<QtMoc Include="selectwelldialog.h" /> <QtMoc Include="selectwelldialog.h" />
<QtMoc Include="TransparentDraggableCorePhysics.h" /> <QtMoc Include="TransparentDraggableCorePhysics.h" />
<QtMoc Include="YxzpDialog.h" /> <QtMoc Include="YxzpDialog.h" />
@ -199,7 +198,6 @@
<ClCompile Include="selectwelldialog.cpp" /> <ClCompile Include="selectwelldialog.cpp" />
<ClCompile Include="totalTitleBar.cpp" /> <ClCompile Include="totalTitleBar.cpp" />
<ClCompile Include="TransparentDraggableCorePhysics.cpp" /> <ClCompile Include="TransparentDraggableCorePhysics.cpp" />
<ClCompile Include="TransparentDraggableCrackObject.cpp" />
<ClCompile Include="TransparentDraggableFac.cpp" /> <ClCompile Include="TransparentDraggableFac.cpp" />
<ClCompile Include="TransparentDraggableGeoLith.cpp" /> <ClCompile Include="TransparentDraggableGeoLith.cpp" />
<ClCompile Include="transparentdraggableGuan.cpp" /> <ClCompile Include="transparentdraggableGuan.cpp" />

View File

@ -313,9 +313,6 @@
<QtMoc Include="selectwelldialog.h"> <QtMoc Include="selectwelldialog.h">
<Filter>Header Files</Filter> <Filter>Header Files</Filter>
</QtMoc> </QtMoc>
<QtMoc Include="TransparentDraggableCrackObject.h">
<Filter>Header Files</Filter>
</QtMoc>
<QtMoc Include="wellheader.h"> <QtMoc Include="wellheader.h">
<Filter>Header Files</Filter> <Filter>Header Files</Filter>
</QtMoc> </QtMoc>
@ -537,9 +534,6 @@
<ClCompile Include="selectwelldialog.cpp"> <ClCompile Include="selectwelldialog.cpp">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="TransparentDraggableCrackObject.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="3rd_tiff\libtiff\libtiff\tif_aux.c"> <ClCompile Include="3rd_tiff\libtiff\libtiff\tif_aux.c">
<Filter>libtiff\libtiff</Filter> <Filter>libtiff\libtiff</Filter>
</ClCompile> </ClCompile>

View File

@ -254,8 +254,8 @@ public:
bool m_bFirstTimeConnect=true; //初次绑定编辑曲线信号槽。 bool m_bFirstTimeConnect=true; //初次绑定编辑曲线信号槽。
bool m_bPriviewRightList=false; //当前是否正在预览曲线。 bool m_bPriviewRightList=false; //当前是否正在预览曲线。
bool m_bRowGridVisible = true; // 网格横轴是否显示 bool m_bRowGridVisible = false; // 网格横轴是否显示
bool m_bColGridVisible = true; // 网格纵轴是否显示 bool m_bColGridVisible = false; // 网格纵轴是否显示
int m_nxiGrid = 1; // 细网格间隔 int m_nxiGrid = 1; // 细网格间隔
QPen m_xiPen; QPen m_xiPen;
int m_nzhongGrid = 2; // 中网格间隔 int m_nzhongGrid = 2; // 中网格间隔