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.
46 lines
894 B
C++
46 lines
894 B
C++
#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<QPointF>);
|
|
|
|
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;
|
|
|
|
};
|