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.
40 lines
835 B
C++
40 lines
835 B
C++
#pragma once
|
|
|
|
#include <QPointF>
|
|
#include <QUndoCommand>
|
|
#include "iPlotCurveT_global.h"
|
|
|
|
class ZxObjBase;
|
|
class ZxRenderItem;
|
|
|
|
// 命令: 删除Band所包围的曲线上的点
|
|
class I_PLOTCURVE_T_EXPORT ZxCommandDelCurvePts : public QUndoCommand
|
|
{
|
|
public:
|
|
|
|
ZxCommandDelCurvePts(QVector<ZxObjBase*>* pVecAllObjs,
|
|
ZxObjBase* pObj,
|
|
QVector<ZxObjBase*> vecBands,
|
|
bool bNeedLayout = true,
|
|
QUndoCommand* parent = 0);
|
|
~ZxCommandDelCurvePts();
|
|
|
|
virtual void redo();
|
|
virtual void undo();
|
|
|
|
private:
|
|
|
|
QVector<ZxObjBase*>* m_pVecAllObjs;
|
|
ZxObjBase* m_pObj;
|
|
QVector<ZxObjBase*> m_vecBands;
|
|
bool m_bNeedLayout;
|
|
|
|
QVector<int> m_vecIndexes;
|
|
ZxRenderItem* m_pParent;
|
|
QVector<QPointF> m_vecObjPts;
|
|
};
|
|
|
|
|
|
|
|
|