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 "nmObjPointTool.h"
|
|
|
|
|
|
|
|
|
|
// 数值试井绘图对象之工具(线)
|
|
|
|
|
class NM_PLOT_EXPORT nmObjLineTool : public nmObjPointTool
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
nmObjLineTool();
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
};
|