|
|
@ -31,6 +31,7 @@ bool nmGuiPlotCmdHelper::runAction(QString sAction)
|
|
|
|
Q_ASSERT (NULL != m_pGuiPlot);
|
|
|
|
Q_ASSERT (NULL != m_pGuiPlot);
|
|
|
|
ZxPlot* pPlot = m_pGuiPlot->m_pPlot;
|
|
|
|
ZxPlot* pPlot = m_pGuiPlot->m_pPlot;
|
|
|
|
Q_ASSERT (NULL != pPlot);
|
|
|
|
Q_ASSERT (NULL != pPlot);
|
|
|
|
|
|
|
|
nmDataLogFile::getInstance()->writeLog(" cmdHelper " + sAction);
|
|
|
|
// 鼠标交互,插入数值试井绘图对象 的例子:点、线、多边形
|
|
|
|
// 鼠标交互,插入数值试井绘图对象 的例子:点、线、多边形
|
|
|
|
if (_isSame(sAction, "nmInsertObjPoint")) {
|
|
|
|
if (_isSame(sAction, "nmInsertObjPoint")) {
|
|
|
|
nmObjToolBase* pObjTool = new nmObjPointTool();
|
|
|
|
nmObjToolBase* pObjTool = new nmObjPointTool();
|
|
|
@ -39,6 +40,14 @@ bool nmGuiPlotCmdHelper::runAction(QString sAction)
|
|
|
|
connect(pObjTool, SIGNAL(sigPtsFinished(QVector<QPointF>&)), \
|
|
|
|
connect(pObjTool, SIGNAL(sigPtsFinished(QVector<QPointF>&)), \
|
|
|
|
this, SLOT(slotObjPtsFinished(QVector<QPointF>&)));
|
|
|
|
this, SLOT(slotObjPtsFinished(QVector<QPointF>&)));
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
|
|
|
|
} else if (_isSame(sAction, "nmInsertObjPointWell")) {
|
|
|
|
|
|
|
|
nmObjToolBase* pObjTool = new nmObjPointWellTool();
|
|
|
|
|
|
|
|
nmDataLogFile::getInstance()->writeLog("in nmGuiPlotCmdHelper " + QString::number(pObjTool->getNOT()));
|
|
|
|
|
|
|
|
Q_ASSERT (NULL != pObjTool);
|
|
|
|
|
|
|
|
pPlot->appendTools(pObjTool);
|
|
|
|
|
|
|
|
connect(pObjTool, SIGNAL(sigPtsFinished(QVector<QPointF>&)), \
|
|
|
|
|
|
|
|
this, SLOT(slotObjPtsFinished(QVector<QPointF>&)));
|
|
|
|
|
|
|
|
return true;
|
|
|
|
} else if (_isSame(sAction, "nmInsertObjLine")) {
|
|
|
|
} else if (_isSame(sAction, "nmInsertObjLine")) {
|
|
|
|
nmObjToolBase* pObjTool = new nmObjLineTool();
|
|
|
|
nmObjToolBase* pObjTool = new nmObjLineTool();
|
|
|
|
Q_ASSERT (NULL != pObjTool);
|
|
|
|
Q_ASSERT (NULL != pObjTool);
|
|
|
@ -76,14 +85,6 @@ bool nmGuiPlotCmdHelper::runAction(QString sAction)
|
|
|
|
connect(pObjTool, SIGNAL(sigPtsFinished(QVector<QPointF>&)), \
|
|
|
|
connect(pObjTool, SIGNAL(sigPtsFinished(QVector<QPointF>&)), \
|
|
|
|
this, SLOT(slotObjPtsFinished(QVector<QPointF>&)));
|
|
|
|
this, SLOT(slotObjPtsFinished(QVector<QPointF>&)));
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
} else if (_isSame(sAction, "nmInsertObjPointWell")) {
|
|
|
|
|
|
|
|
nmObjToolBase* pObjTool = new nmObjPointWellTool();
|
|
|
|
|
|
|
|
nmDataLogFile::getInstance()->writeLog("in nmGuiPlotCmdHelper " + QString::number(pObjTool->getNOT()));
|
|
|
|
|
|
|
|
Q_ASSERT (NULL != pObjTool);
|
|
|
|
|
|
|
|
pPlot->appendTools(pObjTool);
|
|
|
|
|
|
|
|
connect(pObjTool, SIGNAL(sigPtsFinished(QVector<QPointF>&)), \
|
|
|
|
|
|
|
|
this, SLOT(slotObjPtsFinished(QVector<QPointF>&)));
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// 其它Action
|
|
|
|
// 其它Action
|
|
|
|
}
|
|
|
|
}
|
|
|
|