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.
kev/Drawer/Module/GeoSigmaDraw/ActionCurveEditDeletePoint.h

32 lines
652 B
C++

#pragma once
#include "stdafx.h"
#include "ActionItem.h"
namespace NAction
{
class CActionCurveEditDeletePoint : public CActionItem
{
public:
CActionCurveEditDeletePoint();
CActionCurveEditDeletePoint(CSigmaDoc * pDoc, UINT actionType, POSITION pos);
std::string GetActionName() const override
{
return typeid(*this).name();
}
void Undo() override;
void Redo() override;
void SetNodeDeleted(dfPoint & node, int index);
void accept(CActionVisitor& visitor) override;
friend class BlobSerializer;
private:
CCurveEx * GetCurve();
private:
POSITION m_posOfCurve = nullptr;
int m_index = -1;
dfPoint nodeAdded;
};
}