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