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.
nmWATI/Include/nmNum/nmPlot/nmObjPointTool.h

33 lines
782 B
C++

#pragma once
#include "nmObjToolBase.h"
// 数值试井绘图对象之工具(点)
class NM_PLOT_EXPORT nmObjPointTool : public nmObjToolBase
{
Q_OBJECT
public:
nmObjPointTool();
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 onPaint(QPainter* painter, const ZxPaintParam& param);
protected:
// 根据鼠标当前选择情况确定不同的光标类型
virtual Qt::CursorShape getCursorBy(const int& nOption, \
const int& nSubIndex);
};