From 280e1bc845ad6743617e841d05b0e3809aa0a986 Mon Sep 17 00:00:00 2001 From: cbwu <504-wuchengbo@htsdfp.com> Date: Tue, 9 Apr 2024 14:20:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E9=99=90=E5=88=B6?= =?UTF-8?q?=E5=8C=BA=E8=A3=85=E8=AE=A2=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GISDlg.cpp | 10 ++++++---- GISDlg.h | 5 ++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/GISDlg.cpp b/GISDlg.cpp index 0183437..13e8221 100644 --- a/GISDlg.cpp +++ b/GISDlg.cpp @@ -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); } diff --git a/GISDlg.h b/GISDlg.h index 8c49d9b..db707cf 100644 --- a/GISDlg.h +++ b/GISDlg.h @@ -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: -- 2.37.1.windows.1