Merge pull request 'feat: 新增限制区装订。' (#23) from dev/cbwu into master

Reviewed-on: #23
master
WuChengbo 1 year ago
commit 52e2b9e6b4

@ -7993,6 +7993,7 @@ void CGISDlg::SetMenuZoneCheck(CMenu& menu){
}
//显示限飞区1-5
void CGISDlg::OnShowRestrictedZone1(){
SetZoneState(restrictedZoneLayersID[0]);
}
@ -8012,7 +8013,7 @@ void CGISDlg::OnShowRestrictedZone4(){
void CGISDlg::OnShowRestrictedZone5(){
SetZoneState(restrictedZoneLayersID[4]);
}
//显示禁飞区1-5
void CGISDlg::OnShowNoFlyZone1(){
SetZoneState(noFlyZoneLayersID[0]);
}
@ -8032,10 +8033,11 @@ void CGISDlg::OnShowNoFlyZone4(){
void CGISDlg::OnShowNoFlyZone5(){
SetZoneState(noFlyZoneLayersID[4]);
}
void CGISDlg::OnBindZone(){
//装订限制区
void CGISDlg::OnBindZone()
{
m_struMapOut.cmd=MapCmd_BindZone;
::SendMessage(GetParent()->GetSafeHwnd(),MESSAGE_B8MAP,0,0);
::SendMessage(GetParent()->GetSafeHwnd(),MESSAGE_B8MAP,(int)(&m_struMapOut),0);
}

@ -255,11 +255,14 @@ private: // by Wu
bool bDrawRestrictedZone;
bool bShowZone;
double firstZonePoint[2];
//绘制限制区
void DrawRestrictedZone(long& layerID,double* xPoints,double* yPoints,int nPoints,int type);
//清除限制区
void ClearZoneLayer(long& zoneID);
//计算矩形坐标
void ComputeRectanglePoints(double* point1,double* point2,double* xPoints,double* yPoints);
//显示限制区保存对话框
void ShowSaveZoneDlg(double* xPoints,double* yPoints);
void ShowGivenZone();
void arrayDouble2Variant(double *pArray,int iDimlength,VARIANT &vaArray);
protected:

Loading…
Cancel
Save