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 <ZxSimpleTool.h>
|
|
|
|
|
|
|
|
|
|
class ZxRenderItem;
|
|
|
|
|
|
|
|
|
|
/// 区域缩放和滚轮缩放
|
|
|
|
|
class I_PLOTBASE_EXPORT ZxZoomTool : public ZxSimpleTool
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
ZxZoomTool();
|
|
|
|
|
ZxZoomTool(const ZxZoomTool& c);
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
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 void onPaint(QPainter* painter, const ZxPaintParam& param);
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
bool m_bTracking;
|
|
|
|
|
QRectF m_rtTracker;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|