沉积相属性记录到json模板
This commit is contained in:
parent
3b32c2ed8e
commit
e65b5681d9
|
|
@ -217,6 +217,9 @@ signals:
|
||||||
//是否显示
|
//是否显示
|
||||||
void sig_changeGeoLithShow(QString strUuid, QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString propertyData, bool bShow);
|
void sig_changeGeoLithShow(QString strUuid, QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString propertyData, bool bShow);
|
||||||
|
|
||||||
|
//改变沉积相属性,是否显示
|
||||||
|
void sig_changeFacShow(QString strUuid, QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString propertyData, bool bShow);
|
||||||
|
|
||||||
//
|
//
|
||||||
//void sig_addImageToPlot(QMyCustomPlot* customPlot, double left_Low, double right_Hight, QString imagePath);
|
//void sig_addImageToPlot(QMyCustomPlot* customPlot, double left_Low, double right_Hight, QString imagePath);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1184,6 +1184,28 @@ void PropertyWidget::SlotPropertyChanged( QtProperty *pProperty, const QVariant
|
||||||
{
|
{
|
||||||
//先处理通用属性
|
//先处理通用属性
|
||||||
CommonPropertyChanged(pProperty, variant);
|
CommonPropertyChanged(pProperty, variant);
|
||||||
|
|
||||||
|
if("绘制相" == m_propertyData[pProperty] ||
|
||||||
|
"绘制亚相" == m_propertyData[pProperty] ||
|
||||||
|
"微相名称" == m_propertyData[pProperty])
|
||||||
|
{
|
||||||
|
bool bShow = variant.value<bool>();
|
||||||
|
if(m_propertyData[pProperty] == "绘制相")
|
||||||
|
{
|
||||||
|
m_formInfo->m_bDrawFac = bShow;
|
||||||
|
}
|
||||||
|
else if(m_propertyData[pProperty] == "绘制亚相")
|
||||||
|
{
|
||||||
|
m_formInfo->m_bDrawPhase = bShow;
|
||||||
|
}
|
||||||
|
else if(m_propertyData[pProperty] == "微相名称")
|
||||||
|
{
|
||||||
|
m_formInfo->m_bDrawMFacName = bShow;
|
||||||
|
}
|
||||||
|
|
||||||
|
//改变沉积相属性,是否显示
|
||||||
|
emit CallManage::getInstance()->sig_changeFacShow(m_formInfo->m_strUuid, m_formInfo->m_strSlfName, m_formInfo->m_strWellName, m_formInfo->m_strTrackName, m_formInfo->m_strLineName, m_propertyData[pProperty], bShow);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if("深度比例尺" == m_propertyData[pProperty])
|
if("深度比例尺" == m_propertyData[pProperty])
|
||||||
|
|
@ -2949,6 +2971,10 @@ void PropertyWidget::initFacProperty(FormInfo *formInfo)
|
||||||
_CreateVariantPropertyItem("对象", "显示名称", formInfo->m_strAliasName, QVariant::String);
|
_CreateVariantPropertyItem("对象", "显示名称", formInfo->m_strAliasName, QVariant::String);
|
||||||
_CreateVariantPropertyItem("对象", "字体", formInfo->m_curveNameFont, QVariant::Font);
|
_CreateVariantPropertyItem("对象", "字体", formInfo->m_curveNameFont, QVariant::Font);
|
||||||
_CreateVariantPropertyItem("对象", "颜色", formInfo->m_lineColor, QVariant::Color);
|
_CreateVariantPropertyItem("对象", "颜色", formInfo->m_lineColor, QVariant::Color);
|
||||||
|
//显示
|
||||||
|
_CreateVariantPropertyItem("数据", "绘制相", formInfo->m_bDrawFac, QVariant::Bool);
|
||||||
|
_CreateVariantPropertyItem("数据", "绘制亚相", formInfo->m_bDrawPhase, QVariant::Bool);
|
||||||
|
_CreateVariantPropertyItem("数据", "微相名称", formInfo->m_bDrawMFacName, QVariant::Bool);
|
||||||
|
|
||||||
m_strCurrentProperty = Fac_Property;
|
m_strCurrentProperty = Fac_Property;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,23 +44,9 @@ void TransparentDraggableFac::setRange(double left_Low, double right_Hight)
|
||||||
mRect->topLeft->setCoords(left_Low, 3*(lY1+lY2)/4.0);
|
mRect->topLeft->setCoords(left_Low, 3*(lY1+lY2)/4.0);
|
||||||
mRect->bottomRight->setCoords(right_Hight, lY2);
|
mRect->bottomRight->setCoords(right_Hight, lY2);
|
||||||
|
|
||||||
//位置与rect不一样,否则图像反转
|
|
||||||
// mPixmap->topLeft->setCoords(right_Hight, lY1);
|
|
||||||
// mPixmap->bottomRight->setCoords(left_Low, (lY1+lY2)/2.0);
|
|
||||||
|
|
||||||
//mItemTitle->position->setCoords(0.5, 0.5);
|
|
||||||
// 设置父锚点,定位点
|
|
||||||
//mItemTitle->position->setParentAnchor(mRect->bottom);
|
|
||||||
// mItemTitle->position->setCoords((mRect->topLeft->coords().x() + mRect->bottomRight->coords().x())/2,
|
|
||||||
// (mRect->topLeft->coords().y() + mRect->bottomRight->coords().y())/2); // 设置文本在矩形中心位置
|
|
||||||
|
|
||||||
float flNewPos = mPlot->xAxis->coordToPixel((left_Low + right_Hight)/2.0) - 15;
|
float flNewPos = mPlot->xAxis->coordToPixel((left_Low + right_Hight)/2.0) - 15;
|
||||||
mItemTitle->position->setCoords(mPlot->xAxis->pixelToCoord(flNewPos),
|
mItemTitle->position->setCoords(mPlot->xAxis->pixelToCoord(flNewPos),
|
||||||
7*(lY1 + lY2)/8.0); // 设置文本在矩形中心位置
|
7*(lY1 + lY2)/8.0); // 设置文本在矩形中心位置
|
||||||
|
|
||||||
//mRect->topLeft->setCoords(left, mPlot->yAxis->range().upper);
|
|
||||||
//mRect->bottomRight->setCoords(right, mPlot->yAxis->range().lower);
|
|
||||||
|
|
||||||
updateHandles();
|
updateHandles();
|
||||||
mPlot->replot();
|
mPlot->replot();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,15 @@ void TransparentDraggableMFac::setMinWidth(double minWidth)
|
||||||
void TransparentDraggableMFac::setTitle(QString strTitle)
|
void TransparentDraggableMFac::setTitle(QString strTitle)
|
||||||
{
|
{
|
||||||
mstrTitle = strTitle;
|
mstrTitle = strTitle;
|
||||||
|
//mItemTitle->setText(mstrTitle);
|
||||||
|
//
|
||||||
|
if(mPlot->m_bDrawMFacName)// 微相名称
|
||||||
|
{
|
||||||
mItemTitle->setText(mstrTitle);
|
mItemTitle->setText(mstrTitle);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
mItemTitle->setText("");
|
||||||
|
}
|
||||||
//mPlot->replot();
|
//mPlot->replot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -49,24 +57,48 @@ void TransparentDraggableMFac::setRange(double left_Low, double right_Hight)
|
||||||
double lY1 = mPlot->yAxis->range().lower;//+10
|
double lY1 = mPlot->yAxis->range().lower;//+10
|
||||||
double lY2 = mPlot->yAxis->range().upper;
|
double lY2 = mPlot->yAxis->range().upper;
|
||||||
mRect->topLeft->setCoords(left_Low, lY1);
|
mRect->topLeft->setCoords(left_Low, lY1);
|
||||||
|
if(mPlot->m_bDrawFac && mPlot->m_bDrawPhase)
|
||||||
|
{
|
||||||
|
//画2条竖线
|
||||||
mRect->bottomRight->setCoords(right_Hight, (lY1+lY2)/2.0);
|
mRect->bottomRight->setCoords(right_Hight, (lY1+lY2)/2.0);
|
||||||
|
}
|
||||||
|
else if(mPlot->m_bDrawFac || mPlot->m_bDrawPhase)
|
||||||
|
{
|
||||||
|
//画1条竖线
|
||||||
|
mRect->bottomRight->setCoords(right_Hight, 3*(lY1+lY2)/4.0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mRect->bottomRight->setCoords(right_Hight, lY2);
|
||||||
|
}
|
||||||
|
|
||||||
//位置与rect不一样,否则图像反转
|
//
|
||||||
// mPixmap->topLeft->setCoords(right_Hight, lY1);
|
if(mPlot->m_bDrawMFacName)// 微相名称
|
||||||
// mPixmap->bottomRight->setCoords(left_Low, (lY1+lY2)/2.0);
|
{
|
||||||
|
mItemTitle->setText(mstrTitle);
|
||||||
//mItemTitle->position->setCoords(0.5, 0.5);
|
}
|
||||||
// 设置父锚点,定位点
|
else{
|
||||||
//mItemTitle->position->setParentAnchor(mRect->bottom);
|
mItemTitle->setText("");
|
||||||
// mItemTitle->position->setCoords((mRect->topLeft->coords().x() + mRect->bottomRight->coords().x())/2,
|
}
|
||||||
// (mRect->topLeft->coords().y() + mRect->bottomRight->coords().y())/2); // 设置文本在矩形中心位置
|
|
||||||
|
|
||||||
float flNewPos = mPlot->xAxis->coordToPixel((left_Low + right_Hight)/2.0) - 15;
|
float flNewPos = mPlot->xAxis->coordToPixel((left_Low + right_Hight)/2.0) - 15;
|
||||||
|
if(mPlot->m_bDrawFac && mPlot->m_bDrawPhase)
|
||||||
|
{
|
||||||
|
//画2条竖线
|
||||||
mItemTitle->position->setCoords(mPlot->xAxis->pixelToCoord(flNewPos),
|
mItemTitle->position->setCoords(mPlot->xAxis->pixelToCoord(flNewPos),
|
||||||
(lY1 + lY2)/4.0); // 设置文本在矩形中心位置
|
(lY1 + lY2)/4.0); // 设置文本在矩形中心位置
|
||||||
|
}
|
||||||
//mRect->topLeft->setCoords(left, mPlot->yAxis->range().upper);
|
else if(mPlot->m_bDrawFac || mPlot->m_bDrawPhase)
|
||||||
//mRect->bottomRight->setCoords(right, mPlot->yAxis->range().lower);
|
{
|
||||||
|
//画1条竖线
|
||||||
|
mItemTitle->position->setCoords(mPlot->xAxis->pixelToCoord(flNewPos),
|
||||||
|
3*(lY1 + lY2)/8.0); // 设置文本在矩形中心位置
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mItemTitle->position->setCoords(mPlot->xAxis->pixelToCoord(flNewPos),
|
||||||
|
(lY1 + lY2)/2.0); // 设置文本在矩形中心位置
|
||||||
|
}
|
||||||
|
|
||||||
updateHandles();
|
updateHandles();
|
||||||
mPlot->replot();
|
mPlot->replot();
|
||||||
|
|
|
||||||
|
|
@ -41,25 +41,32 @@ void TransparentDraggablePhase::setRange(double left_Low, double right_Hight)
|
||||||
|
|
||||||
double lY1 = mPlot->yAxis->range().lower;//+10
|
double lY1 = mPlot->yAxis->range().lower;//+10
|
||||||
double lY2 = mPlot->yAxis->range().upper;
|
double lY2 = mPlot->yAxis->range().upper;
|
||||||
|
if(mPlot->m_bDrawFac)
|
||||||
|
{
|
||||||
|
//绘制相
|
||||||
mRect->topLeft->setCoords(left_Low, (lY1+lY2)/2.0);
|
mRect->topLeft->setCoords(left_Low, (lY1+lY2)/2.0);
|
||||||
mRect->bottomRight->setCoords(right_Hight, 3*(lY1+lY2)/4.0);
|
mRect->bottomRight->setCoords(right_Hight, 3*(lY1+lY2)/4.0);
|
||||||
|
}
|
||||||
//位置与rect不一样,否则图像反转
|
else
|
||||||
// mPixmap->topLeft->setCoords(right_Hight, lY1);
|
{
|
||||||
// mPixmap->bottomRight->setCoords(left_Low, (lY1+lY2)/2.0);
|
//不绘制相
|
||||||
|
mRect->topLeft->setCoords(left_Low, 3*(lY1+lY2)/4.0);
|
||||||
//mItemTitle->position->setCoords(0.5, 0.5);
|
mRect->bottomRight->setCoords(right_Hight, lY2);
|
||||||
// 设置父锚点,定位点
|
}
|
||||||
//mItemTitle->position->setParentAnchor(mRect->bottom);
|
|
||||||
// mItemTitle->position->setCoords((mRect->topLeft->coords().x() + mRect->bottomRight->coords().x())/2,
|
|
||||||
// (mRect->topLeft->coords().y() + mRect->bottomRight->coords().y())/2); // 设置文本在矩形中心位置
|
|
||||||
|
|
||||||
float flNewPos = mPlot->xAxis->coordToPixel((left_Low + right_Hight)/2.0) - 15;
|
float flNewPos = mPlot->xAxis->coordToPixel((left_Low + right_Hight)/2.0) - 15;
|
||||||
|
if(mPlot->m_bDrawFac)
|
||||||
|
{
|
||||||
|
//绘制相
|
||||||
mItemTitle->position->setCoords(mPlot->xAxis->pixelToCoord(flNewPos),
|
mItemTitle->position->setCoords(mPlot->xAxis->pixelToCoord(flNewPos),
|
||||||
5*(lY1 + lY2)/8.0); // 设置文本在矩形中心位置
|
5*(lY1 + lY2)/8.0); // 设置文本在矩形中心位置
|
||||||
|
}
|
||||||
//mRect->topLeft->setCoords(left, mPlot->yAxis->range().upper);
|
else
|
||||||
//mRect->bottomRight->setCoords(right, mPlot->yAxis->range().lower);
|
{
|
||||||
|
//不绘制相
|
||||||
|
mItemTitle->position->setCoords(mPlot->xAxis->pixelToCoord(flNewPos),
|
||||||
|
7*(lY1 + lY2)/8.0); // 设置文本在矩形中心位置
|
||||||
|
}
|
||||||
|
|
||||||
updateHandles();
|
updateHandles();
|
||||||
mPlot->replot();
|
mPlot->replot();
|
||||||
|
|
|
||||||
|
|
@ -470,6 +470,7 @@ void FormDraw::DisplayTable_One(QJsonObject lineObjInfo)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QString folderPath = GetLogdataPath();
|
QString folderPath = GetLogdataPath();
|
||||||
folderPath = folderPath + g_prjname;
|
folderPath = folderPath + g_prjname;
|
||||||
strSlfName = folderPath + "/" + "#" + strWellName + "/" + strSlfName;
|
strSlfName = folderPath + "/" + "#" + strWellName + "/" + strSlfName;
|
||||||
|
|
@ -540,6 +541,7 @@ void FormDraw::DisplayTable_One(QJsonObject lineObjInfo)
|
||||||
else{
|
else{
|
||||||
listOtherProperty.append("0");
|
listOtherProperty.append("0");
|
||||||
}
|
}
|
||||||
|
|
||||||
//结论
|
//结论
|
||||||
this->addTableLine(m_strUuid, strSlfName, strWellName, m_strTrackName, strLineName, listOtherProperty);
|
this->addTableLine(m_strUuid, strSlfName, strWellName, m_strTrackName, strLineName, listOtherProperty);
|
||||||
}
|
}
|
||||||
|
|
@ -694,6 +696,32 @@ void FormDraw::DisplayFac_One(QJsonObject lineObjInfo)
|
||||||
lineColor.setNamedColor(lineObjInfo.value("lineColor").toString());
|
lineColor.setNamedColor(lineObjInfo.value("lineColor").toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//沉积相
|
||||||
|
bool bDrawFac = true; // 绘制相
|
||||||
|
bool bDrawPhase = true; // 绘制亚相
|
||||||
|
bool bDrawMFacName = true; // 微相名称
|
||||||
|
if (lineObjInfo.contains("DrawFac"))
|
||||||
|
{
|
||||||
|
QJsonValue value = lineObjInfo.value("DrawFac");
|
||||||
|
if (value.isBool()) {
|
||||||
|
bDrawFac = value.toBool();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (lineObjInfo.contains("DrawPhase"))
|
||||||
|
{
|
||||||
|
QJsonValue value = lineObjInfo.value("DrawPhase");
|
||||||
|
if (value.isBool()) {
|
||||||
|
bDrawPhase = value.toBool();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (lineObjInfo.contains("DrawMFacName"))
|
||||||
|
{
|
||||||
|
QJsonValue value = lineObjInfo.value("DrawMFacName");
|
||||||
|
if (value.isBool()) {
|
||||||
|
bDrawMFacName = value.toBool();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
QString folderPath = GetLogdataPath();
|
QString folderPath = GetLogdataPath();
|
||||||
folderPath = folderPath + g_prjname;
|
folderPath = folderPath + g_prjname;
|
||||||
strSlfName = folderPath + "/" + "#" + strWellName + "/" + strSlfName;
|
strSlfName = folderPath + "/" + "#" + strWellName + "/" + strSlfName;
|
||||||
|
|
@ -704,6 +732,31 @@ void FormDraw::DisplayFac_One(QJsonObject lineObjInfo)
|
||||||
listOtherProperty.append(strAliasName);//别名
|
listOtherProperty.append(strAliasName);//别名
|
||||||
listOtherProperty.append(lineColor.name());//名称颜色
|
listOtherProperty.append(lineColor.name());//名称颜色
|
||||||
listOtherProperty.append(curveNameFont.toString());//名称字体
|
listOtherProperty.append(curveNameFont.toString());//名称字体
|
||||||
|
|
||||||
|
//沉积相
|
||||||
|
if(bDrawFac)
|
||||||
|
{
|
||||||
|
listOtherProperty.append("DrawFac");
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
listOtherProperty.append("0");
|
||||||
|
}
|
||||||
|
//
|
||||||
|
if(bDrawPhase)
|
||||||
|
{
|
||||||
|
listOtherProperty.append("DrawPhase");
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
listOtherProperty.append("0");
|
||||||
|
}
|
||||||
|
//
|
||||||
|
if(bDrawMFacName)
|
||||||
|
{
|
||||||
|
listOtherProperty.append("DrawMFacName");
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
listOtherProperty.append("0");
|
||||||
|
}
|
||||||
//沉积相
|
//沉积相
|
||||||
this->s_addLogface(m_strUuid, strSlfName, strWellName, m_strTrackName, strLineName, 0, listOtherProperty); //
|
this->s_addLogface(m_strUuid, strSlfName, strWellName, m_strTrackName, strLineName, 0, listOtherProperty); //
|
||||||
}
|
}
|
||||||
|
|
@ -2649,6 +2702,37 @@ void FormDraw::s_addLogface(QString strUuid, QString strSlfName, QString strWell
|
||||||
curv->xAxis = yAxis;
|
curv->xAxis = yAxis;
|
||||||
curv->yAxis = xAxis;
|
curv->yAxis = xAxis;
|
||||||
|
|
||||||
|
if(listOtherProperty.size()>=6)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
if(listOtherProperty[3]=="DrawFac")
|
||||||
|
{
|
||||||
|
curv->m_bDrawFac = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
curv->m_bDrawFac = false;
|
||||||
|
}
|
||||||
|
//
|
||||||
|
if(listOtherProperty[4]=="DrawPhase")
|
||||||
|
{
|
||||||
|
curv->m_bDrawPhase = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
curv->m_bDrawPhase = false;
|
||||||
|
}
|
||||||
|
//
|
||||||
|
if(listOtherProperty[5]=="DrawMFacName")
|
||||||
|
{
|
||||||
|
curv->m_bDrawMFacName = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
curv->m_bDrawMFacName = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//沉积相
|
//沉积相
|
||||||
//QString strWaveName = "LITHA";
|
//QString strWaveName = "LITHA";
|
||||||
curv->LoadFromSLF_Fac(strSlfName, strLineName);
|
curv->LoadFromSLF_Fac(strSlfName, strLineName);
|
||||||
|
|
|
||||||
|
|
@ -171,7 +171,9 @@ QJsonObject FormInfo::makeJson()
|
||||||
else if (m_strType == "LogfaceObject")
|
else if (m_strType == "LogfaceObject")
|
||||||
{
|
{
|
||||||
//沉积相
|
//沉积相
|
||||||
|
rootObj["DrawFac"] = m_bDrawFac;
|
||||||
|
rootObj["DrawPhase"] = m_bDrawPhase;
|
||||||
|
rootObj["DrawMFacName"] = m_bDrawMFacName;
|
||||||
//item属性写入slf文件,不需要此次记录
|
//item属性写入slf文件,不需要此次记录
|
||||||
return rootObj;
|
return rootObj;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -181,6 +181,11 @@ public:
|
||||||
//气测/FMT/射孔/文本
|
//气测/FMT/射孔/文本
|
||||||
QStringList m_FieldNameList;
|
QStringList m_FieldNameList;
|
||||||
|
|
||||||
|
//沉积相
|
||||||
|
bool m_bDrawFac = true; // 绘制相
|
||||||
|
bool m_bDrawPhase = true; // 绘制亚相
|
||||||
|
bool m_bDrawMFacName = true; // 微相名称
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void setLineWidth(double dWidth);
|
void setLineWidth(double dWidth);
|
||||||
double getLineWidth();
|
double getLineWidth();
|
||||||
|
|
|
||||||
|
|
@ -1005,6 +1005,36 @@ void FormTrack::s_addLogface(QString strSlfName, QString strWellName, QString st
|
||||||
curveNameFont.fromString(listOtherProperty[2]);
|
curveNameFont.fromString(listOtherProperty[2]);
|
||||||
formInfo->m_curveNameFont = curveNameFont;
|
formInfo->m_curveNameFont = curveNameFont;
|
||||||
}
|
}
|
||||||
|
if(listOtherProperty.size()>=6)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
if(listOtherProperty[3]=="DrawFac")
|
||||||
|
{
|
||||||
|
formInfo->m_bDrawFac = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
formInfo->m_bDrawFac = false;
|
||||||
|
}
|
||||||
|
//
|
||||||
|
if(listOtherProperty[4]=="DrawPhase")
|
||||||
|
{
|
||||||
|
formInfo->m_bDrawPhase = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
formInfo->m_bDrawPhase = false;
|
||||||
|
}
|
||||||
|
//
|
||||||
|
if(listOtherProperty[5]=="DrawMFacName")
|
||||||
|
{
|
||||||
|
formInfo->m_bDrawMFacName = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
formInfo->m_bDrawMFacName = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
//设置高度
|
//设置高度
|
||||||
ui->tableWidget->setRowHeight(row, 100);
|
ui->tableWidget->setRowHeight(row, 100);
|
||||||
//单元格委托
|
//单元格委托
|
||||||
|
|
|
||||||
|
|
@ -139,6 +139,8 @@ QMyCustomPlot::QMyCustomPlot(QWidget *parent, QString strSlfName, QString strWel
|
||||||
connect(CallManage::getInstance(), SIGNAL(sig_changeGeoLithLine(QString, QString, QString, QString, QString, double)), this, SLOT(s_changeGeoLithLine(QString, QString, QString, QString, QString, double)));
|
connect(CallManage::getInstance(), SIGNAL(sig_changeGeoLithLine(QString, QString, QString, QString, QString, double)), this, SLOT(s_changeGeoLithLine(QString, QString, QString, QString, QString, double)));
|
||||||
//是否显示
|
//是否显示
|
||||||
connect(CallManage::getInstance(), SIGNAL(sig_changeGeoLithShow(QString, QString, QString, QString, QString, QString, bool)), this, SLOT(s_changeGeoLithShow(QString, QString, QString, QString, QString, QString, bool)));
|
connect(CallManage::getInstance(), SIGNAL(sig_changeGeoLithShow(QString, QString, QString, QString, QString, QString, bool)), this, SLOT(s_changeGeoLithShow(QString, QString, QString, QString, QString, QString, bool)));
|
||||||
|
//改变沉积相属性,是否显示
|
||||||
|
connect(CallManage::getInstance(), SIGNAL(sig_changeFacShow(QString, QString, QString, QString, QString, QString, bool)), this, SLOT(s_changeFacShow(QString, QString, QString, QString, QString, QString, bool)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void QMyCustomPlot::initGeometry(QString strUuid, int nscale, int nW)
|
void QMyCustomPlot::initGeometry(QString strUuid, int nscale, int nW)
|
||||||
|
|
@ -6088,6 +6090,83 @@ void QMyCustomPlot::s_changeGeoLithShow(QString strUuid, QString strSlfName, QSt
|
||||||
//不清空属性窗口
|
//不清空属性窗口
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//改变沉积相属性,是否显示
|
||||||
|
void QMyCustomPlot::s_changeFacShow(QString strUuid, QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString propertyData, bool bShow)
|
||||||
|
{
|
||||||
|
if(m_strUuid == strUuid &&
|
||||||
|
m_strSlfName == strSlfName &&
|
||||||
|
m_strWellName == strWellName &&
|
||||||
|
m_strTrackName == strTrackName &&
|
||||||
|
m_strLineName == strLineName)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(propertyData == "绘制相")
|
||||||
|
{
|
||||||
|
m_bDrawFac = bShow;
|
||||||
|
RefreshItems_Fac(false); //刷新数据
|
||||||
|
{
|
||||||
|
//微相
|
||||||
|
TransparentDraggableMFac *pDraggableRect =NULL;
|
||||||
|
QMap<QString,QObject *>::Iterator it = m_mapDraggable_MFac.begin();
|
||||||
|
while( it != m_mapDraggable_MFac.end() )
|
||||||
|
{
|
||||||
|
pDraggableRect = (TransparentDraggableMFac*)it.value();
|
||||||
|
it++;
|
||||||
|
//刷新
|
||||||
|
QCPRange tmpRange = pDraggableRect->getRange();
|
||||||
|
pDraggableRect->setRange(tmpRange.lower, tmpRange.upper);
|
||||||
|
//pDraggableRect->setTitle(pDraggableRect->mstrTitle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if(propertyData == "绘制亚相")
|
||||||
|
{
|
||||||
|
m_bDrawPhase = bShow;
|
||||||
|
RefreshItems_Fac(false); //刷新数据
|
||||||
|
{
|
||||||
|
//微相
|
||||||
|
TransparentDraggableMFac *pDraggableRect =NULL;
|
||||||
|
QMap<QString,QObject *>::Iterator it = m_mapDraggable_MFac.begin();
|
||||||
|
while( it != m_mapDraggable_MFac.end() )
|
||||||
|
{
|
||||||
|
pDraggableRect = (TransparentDraggableMFac*)it.value();
|
||||||
|
it++;
|
||||||
|
//刷新
|
||||||
|
QCPRange tmpRange = pDraggableRect->getRange();
|
||||||
|
pDraggableRect->setRange(tmpRange.lower, tmpRange.upper);
|
||||||
|
//pDraggableRect->setTitle(pDraggableRect->mstrTitle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if(propertyData == "微相名称")
|
||||||
|
{
|
||||||
|
m_bDrawMFacName = bShow;
|
||||||
|
{
|
||||||
|
//微相
|
||||||
|
TransparentDraggableMFac *pDraggableRect =NULL;
|
||||||
|
QMap<QString,QObject *>::Iterator it = m_mapDraggable_MFac.begin();
|
||||||
|
while( it != m_mapDraggable_MFac.end() )
|
||||||
|
{
|
||||||
|
pDraggableRect = (TransparentDraggableMFac*)it.value();
|
||||||
|
it++;
|
||||||
|
//刷新
|
||||||
|
QCPRange tmpRange = pDraggableRect->getRange();
|
||||||
|
pDraggableRect->setRange(tmpRange.lower, tmpRange.upper);
|
||||||
|
//pDraggableRect->setTitle(pDraggableRect->mstrTitle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//不清空属性窗口
|
||||||
|
}
|
||||||
|
|
||||||
bool QMyCustomPlot::LoadFromSLF_Layer(QString strSlfName, QString strLineName)
|
bool QMyCustomPlot::LoadFromSLF_Layer(QString strSlfName, QString strLineName)
|
||||||
{
|
{
|
||||||
LAYER_DATA m_Result;
|
LAYER_DATA m_Result;
|
||||||
|
|
@ -7554,6 +7633,21 @@ void QMyCustomPlot::ReadData_Fac(QString strSlfName, QString csCurve, bool bAdd)
|
||||||
|
|
||||||
void QMyCustomPlot::DrawFac(int iType)
|
void QMyCustomPlot::DrawFac(int iType)
|
||||||
{
|
{
|
||||||
|
//判读是否绘制 相/亚相
|
||||||
|
if(m_bDrawFac && iType==1)
|
||||||
|
{
|
||||||
|
//相
|
||||||
|
}
|
||||||
|
else if(m_bDrawPhase && iType==2)
|
||||||
|
{
|
||||||
|
//亚相
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
int j;
|
int j;
|
||||||
float dep1,dep2;
|
float dep1,dep2;
|
||||||
float top,bottom;
|
float top,bottom;
|
||||||
|
|
@ -7683,8 +7777,10 @@ bool QMyCustomPlot::LoadFromSLF_Fac(QString strSlfName, QString csCurve, bool bA
|
||||||
removeItem(m_qcpItemLine2);
|
removeItem(m_qcpItemLine2);
|
||||||
}
|
}
|
||||||
|
|
||||||
//画2条竖线
|
|
||||||
int iMyWidth = this->axisRect(0)->width();
|
int iMyWidth = this->axisRect(0)->width();
|
||||||
|
if(m_bDrawFac && m_bDrawPhase)
|
||||||
|
{
|
||||||
|
//画2条竖线
|
||||||
m_qcpItemLine = new QCPItemStraightLine(this);
|
m_qcpItemLine = new QCPItemStraightLine(this);
|
||||||
m_qcpItemLine->point1->setCoords(-1, iMyWidth/2);//位置
|
m_qcpItemLine->point1->setCoords(-1, iMyWidth/2);//位置
|
||||||
m_qcpItemLine->point2->setCoords(-2, iMyWidth/2);//位置
|
m_qcpItemLine->point2->setCoords(-2, iMyWidth/2);//位置
|
||||||
|
|
@ -7693,6 +7789,14 @@ bool QMyCustomPlot::LoadFromSLF_Fac(QString strSlfName, QString csCurve, bool bA
|
||||||
m_qcpItemLine2 = new QCPItemStraightLine(this);
|
m_qcpItemLine2 = new QCPItemStraightLine(this);
|
||||||
m_qcpItemLine2->point1->setCoords(-1, 3*iMyWidth/4);//位置
|
m_qcpItemLine2->point1->setCoords(-1, 3*iMyWidth/4);//位置
|
||||||
m_qcpItemLine2->point2->setCoords(-2, 3*iMyWidth/4);//位置
|
m_qcpItemLine2->point2->setCoords(-2, 3*iMyWidth/4);//位置
|
||||||
|
}
|
||||||
|
else if(m_bDrawFac || m_bDrawPhase)
|
||||||
|
{
|
||||||
|
//画1条竖线
|
||||||
|
m_qcpItemLine2 = new QCPItemStraightLine(this);
|
||||||
|
m_qcpItemLine2->point1->setCoords(-1, 3*iMyWidth/4);//位置
|
||||||
|
m_qcpItemLine2->point2->setCoords(-2, 3*iMyWidth/4);//位置
|
||||||
|
}
|
||||||
|
|
||||||
ReadFracDef();
|
ReadFracDef();
|
||||||
|
|
||||||
|
|
@ -7920,5 +8024,5 @@ void QMyCustomPlot::RefreshItems_Fac(bool bAdd)
|
||||||
LoadFromSLF_Fac(m_strSlfName, m_strLineName, bAdd);
|
LoadFromSLF_Fac(m_strSlfName, m_strLineName, bAdd);
|
||||||
|
|
||||||
//属性清空
|
//属性清空
|
||||||
PropertyService()->InitCurrentViewInfo();
|
//PropertyService()->InitCurrentViewInfo();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -259,6 +259,10 @@ public:
|
||||||
QList <FAC_TABLE> m_ObjList_Fac;
|
QList <FAC_TABLE> m_ObjList_Fac;
|
||||||
QCPItemStraightLine *m_qcpItemLine=nullptr;
|
QCPItemStraightLine *m_qcpItemLine=nullptr;
|
||||||
QCPItemStraightLine *m_qcpItemLine2=nullptr;
|
QCPItemStraightLine *m_qcpItemLine2=nullptr;
|
||||||
|
//沉积相
|
||||||
|
bool m_bDrawFac = true; // 绘制相
|
||||||
|
bool m_bDrawPhase = true; // 绘制亚相
|
||||||
|
bool m_bDrawMFacName = true; // 微相名称
|
||||||
void ReadFracDef();
|
void ReadFracDef();
|
||||||
void ReadData_Fac(QString strSlfName, QString csCurve, bool bAdd=true);
|
void ReadData_Fac(QString strSlfName, QString csCurve, bool bAdd=true);
|
||||||
void DrawFac(int iType);
|
void DrawFac(int iType);
|
||||||
|
|
@ -489,6 +493,9 @@ public slots:
|
||||||
//是否显示
|
//是否显示
|
||||||
void s_changeGeoLithShow(QString strUuid, QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString propertyData, bool bShow);
|
void s_changeGeoLithShow(QString strUuid, QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString propertyData, bool bShow);
|
||||||
|
|
||||||
|
//改变沉积相属性,是否显示
|
||||||
|
void s_changeFacShow(QString strUuid, QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString propertyData, bool bShow);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//蝌蚪图重绘网格线
|
//蝌蚪图重绘网格线
|
||||||
bool mKedou = false;
|
bool mKedou = false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user