#pragma once #include "ZxObjPointTool.h" #include "mGuiPlot_global.h" #include "mAlgDefines.h" // 点工具 class M_GUI_PLOT_EXPORT ZxObjWmPointTool : public ZxObjPointTool { Q_OBJECT public: ZxObjWmPointTool(); signals: void sigPointsHit(QVector); protected: virtual Qt::CursorShape getCursorBy(const int& nOption, const int& nSubIndex); public: virtual bool onLeftDown(const QPointF& pt); virtual bool onLeftUp(const QPointF& pt); virtual bool onMouseMove(const QPointF& pt); virtual bool onMouseWheel(const QPointF& pt, int delta); virtual bool onLeftDoubleClick(const QPointF& pt); virtual void onKeyPress(QKeyEvent *event); virtual void onPaint(QPainter* painter, const ZxPaintParam& param); public: void setWmt(m_Wel_Type o); m_Wel_Type getWmt(); protected: m_Wel_Type m_oWmt; };