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

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