#pragma once #include "CurveEditorBase.h" namespace NItem { /* * ???????????????????¦¶?????????? * * ??????? * 1. ???????????¦¶?????????????????????????? * 2. ???????????????????????? * 3. ?????????????????Default????? */ class CurveEditorCosine : public CurveEditorBase { public: CurveEditorCosine(CSigmaDoc* pDoc) : CurveEditorBase(pDoc) {} virtual ~CurveEditorCosine(void) {} protected: // ?????????????????????????? void OnDrawDragPreview() override; // ???????????????????¦¶??????????????? void OnCalculateDragEffect(CPointList* pList) override; private: // ??????????????? double GetPointOffset(double offset); // ?????????? void GetDragPoint(CPoint2D& dp, CPointList& NewPointList, int& begin, int& end); }; };