#pragma once #include "ZxObjToolBase.h" #include "mGuiPlot_global.h" //平行边界线工具 class M_GUI_PLOT_EXPORT ZxObjBdyParalTool : public ZxObjToolBase { Q_OBJECT public: ZxObjBdyParalTool(); 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: };