|
|
@ -1972,6 +1972,11 @@ void CGISDlg::MouseDownMap1(short Button, short Shift, long x, long y)
|
|
|
|
if (addPointPos>m_editLineDataGroup.linePointNum-4) return; //回收航线屏蔽4,5,6长边不让编辑
|
|
|
|
if (addPointPos>m_editLineDataGroup.linePointNum-4) return; //回收航线屏蔽4,5,6长边不让编辑
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (m_editLineDataGroup.pointNum>=127) //限制最多127个点
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//计算添加点坐标
|
|
|
|
//计算添加点坐标
|
|
|
|
double linePt1[2] = {m_editLineDataGroup.linePts[addPointPos-1].dX,m_editLineDataGroup.linePts[addPointPos-1].dY};
|
|
|
|
double linePt1[2] = {m_editLineDataGroup.linePts[addPointPos-1].dX,m_editLineDataGroup.linePts[addPointPos-1].dY};
|
|
|
@ -2038,6 +2043,10 @@ void CGISDlg::MouseDownMap1(short Button, short Shift, long x, long y)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (m_bSetPointModel)//置点
|
|
|
|
if (m_bSetPointModel)//置点
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (m_designLinePointNum>=127) //限制最多127个航点
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
POINT pt;
|
|
|
|
POINT pt;
|
|
|
|
GetCursorPos( &pt );
|
|
|
|
GetCursorPos( &pt );
|
|
|
|