- UID
- 361846
- 积分
- 0
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2005-12-6
- 最后登录
- 1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
怎么得到光標指針?
CFoxMove_Jig *pMoveJig = new CFoxMove_Jig;
pMoveJig->doIt(movecircle, ptStart, m_Point, false);
CFoxMove_Jig派生于AcEdJig類,AcEdJig類的實現代碼中dolt函數代碼如下:
int CFoxMove_Jig::doIt(AcDbEntity *pEntity,
AcGePoint3d &ptStart,
AcGePoint3d &ptEnd,
bool rubberbandLine)
{
m_rubberbandLine = rubberbandLine;
m_pEntity = pEntity;
m_point1 = ptStart;
m_basePoint = ptStart;
acutPrintf("Please input a point: \n");
AcEdJig::DragStatus stat = drag();
ptEnd = m_point2;
switch (stat)
{
case AcEdJig::kCancel:
return RTCAN;
break;
case AcEdJig::kNull:
return RTERROR;
break;
case AcEdJig::kNormal:
return RTNORM;
break;
}
return RTNORM;
} |
|