#pragma once #include #include #include #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 m_vecObjPts; QRectF m_rt; };