#pragma once #include "itemfocusrect.h" namespace NItem { #define POINT_NULL_EMBELLISH 1 //清空个性修饰 #define POINT_SET_EMBELLISH 2 //设置个性修饰 #define POINT_SET_ANGLE 3 //设置角度 #define POINT_POLYGON_REL 4 //任意区域式设置可信度 #define POINT_RECT_REL 5 //矩形式设置可信度 class CItemPointProcess : public CItemFocusRect { public: CItemPointProcess(CSigmaDoc* ppDoc); virtual ~CItemPointProcess(void); int m_idea; //处理方式 int m_processCount; void OnLButtonDown(CDC *pDC, UINT nFlags, CPoint point, int vk) override; //virtual BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message); void DoLButtonUp(CDC *pDC) override; void SetProcessIdea(int nIdea); void SetPointStyle(CHowToViewPoint& ptStyle); protected: int SetNullEmbellish(void); int SetEmbellish(void); int SetAngle(void); double angle; int ReliabilityPolygon(void); int ReliabilityRect(void); POSITION SelectOneCurve(UINT nFlags, CPoint point); CHowToViewPoint ptStyle; }; };