#pragma once #include "ZxObjToolBase.h" #include "mGuiPlot_global.h" //边界线工具 class M_GUI_PLOT_EXPORT ZxObjBdyLineTool : public ZxObjToolBase { Q_OBJECT public: ZxObjBdyLineTool(); protected: virtual Qt::CursorShape getCursorBy(const int& nOption, const int& nSubIndex); public: virtual bool onLeftDown(const QPointF& pt); virtual bool onMouseMove(const QPointF& pt); virtual bool onLeftDoubleClick(const QPointF& pt); virtual void onPaint(QPainter* painter, const ZxPaintParam& param); //绘制标签 void drawLabel(QPainter* painter, QString str, QPointF pt); private: };