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.
32 lines
632 B
C++
32 lines
632 B
C++
#pragma once
|
|
#include "stdafx.h"
|
|
#include "ActionItem.h"
|
|
|
|
namespace NAction
|
|
{
|
|
class CActionCurveEditAddPoint : public CActionItem
|
|
{
|
|
public:
|
|
CActionCurveEditAddPoint();
|
|
CActionCurveEditAddPoint(CSigmaDoc * pDoc, UINT actionType, POSITION pos);
|
|
|
|
std::string GetActionName() const override
|
|
{
|
|
return typeid(*this).name();
|
|
}
|
|
|
|
void Undo() override;
|
|
void Redo() override;
|
|
void SetIndexOfNodeAdded(int index);
|
|
|
|
void accept(CActionVisitor& visitor) override;
|
|
|
|
friend class BlobSerializer;
|
|
private:
|
|
CCurveEx * GetCurve();
|
|
private:
|
|
POSITION m_posOfCurve = nullptr;
|
|
int m_index = -1;
|
|
dfPoint nodeAdded;
|
|
};
|
|
} |