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/CurveEditorLinear.h

37 lines
826 B
C++

#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