Files
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

28 lines
749 B
C++

#include "stdafx.h"
class TPolyEdJig2 : public TSymbEdJig {
public:
enum TPolyOper {kNone=0, kLinePoint=1, kArcPoint=2, kArcMidPoint=3, kArcRadius=4};
protected:
TPolyOper m_nOperCode;
// I/O
AcDbPolyline *m_pDrawEnt;
public:
TPolyEdJig2(AcDbPolyline *);
virtual int DoIt(int *pKeyIndex=NULL);
DragStatus GetPoint(XPoint &pt);
protected:
virtual Adesk::Boolean update();
virtual AcDbEntity* entity() const;
public:
void SetOperCode(TPolyEdJig2::TPolyOper opCode) {
m_nOperCode=opCode;
}
TPolyOper GetOperCode() {
return m_nOperCode;
}
};
extern int DragInputPoly(XPoint ptStart, XPoly2D &poly2dRet);
extern int GetOpenPoly(const TCHAR *pMsg, XPoly2D &poly2d, Entity &entRet);