You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
#include "iGuiPlotCmdHelper.h"
|
|
|
|
|
|
#include "nmPlot_global.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include <QMap>
|
|
|
|
|
|
#include "nmDefines.h"
|
|
|
|
|
|
#include "nmObjToolBase.h"
|
|
|
|
|
|
|
|
|
|
|
|
// 该类是数值试井绘图载体的样例nmGuiPlot的Cmd命令分发处理
|
|
|
|
|
|
class NM_PLOT_EXPORT nmGuiPlotCmdHelper
|
|
|
|
|
|
: public iGuiPlotCmdHelper
|
|
|
|
|
|
{
|
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
explicit nmGuiPlotCmdHelper(iGuiPlot* p);
|
|
|
|
|
|
~nmGuiPlotCmdHelper();
|
|
|
|
|
|
|
|
|
|
|
|
virtual bool runAction(QString sAction) override;
|
|
|
|
|
|
|
|
|
|
|
|
// 插入背景
|
|
|
|
|
|
void insertBkImg();
|
|
|
|
|
|
|
|
|
|
|
|
// 插入井点
|
|
|
|
|
|
void insertOneWell();
|
|
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
void sigMeasureStarted();
|
|
|
|
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
|
|
|
|
|
|
|
void slotObjPtsFinished(QVector<QPointF>& vec);
|
|
|
|
|
|
void finishMeasure();
|
|
|
|
|
|
// void slotObjFinished();
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
|
|
friend class nmGuiPlot;
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
QMap<NM_Obj_Type,nmObjToolBase*> m_activeTools;
|
|
|
|
|
|
};
|