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 <QPointF>
|
|
|
|
|
#include <QRectF>
|
|
|
|
|
#include <QUndoCommand>
|
|
|
|
|
#include "iPlotCurveT_global.h"
|
|
|
|
|
|
|
|
|
|
class ZxObjBase;
|
|
|
|
|
class ZxRenderItem;
|
|
|
|
|
|
|
|
|
|
// 命令: 擦除曲线上的点
|
|
|
|
|
class I_PLOTCURVE_T_EXPORT ZxCommandEraseCurvePts : public QUndoCommand
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
ZxCommandEraseCurvePts(ZxObjBase* pObj,
|
|
|
|
|
QRectF rt,
|
|
|
|
|
bool bNeedLayout = true,
|
|
|
|
|
QUndoCommand* parent = 0);
|
|
|
|
|
~ZxCommandEraseCurvePts();
|
|
|
|
|
|
|
|
|
|
virtual void redo();
|
|
|
|
|
virtual void undo();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
ZxObjBase* m_pObj;
|
|
|
|
|
bool m_bNeedLayout;
|
|
|
|
|
|
|
|
|
|
ZxRenderItem* m_pParent;
|
|
|
|
|
QVector<QPointF> m_vecObjPts;
|
|
|
|
|
QRectF m_rt;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|