Files
envi-code/SourceCode/Code2026/tg_shs/shs_kerncmd/InputPoly.h
T
2026-09-28 15:28:50 +08:00

28 lines
746 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);