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