岩心分析 读取slf文件
This commit is contained in:
parent
3ff50de9f2
commit
0935980d8c
|
|
@ -6609,7 +6609,7 @@ void FormDraw::initCorePhysics(QMyCustomPlot *widget, QString strSlfName, QStrin
|
||||||
y.append(CoreValue);
|
y.append(CoreValue);
|
||||||
|
|
||||||
// 已经加载了slf文件内容 显示界面上
|
// 已经加载了slf文件内容 显示界面上
|
||||||
widget->addCorePhysicsToPlot(Order, depth, CorrDepth, CoreValue);
|
// widget->addCorePhysicsToPlot(Order, depth, CorrDepth, CoreValue);
|
||||||
}
|
}
|
||||||
logio->CloseTable(iIndex);
|
logio->CloseTable(iIndex);
|
||||||
delete m_pResult;
|
delete m_pResult;
|
||||||
|
|
|
||||||
|
|
@ -1918,7 +1918,31 @@ void QMyCustomPlot::deleteItemsImage(){}
|
||||||
void QMyCustomPlot::refreshItemsImage(){}
|
void QMyCustomPlot::refreshItemsImage(){}
|
||||||
|
|
||||||
// 增加
|
// 增加
|
||||||
void QMyCustomPlot::addCorePhysics(int Order, double Depth, double CorrDepth, double CoreValue)
|
void QMyCustomPlot::addCorePhysics()
|
||||||
|
{
|
||||||
|
double right_Hight = xAxis->pixelToCoord(m_event->pos().y());//x轴展示深度
|
||||||
|
double left_Low = right_Hight;
|
||||||
|
QtCommonClass *qtCommon = new QtCommonClass(this);
|
||||||
|
QString strUuid = qtCommon->getUUid();
|
||||||
|
|
||||||
|
TransparentDraggableCorePhysics *dragRect = new TransparentDraggableCorePhysics(this, strUuid);
|
||||||
|
// 设置初始范围
|
||||||
|
dragRect->setRange(left_Low, right_Hight);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// 可选:设置颜色
|
||||||
|
// dragRect->setColor(crColor); // 半透明白色
|
||||||
|
//最小宽度
|
||||||
|
// dragRect->setMinWidth(0.1);
|
||||||
|
// dragRect->setTitle(strText);
|
||||||
|
m_mapDraggable_CorePhysics[strUuid] = dragRect;
|
||||||
|
|
||||||
|
this->saveToSLFCorePhysics();
|
||||||
|
}
|
||||||
|
|
||||||
|
void QMyCustomPlot::addCorePhysicsWithParam(int Order, double Depth, double CorrDepth, double CoreValue)
|
||||||
{
|
{
|
||||||
double right_Hight = xAxis->pixelToCoord(m_event->pos().y());//x轴展示深度
|
double right_Hight = xAxis->pixelToCoord(m_event->pos().y());//x轴展示深度
|
||||||
double left_Low = right_Hight;
|
double left_Low = right_Hight;
|
||||||
|
|
@ -4238,10 +4262,6 @@ void QMyCustomPlot::addImageToPlot(double left_Low, double right_Hight, const QS
|
||||||
m_mapDraggable_Image[strUuid] = dragRect;
|
m_mapDraggable_Image[strUuid] = dragRect;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 岩心分析
|
|
||||||
void addCorePhysicsToPlot(int Order, double Depth, double CorrDepth, double CoreValue)
|
|
||||||
{}
|
|
||||||
|
|
||||||
void QMyCustomPlot::addSelectRectToPlot(double left_Low, double right_Hight, int left_Low_Number, int right_Hight_Number)
|
void QMyCustomPlot::addSelectRectToPlot(double left_Low, double right_Hight, int left_Low_Number, int right_Hight_Number)
|
||||||
{
|
{
|
||||||
//qDebug() << "QMyCustomPlot addSelectRectToPlot";
|
//qDebug() << "QMyCustomPlot addSelectRectToPlot";
|
||||||
|
|
|
||||||
|
|
@ -323,9 +323,6 @@ public:
|
||||||
// left_Low底, right_Hight高 imagePath图片 left左边距 width宽 mBorderColor边框颜色、 mBorderStyle边框样式 mBorderWidth边框宽
|
// left_Low底, right_Hight高 imagePath图片 left左边距 width宽 mBorderColor边框颜色、 mBorderStyle边框样式 mBorderWidth边框宽
|
||||||
void addImageToPlot(double left_Low, double right_Hight, const QString imagePath, double left, double width, QColor mBorderColor, Qt::PenStyle mBorderStyle, int mBorderWidth);
|
void addImageToPlot(double left_Low, double right_Hight, const QString imagePath, double left, double width, QColor mBorderColor, Qt::PenStyle mBorderStyle, int mBorderWidth);
|
||||||
|
|
||||||
// 岩心分析
|
|
||||||
void addCorePhysicsToPlot(int Order, double Depth, double CorrDepth, double CoreValue);
|
|
||||||
|
|
||||||
//曲线
|
//曲线
|
||||||
void addRandomGraph(QVector<double> x, QVector<double> y, QString strSlfName, QString strLineName, QString strAliasName, QString strUnit,
|
void addRandomGraph(QVector<double> x, QVector<double> y, QString strSlfName, QString strLineName, QString strAliasName, QString strUnit,
|
||||||
double newLeftScale, double newRightScale, QString strScaleType, QColor &newlineColor, double width, Qt::PenStyle lineStyle);
|
double newLeftScale, double newRightScale, QString strScaleType, QColor &newlineColor, double width, Qt::PenStyle lineStyle);
|
||||||
|
|
@ -452,7 +449,8 @@ public slots:
|
||||||
void refreshItemsImage(); //刷新数据
|
void refreshItemsImage(); //刷新数据
|
||||||
|
|
||||||
//右键--编辑岩心分析
|
//右键--编辑岩心分析
|
||||||
void addCorePhysics(int Order = 0, double Depth = 0.0, double CorrDepth = 0.0, double CoreValue = 0.0); // 增加
|
void addCorePhysics(); // 增加
|
||||||
|
void addCorePhysicsWithParam(int Order = 0, double Depth = 0.0, double CorrDepth = 0.0, double CoreValue = 0.0);
|
||||||
void pasteCorePhysics(); //从剪切板文本数据粘贴
|
void pasteCorePhysics(); //从剪切板文本数据粘贴
|
||||||
void deleteCorePhysics(); //全部清空
|
void deleteCorePhysics(); //全部清空
|
||||||
void refreshCorePhysics(); //刷新数据
|
void refreshCorePhysics(); //刷新数据
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user