From 722538d7782b2aa52eff0d87030896cc98b2e0d7 Mon Sep 17 00:00:00 2001 From: zhaolei <353719554@qq.com> Date: Wed, 18 Mar 2026 16:16:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=89=E5=9B=BE=E4=B8=80?= =?UTF-8?q?=E8=A1=A8=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CallManage/CallManage.h | 4 + logPlus/DrawTvd.cpp | 2 +- logPlus/PropertyWidget.cpp | 147 +++++++++++++++++++++- logPlus/PropertyWidget.h | 4 + logPlus/forminfo.cpp | 64 ++++++++++ logPlus/forminfo.h | 34 +++++ logPlus/formline.cpp | 251 ++++++++++++++++++++++++++++++++++++- logPlus/formline.h | 9 +- 8 files changed, 507 insertions(+), 8 deletions(-) diff --git a/CallManage/CallManage.h b/CallManage/CallManage.h index ca62f92..f55d08b 100644 --- a/CallManage/CallManage.h +++ b/CallManage/CallManage.h @@ -127,6 +127,10 @@ signals: //绘制对称曲线 void sig_ChangeDrawSymmetry(QString strUuid, QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, bool bDrawSymmetry); + //斜井三图一表 + void sig_ChangeTvdProperty(QString strUuid, QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, + QString strGroup, QString strProperty, QVariant variant); + //岩性填充-不填充 void sig_ClearFillMode(QString strUuid, QString strSlfName, QString strWellName, QString strTrackName, QString strLineName); //岩性填充-填充 diff --git a/logPlus/DrawTvd.cpp b/logPlus/DrawTvd.cpp index 01015ed..b990a6d 100644 --- a/logPlus/DrawTvd.cpp +++ b/logPlus/DrawTvd.cpp @@ -689,7 +689,7 @@ void CDrawTvd::DrawTvd(QPainter* pDC,QRectF mrt) TitleFontWidth=TitleFontHeight=fm4.height()/2.0; XCenter=mrt.left()+m_Left*100.+(mrt.width()-(m_Left+m_Right)*100.)/2.; - if(0) { + if(1) { //if(m_pWellSceneManager->GetIsColorPrint()) { m_GuiJiPen=QPen(m_GuijiColor,m_GuijiWidth*(int)(fbl/2.+0.5)); m_FramePen=QPen(m_FrameColor,m_FrameWidth*(int)(fbl/2.+0.5));; diff --git a/logPlus/PropertyWidget.cpp b/logPlus/PropertyWidget.cpp index 889816e..8f983b1 100644 --- a/logPlus/PropertyWidget.cpp +++ b/logPlus/PropertyWidget.cpp @@ -255,6 +255,14 @@ void PropertyWidget::SlotPropertyChanged( QtProperty *pProperty, const QVariant { if(m_strCurrentProperty == "") return; + if(m_strCurrentProperty == Tvd_Property) + { + //先处理通用属性 + CommonPropertyChanged(pProperty, variant); + ChangTvdProperty(pProperty, variant); + return; + } + if (m_strCurrentProperty == Table_Property)//解释结论 { bool bDraw = false; @@ -654,8 +662,6 @@ void PropertyWidget::SlotPropertyChanged( QtProperty *pProperty, const QVariant return; } - - } } } @@ -1820,6 +1826,21 @@ void PropertyWidget::ChangHeadItemProperty() } } +void PropertyWidget::ChangTvdProperty( QtProperty *pProperty, const QVariant &variant ) +{ + + // QSet pParentProperty= pProperty->getParentItem().begin(); + QString strGroup = ""; + if (1 == pProperty->getParentItem().count()) + { + QtProperty * pParentProperty= *(pProperty->getParentItem().begin()); + strGroup = pParentProperty->propertyName(); + } + + emit CallManage::getInstance()->sig_ChangeTvdProperty(m_strUuid, m_strSlfName, m_strWellName, m_strTrackName, m_strLineName, + strGroup,m_propertyData[pProperty], variant); +} + void PropertyWidget::ChangFillProperty() { QString newFillMode = "无填充"; @@ -2398,6 +2419,10 @@ void PropertyWidget::initProperty(FormInfo *formInfo) //沉积相 this->initFacProperty(formInfo); } + else if(formInfo->m_strType=="SantuyibiaoObject") + { + this->initTvdProperty(formInfo); + } } void PropertyWidget::initRoseProperty(FormInfo *formInfo) @@ -2853,6 +2878,124 @@ void PropertyWidget::initGeoLithProperty(FormInfo *formInfo) m_strCurrentProperty = GeoLith_Property; } +// 斜井三图一表属性 +void PropertyWidget::initTvdProperty(FormInfo *formInfo) +{ + _CreateVariantPropertyItem("通常", "选择井斜数据", m_strSlfName, QVariant::String); + + _CreateVariantPropertyItem("通常", "显示名称", formInfo->m_strAliasName, QVariant::String); + _CreateVariantPropertyItem("通常", "显示井名", formInfo->m_strWellName, QVariant::String); + + _CreateVariantPropertyItem("绘制图形对象", "靶心", true, QVariant::Bool); + _CreateVariantPropertyItem("绘制图形对象", "靶心参数表", true, QVariant::Bool); + _CreateVariantPropertyItem("绘制图形对象", "井斜数据表", true, QVariant::Bool); + _CreateVariantPropertyItem("绘制图形对象", "俯视图", true, QVariant::Bool); + _CreateVariantPropertyItem("绘制图形对象", "侧视图深度在左边", false, QVariant::Bool); + _CreateVariantPropertyItem("绘制图形对象", "侧视图(水平位移)", true, QVariant::Bool); + _CreateVariantPropertyItem("绘制图形对象", "侧视图(向东)", true, QVariant::Bool); + _CreateVariantPropertyItem("绘制图形对象", "侧视图(向北)", true, QVariant::Bool); + _CreateVariantPropertyItem("绘制图形对象", "侧视图(侧视角)", false, QVariant::Bool); + _CreateVariantPropertyItem("绘制图形对象", "立体轨迹图", true, QVariant::Bool); + _CreateVariantPropertyItem("绘制图形对象", "绘制标注信息", true, QVariant::Bool); + + _CreateVariantPropertyItem("边框线型", "线宽", 3, QVariant::Int); + _CreateVariantPropertyItem("边框线型", "颜色", QColor(0, 0, 0), QVariant::Color); + _CreateVariantPropertyItem("格线线型", "线宽", 3, QVariant::Int); + _CreateVariantPropertyItem("格线线型", "颜色", QColor(127, 127, 127), QVariant::Color); + _CreateVariantPropertyItem("轨迹线型", "线宽", 3, QVariant::Int); + _CreateVariantPropertyItem("轨迹线型", "颜色", QColor(0, 0, 0), QVariant::Color); + _CreateVariantPropertyItem("靶心半径线型", "线宽", 3, QVariant::Int); + _CreateVariantPropertyItem("靶心半径线型", "颜色", QColor(255, 0, 0), QVariant::Color); + _CreateVariantPropertyItem("靶心连线线型", "线宽", 3, QVariant::Int); + _CreateVariantPropertyItem("靶心连线线型", "颜色", QColor(255, 0, 0), QVariant::Color); + + _CreateVariantPropertyItem("字体", "道头字体", QFont(), QVariant::Font); + _CreateVariantPropertyItem("字体", "道头颜色", QColor(0, 0, 0), QVariant::Color); + + _CreateVariantPropertyItem("字体", "标题字体", QFont(), QVariant::Font); + _CreateVariantPropertyItem("字体", "标题颜色", QColor(0, 0, 0), QVariant::Color); + + _CreateVariantPropertyItem("字体", "数据表字体", QFont(), QVariant::Font); + _CreateVariantPropertyItem("字体", "数据表颜色", QColor(0, 0, 0), QVariant::Color); + + _CreateVariantPropertyItem("字体", "刻度字体", QFont(), QVariant::Font); + _CreateVariantPropertyItem("字体", "刻度颜色", QColor(0, 0, 0), QVariant::Color); + + _CreateVariantPropertyItem("字体", "注释字体", QFont(), QVariant::Font); + _CreateVariantPropertyItem("字体", "注释颜色", QColor(0, 0, 0), QVariant::Color); + + _CreateVariantPropertyItem("井斜数据表参数", "标题名", "井连续井斜仪测量数据表", QVariant::String); + _CreateVariantPropertyItem("井斜数据表参数", "头记录高度(cm)", 1.6, QVariant::Double); + _CreateVariantPropertyItem("井斜数据表参数", "数据记录高度(cm)", 0.8, QVariant::Double); + + _CreateVariantPropertyItem("俯视图参数", "标题名", "井井眼俯视图", QVariant::String); + _CreateVariantPropertyItem("俯视图参数", "东西位移最小刻度", -100, QVariant::Double); + _CreateVariantPropertyItem("俯视图参数", "东西位移最大刻度", 100, QVariant::Double); + _CreateVariantPropertyItem("俯视图参数", "南北位移最小刻度", -100, QVariant::Double); + _CreateVariantPropertyItem("俯视图参数", "南北位移最大刻度", 100, QVariant::Double); + _CreateVariantPropertyItem("俯视图参数", "是否绘制闭合线", false, QVariant::Bool); + + _CreateVariantPropertyItem("侧视图参数", "标题名", "井井眼侧视图", QVariant::String); + _CreateVariantPropertyItem("侧视图参数", "高宽相同", false, QVariant::Bool); + + _CreateVariantPropertyItem("侧视图(水平位移)", "最大侧视位移(m)", 100, QVariant::Double); + _CreateVariantPropertyItem("侧视图(水平位移)", "最小侧视位移(m)", -100, QVariant::Double); + _CreateVariantPropertyItem("侧视图(水平位移)", "最大垂深(m)", 10000, QVariant::Double); + _CreateVariantPropertyItem("侧视图(水平位移)", "最小垂深(m)", 0, QVariant::Double); + + _CreateVariantPropertyItem("侧视图(向东)", "最大侧视位移(m)", 100, QVariant::Double); + _CreateVariantPropertyItem("侧视图(向东)", "最小侧视位移(m)", -100, QVariant::Double); + _CreateVariantPropertyItem("侧视图(向东)", "最大垂深(m)", 10000, QVariant::Double); + _CreateVariantPropertyItem("侧视图(向东)", "最小垂深(m)", 0, QVariant::Double); + + _CreateVariantPropertyItem("侧视图(侧视角)", "最大侧视位移(m)", 100, QVariant::Double); + _CreateVariantPropertyItem("侧视图(侧视角)", "最小侧视位移(m)", -100, QVariant::Double); + _CreateVariantPropertyItem("侧视图(侧视角)", "最大垂深(m)", 10000, QVariant::Double); + _CreateVariantPropertyItem("侧视图(侧视角)", "最小垂深(m)", 0, QVariant::Double); + _CreateVariantPropertyItem("侧视图(侧视角)", "深度间隔(m)", 100, QVariant::Double); + _CreateVariantPropertyItem("侧视图(侧视角)", "等分个数(=0按深度间隔)", 0, QVariant::Double); + _CreateVariantPropertyItem("侧视图(侧视角)", "侧视角(度)", 90, QVariant::Double); + + // + _CreateVariantPropertyItem("立体轨迹图参数", "标题名", "", QVariant::String); + _CreateVariantPropertyItem("立体轨迹图参数", "最大位移(m)", 100, QVariant::Double); + _CreateVariantPropertyItem("立体轨迹图参数", "起始垂深(m)", 0, QVariant::Double); + _CreateVariantPropertyItem("立体轨迹图参数", "垂深间隔(m)", 100, QVariant::Double); + _CreateVariantPropertyItem("立体轨迹图参数", "是否绘制立体框", formInfo->m_is3DFrame, QVariant::Bool); + _CreateVariantPropertyItem("立体轨迹图参数", "俯视角(度)", 10, QVariant::Double); + _CreateVariantPropertyItem("立体轨迹图参数", "侧视角(度)", 45, QVariant::Double); + _CreateVariantPropertyItem("立体轨迹图参数", "倾斜角(度)", 0, QVariant::Double); + _CreateVariantPropertyItem("立体轨迹图参数", "竖线间隔", 5, QVariant::Double); + _CreateVariantPropertyItem("立体轨迹图参数", "俯视南北间隔数", 20, QVariant::Double); + _CreateVariantPropertyItem("立体轨迹图参数", "俯视东西间隔数", 20, QVariant::Double); + QStringList listType; + listType.append("NONE"); + listType.append("狗腿度"); + listType.append("井经"); + listType.append("成像"); + _CreateEnumPropertyItem("立体轨迹图参数", "附加属性类型", listType.indexOf("NONE"), listType); + _CreateVariantPropertyItem("立体轨迹图参数", "选择井曲线1", "", QVariant::String); + _CreateVariantPropertyItem("立体轨迹图参数", "选择井曲线2", "", QVariant::String); + _CreateVariantPropertyItem("立体轨迹图参数", "调色板参数设置",0, QVariant::Int); + _CreateVariantPropertyItem("立体轨迹图参数", "直径放大系数", 1, QVariant::Double); + _CreateVariantPropertyItem("立体轨迹图参数", "波形基值", 0, QVariant::Double); + _CreateVariantPropertyItem("立体轨迹图参数", "波形最大值", 500, QVariant::Double); + _CreateVariantPropertyItem("立体轨迹图参数", "连续填充", false, QVariant::Bool); + + _CreateVariantPropertyItem("立体闭合方位线型", "线宽", 1, QVariant::Int); + _CreateVariantPropertyItem("立体闭合方位线型", "颜色", QColor(255, 0, 0), QVariant::Color); + + _CreateVariantPropertyItem("绘图参数", "最小深度间隔(m)", 5, QVariant::Double); + + _CreateVariantPropertyItem("立体闭合方位线型", "线宽", 3, QVariant::Int); + _CreateVariantPropertyItem("立体闭合方位线型", "颜色", QColor(255, 0, 0), QVariant::Color); + + + + //当前属性类型 + m_strCurrentProperty = Tvd_Property; +} + void PropertyWidget::initGeoLithItemProperty(TransparentDraggableGeoLith* tdGeoLith, double lower, double upper, const QString myLith, const QString myOil, const QString myColor) { //初始化,清空 diff --git a/logPlus/PropertyWidget.h b/logPlus/PropertyWidget.h index df22198..9b99d96 100644 --- a/logPlus/PropertyWidget.h +++ b/logPlus/PropertyWidget.h @@ -63,6 +63,7 @@ #define JiegutextItem_Property "JiegutextItem_Property" //气测/FMT/射孔/文本item #define Fac_Property "Fac_Property" //沉积相 +#define Tvd_Property "Tvd_Property" //斜井三图一表 #pragma execution_character_set("utf-8") @@ -202,6 +203,9 @@ public: //沉积相 void initFacProperty(FormInfo *formInfo); + // 斜井三图一表属性 + void initTvdProperty(FormInfo *formInfo); + void ChangTvdProperty( QtProperty *pProperty, const QVariant &variant ); void ChangFillProperty();//填充属性改变 void ChangHeadItemProperty();//图头项改变 diff --git a/logPlus/forminfo.cpp b/logPlus/forminfo.cpp index 66bbc89..d47da8e 100644 --- a/logPlus/forminfo.cpp +++ b/logPlus/forminfo.cpp @@ -63,6 +63,10 @@ FormInfo::FormInfo(QWidget *parent, QString strSlfName, QString strWellName, QSt //绘制对称曲线 connect(CallManage::getInstance(), SIGNAL(sig_ChangeDrawSymmetry(QString, QString, QString, QString, QString, bool)), this, SLOT(s_ChangeDrawSymmetry(QString, QString, QString, QString, QString, bool))); + //斜井三图一表 + connect(CallManage::getInstance(), SIGNAL(sig_ChangeTvdProperty(QString, QString, QString, QString, QString, QString, QString, QVariant)), + this, SLOT(s_ChangeTvdProperty(QString, QString, QString, QString, QString, QString, QString, QVariant))); + //岩性填充-不填充 connect(CallManage::getInstance(), SIGNAL(sig_ClearFillMode(QString, QString, QString, QString, QString)), this, SLOT(s_ClearFillMode(QString, QString, QString, QString, QString))); //岩性填充-填充 @@ -950,6 +954,66 @@ void FormInfo::s_ChangeDrawSymmetry(QString strUuid, QString strSlfName, QString m_bDrawSymmetry = bDrawSymmetry; } +void FormInfo::s_ChangeTvdProperty(QString strUuid, QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, + QString strGroup, QString strProperty, QVariant variant) +{ + if("井斜数据表参数" == strGroup) + { + if("标题名" == strProperty) + m_Title_table = variant.value(); + else if("头记录高度(cm)" == strProperty) + m_Head_Height = variant.value(); + else if("数据记录高度(cm)" == strProperty) + m_Rec_Height = variant.value(); + } + else if("立体轨迹图参数" == strGroup) + { + if("标题名" == strProperty) + m_Title_ltgj = variant.value(); + else if("最大位移(m)" == strProperty) + m_MaxWy1 = variant.value(); + else if("起始垂深(m)" == strProperty) + m_LTTTVD = variant.value(); + else if("垂深间隔(m)" == strProperty) + m_DepSpace1 = variant.value(); + else if("是否绘制立体框" == strProperty) + m_is3DFrame = variant.value(); + else if("俯视角(度)" == strProperty) + m_LttAngle_X = variant.value(); + else if("侧视角(度)" == strProperty) + m_LttAngle = variant.value(); + else if("倾斜角(度)" == strProperty) + m_LttAngle_Z = variant.value(); + else if("竖线间隔" == strProperty) + m_LTTTVD = variant.value(); + else if("俯视南北间隔数" == strProperty) + m_YD = variant.value(); + else if("俯视东西间隔数" == strProperty) + m_XD = variant.value(); + else if("附加属性类型" == strProperty) + m_IsDrawProperty = variant.value(); + else if("选择井曲线1" == strProperty) + m_CurveName1 = variant.value(); + else if("选择井曲线2" == strProperty) + m_CurveName2 = variant.value(); + else if("调色板参数设置" == strProperty) + m_ColorTableIndex = variant.value(); + else if("直径放大系数" == strProperty) + m_calscale = variant.value(); + else if("波形基值" == strProperty) + m_baseval = variant.value(); + else if("波形最大值" == strProperty) + m_maxval = variant.value(); + else if("连续填充" == strProperty) + m_isBlock = variant.value(); + } + else if("立体轨迹图参数" == strGroup) + { + if("最小深度间隔(m)" == strProperty) + m_Rlev = variant.value(); + } +} + //岩性填充-不填充 void FormInfo::s_ClearFillMode(QString strUuid, QString strSlfName, QString strWellName, QString strTrackName, QString strLineName) { diff --git a/logPlus/forminfo.h b/logPlus/forminfo.h index a7a537b..26e0af8 100644 --- a/logPlus/forminfo.h +++ b/logPlus/forminfo.h @@ -59,6 +59,10 @@ public slots: //绘制对称曲线 void s_ChangeDrawSymmetry(QString strUuid, QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, bool bDrawSymmetry); + //斜井三图一表 + void s_ChangeTvdProperty(QString strUuid, QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, + QString strGroup, QString strProperty, QVariant variant); + //岩性填充-不填充 void s_ClearFillMode(QString strUuid, QString strSlfName, QString strWellName, QString strTrackName, QString strLineName); //岩性填充-填充 @@ -186,6 +190,36 @@ public: bool m_bDrawPhase = true; // 绘制亚相 bool m_bDrawMFacName = true; // 微相名称 + //tvd + //斜井三图一表(井斜数据表参数) + QString m_Title_table; + float m_Head_Height; + float m_Rec_Height; + //斜井三图一表(立体轨迹图参数) + QString m_Title_ltgj; + double m_MaxWy1; + double m_LTTTVD; + double m_DepSpace1; + double m_LttAngle; + double m_LttAngle_X; + double m_LttAngle_Z; + bool m_is3DFrame; + double m_LttxDela; + + double m_XD; + double m_YD; + int m_IsDrawProperty; + QString m_CurveName1; + QString m_CurveName2; + + int m_ColorTableIndex; + double m_calscale; + double m_baseval; + double m_maxval; + double m_Rlev; + bool m_isBlock; + //tvd + public: void setLineWidth(double dWidth); double getLineWidth(); diff --git a/logPlus/formline.cpp b/logPlus/formline.cpp index 75d6921..b000dad 100644 --- a/logPlus/formline.cpp +++ b/logPlus/formline.cpp @@ -1,6 +1,7 @@ #include "formline.h" #include "ui_formline.h" #include +#include "CallManage.h" #include "DrawTvd.h" //demo画线,暂时不用 @@ -14,6 +15,11 @@ FormLine::FormLine(QWidget *parent, QString strSlfName, QString strWellName, QSt m_strWellName = strWellName; m_strTrackName = strTrackName; m_strLineName = strLineName; + + m_drawTvd = NULL; + //斜井三图一表 + connect(CallManage::getInstance(), SIGNAL(sig_ChangeTvdProperty(QString, QString, QString, QString, QString, QString, QString, QVariant)), + this, SLOT(s_ChangeTvdProperty(QString, QString, QString, QString, QString, QString, QString, QVariant))); } void FormLine::DrawTvd() @@ -42,9 +48,10 @@ void FormLine::paintEvent(QPaintEvent*) //背景透明 painter.fillRect(rect.left(), rect.top(), rect.width(), rect.height(), QColor(0, 0, 0, 0)); //QColor(67, 67, 67, 100) - CDrawTvd *drawTvd = new CDrawTvd(); - drawTvd->sFilePath = m_strSlfName; - drawTvd->DrawTvd(&painter, rect); + if (!m_drawTvd) + m_drawTvd = new CDrawTvd(); + m_drawTvd->sFilePath = m_strSlfName; + m_drawTvd->DrawTvd(&painter, rect); // QPainter painter(this); // QRect rect = this->rect(); @@ -64,3 +71,241 @@ void FormLine::paintEvent(QPaintEvent*) // painter.drawRoundRect(rectRound); } + +void FormLine::s_ChangeTvdProperty(QString strUuid, QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, + QString strGroup, QString strProperty, QVariant variant) +{ + if("通常" == strGroup) + { + // if("选择井斜数据" == strProperty) + // if("显示名称" == strProperty) + if("显示井名" == strProperty) + m_drawTvd->m_AliasWellName = variant.value(); + } + if("绘制图形对象" == strGroup) + { + if("靶心" == strProperty) + m_drawTvd->objViewInfo->m_IsDrawBX = variant.value(); + if("靶心参数表" == strProperty) + m_drawTvd->objViewInfo->m_IsDrawBxcs = variant.value(); + if("井斜数据表" == strProperty) + m_drawTvd->objViewInfo->m_IsDrawTable = variant.value(); + if("俯视图" == strProperty) + m_drawTvd->objViewInfo->m_IsDrawFst = variant.value(); + if("侧视图深度在左边" == strProperty) + m_drawTvd->objViewInfo->m_DepthLeft = variant.value(); + if("侧视图(水平位移)" == strProperty) + m_drawTvd->objViewInfo->m_IsDrawCst1 = variant.value(); + if("侧视图(向东)" == strProperty) + m_drawTvd->objViewInfo->m_IsDrawCst2 = variant.value(); + if("侧视图(向北)" == strProperty) + m_drawTvd->objViewInfo->m_IsDrawCst3 = variant.value(); + if("侧视图(侧视角)" == strProperty) + m_drawTvd->objViewInfo->m_IsDrawCst = variant.value(); + if("立体轨迹图" == strProperty) + m_drawTvd->objViewInfo->m_IsDrawLtgjt = variant.value(); + if("绘制标注信息" == strProperty) + m_drawTvd->objViewInfo->m_isDrawNote = variant.value(); + } + if("边框线型" == strGroup) + { + if("线宽" == strProperty) + m_drawTvd->m_FrameWidth = variant.value(); + else if("颜色" == strProperty) + m_drawTvd->m_FrameColor = variant.value(); + } + if("格线线型" == strGroup) + { + if("线宽" == strProperty) + m_drawTvd->m_GridWidth = variant.value(); + else if("颜色" == strProperty) + m_drawTvd->m_GridColor = variant.value(); + } + if("轨迹线型" == strGroup) + { + if("线宽" == strProperty) + m_drawTvd->m_GuijiWidth = variant.value(); + else if("颜色" == strProperty) + m_drawTvd->m_GuijiColor = variant.value(); + } + if("靶心半径线型" == strGroup) + { + if("线宽" == strProperty) + m_drawTvd->m_BxbjWidth = variant.value(); + else if("颜色" == strProperty) + m_drawTvd->m_BxbjColor = variant.value(); + } + if("靶心连线线型" == strGroup) + { + if("线宽" == strProperty) + m_drawTvd->m_BxlxWidth = variant.value(); + else if("颜色" == strProperty) + m_drawTvd->m_BxlxColor = variant.value(); + } + if("字体" == strGroup) + { + if("道头字体" == strProperty) + m_drawTvd->objViewInfo->m_HeadFont = variant.value(); + else if("道头颜色" == strProperty) + m_drawTvd->objViewInfo->m_HeadColor = variant.value(); + if("标题字体" == strProperty) + m_drawTvd->objViewInfo->m_TitleFont = variant.value(); + else if("标题颜色" == strProperty) + m_drawTvd->objViewInfo->m_TitleColor = variant.value(); + if("数据表字体" == strProperty) + m_drawTvd->objViewInfo->m_TableFont = variant.value(); + else if("数据表颜色" == strProperty) + m_drawTvd->objViewInfo->m_TableColor = variant.value(); + if("刻度字体" == strProperty) + m_drawTvd->objViewInfo->m_ScaleFont = variant.value(); + else if("刻度颜色" == strProperty) + m_drawTvd->objViewInfo->m_ScaleColor = variant.value(); + if("注释字体" == strProperty) + m_drawTvd->objViewInfo->m_NoteFont = variant.value(); + else if("注释颜色" == strProperty) + m_drawTvd->objViewInfo->m_NoteColor = variant.value(); + } + if("井斜数据表参数" == strGroup) + { + if("标题名" == strProperty) + m_drawTvd->m_Title_table = variant.value(); + else if("头记录高度(cm)" == strProperty) + m_drawTvd->objViewInfo->m_Head_Height = variant.value(); + else if("数据记录高度(cm)" == strProperty) + m_drawTvd->objViewInfo->m_Rec_Height = variant.value(); + } + else if("俯视图参数" == strGroup) + { + if("标题名" == strProperty) + m_drawTvd->objViewInfo->m_Title_fst = variant.value(); + else if("东西位移最小刻度" == strProperty) + m_drawTvd->objViewInfo->m_MinXe = variant.value(); + else if("东西位移最大刻度" == strProperty) + m_drawTvd->objViewInfo->m_MaxXe = variant.value(); + else if("南北位移最小刻度" == strProperty) + m_drawTvd->objViewInfo->m_MinYn = variant.value(); + else if("南北位移最大刻度" == strProperty) + m_drawTvd->objViewInfo->m_MaxYn = variant.value(); + else if("是否绘制闭合线" == strProperty) + m_drawTvd->objViewInfo->m_bPlotBhx = variant.value(); + } + else if("立体轨迹图参数" == strGroup) + { + if("标题名" == strProperty) + m_drawTvd->objViewInfo->m_Title_ltgj = variant.value(); + else if("最大位移(m)" == strProperty) + m_drawTvd->objViewInfo->m_MaxWy1 = variant.value(); + else if("起始垂深(m)" == strProperty) + m_drawTvd->objViewInfo->m_LTTTVD = variant.value(); + else if("垂深间隔(m)" == strProperty) + m_drawTvd->objViewInfo->m_DepSpace1 = variant.value(); + else if("是否绘制立体框" == strProperty) + m_drawTvd->objViewInfo->m_is3DFrame = variant.value(); + else if("俯视角(度)" == strProperty) + m_drawTvd->objViewInfo->m_LttAngle_X = variant.value(); + else if("侧视角(度)" == strProperty) + m_drawTvd->objViewInfo->m_LttAngle = variant.value(); + else if("倾斜角(度)" == strProperty) + m_drawTvd->objViewInfo->m_LttAngle_Z = variant.value(); + else if("竖线间隔" == strProperty) + m_drawTvd->objViewInfo->m_LTTTVD = variant.value(); + else if("俯视南北间隔数" == strProperty) + m_drawTvd->objViewInfo->m_YD = variant.value(); + else if("俯视东西间隔数" == strProperty) + m_drawTvd->objViewInfo->m_XD = variant.value(); + else if("附加属性类型" == strProperty) + m_drawTvd->objViewInfo->m_IsDrawProperty = variant.value(); + else if("选择井曲线1" == strProperty) + m_drawTvd->objViewInfo->m_CurveName1 = variant.value(); + else if("选择井曲线2" == strProperty) + m_drawTvd->objViewInfo->m_CurveName2 = variant.value(); + else if("调色板参数设置" == strProperty) + m_drawTvd->objViewInfo->m_ColorTableIndex = variant.value(); + else if("直径放大系数" == strProperty) + m_drawTvd->objViewInfo->m_calscale = variant.value(); + else if("波形基值" == strProperty) + m_drawTvd->objViewInfo->m_baseval = variant.value(); + else if("波形最大值" == strProperty) + m_drawTvd->objViewInfo->m_maxval = variant.value(); + else if("连续填充" == strProperty) + m_drawTvd->objViewInfo->m_isBlock = variant.value(); + } + else if("侧视图参数" == strGroup) + { + if("标题名" == strProperty) + m_drawTvd->objViewInfo->m_Title_cst = variant.value(); + else if("高宽相同" == strProperty) + m_drawTvd->objViewInfo->m_heqw = variant.value(); + } + else if("侧视图(水平位移)" == strGroup) + { + if("最大侧视位移(m)" == strProperty) + m_drawTvd->objViewInfo->m_MaxWy_HOFF = variant.value(); + else if("最小侧视位移(m)" == strProperty) + m_drawTvd->objViewInfo->m_MinWy_HOFF = variant.value(); + else if("最大垂深(m)" == strProperty) + m_drawTvd->objViewInfo->m_MaxTVD_HOFF = variant.value(); + else if("最小垂深(m)" == strProperty) + m_drawTvd->objViewInfo->m_MinTVD_HOFF = variant.value(); + } + else if("侧视图(向东)" == strGroup) + { + if("最大侧视位移(m)" == strProperty) + m_drawTvd->objViewInfo->m_MaxWy_XE = variant.value(); + else if("最小侧视位移(m)" == strProperty) + m_drawTvd->objViewInfo->m_MinWy_XE = variant.value(); + else if("最大垂深(m)" == strProperty) + m_drawTvd->objViewInfo->m_MaxTVD_XE = variant.value(); + else if("最小垂深(m)" == strProperty) + m_drawTvd->objViewInfo->m_MinTVD_XE = variant.value(); + } + else if("侧视图(向北)" == strGroup) + { + if("最大侧视位移(m)" == strProperty) + m_drawTvd->objViewInfo->m_MaxWy_YN = variant.value(); + else if("最小侧视位移(m)" == strProperty) + m_drawTvd->objViewInfo->m_MinWy_YN = variant.value(); + else if("最大垂深(m)" == strProperty) + m_drawTvd->objViewInfo->m_MaxTVD_YN = variant.value(); + else if("最小垂深(m)" == strProperty) + m_drawTvd->objViewInfo->m_MinTVD_YN = variant.value(); + } + else if("侧视图(侧视角)" == strGroup) + { + if("最大侧视位移(m)" == strProperty) + m_drawTvd->objViewInfo->m_MaxWy = variant.value(); + else if("最小侧视位移(m)" == strProperty) + m_drawTvd->objViewInfo->m_MinWy = variant.value(); + else if("最大垂深(m)" == strProperty) + m_drawTvd->objViewInfo->m_MaxTVD = variant.value(); + else if("最小垂深(m)" == strProperty) + m_drawTvd->objViewInfo->m_MinTVD = variant.value(); + else if("深度间隔(m)" == strProperty) + m_drawTvd->objViewInfo->m_DepSpace = variant.value(); + else if("等分个数(=0按深度间隔)" == strProperty) + m_drawTvd->objViewInfo->m_DepSpaceN = variant.value(); + else if("侧视角(度)" == strProperty) + m_drawTvd->objViewInfo->m_CsAngle = variant.value(); + } + // else if("立体闭合方位线型" == strGroup) + // { + // if("线宽" == strProperty) + // m_drawTvd->objViewInfo->m_DepSpaceN = variant.value(); + // if("颜色" == strProperty) + // m_drawTvd->objViewInfo->m_Rlev = variant.value(); + // } + else if("立体轨迹图参数" == strGroup) + { + if("最小深度间隔(m)" == strProperty) + m_drawTvd->objViewInfo->m_Rlev = variant.value(); + } + // else if("立体井径线型" == strGroup) + // { + // if("线宽" == strProperty) + // m_drawTvd->objViewInfo->m_DepSpaceN = variant.value(); + // if("颜色" == strProperty) + // m_drawTvd->objViewInfo->m_Rlev = variant.value(); + // } + + update(); +} diff --git a/logPlus/formline.h b/logPlus/formline.h index 59937b0..ceb0c7e 100644 --- a/logPlus/formline.h +++ b/logPlus/formline.h @@ -2,12 +2,13 @@ #define FORMLINE_H #include +#include #pragma execution_character_set("utf-8") namespace Ui { class FormLine; } - +class CDrawTvd; class FormLine : public QWidget { Q_OBJECT @@ -28,10 +29,14 @@ public: QString m_strWellName; QString m_strTrackName; QString m_strLineName; + CDrawTvd *m_drawTvd; public: void DrawTvd(); - +public slots: + //斜井三图一表 + void s_ChangeTvdProperty(QString strUuid, QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, + QString strGroup, QString strProperty, QVariant variant); }; #endif // FORMLINE_H