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/mGui/mGuiPlot/WellBdy/ZxObjBdyCricleTool.h

33 lines
667 B
C++

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