feat: 新增限制区装订。 #23

Merged
WuChengbo merged 1 commits from dev/cbwu into master 1 year ago

@ -7993,6 +7993,7 @@ void CGISDlg::SetMenuZoneCheck(CMenu& menu){
} }
//显示限飞区1-5
void CGISDlg::OnShowRestrictedZone1(){ void CGISDlg::OnShowRestrictedZone1(){
SetZoneState(restrictedZoneLayersID[0]); SetZoneState(restrictedZoneLayersID[0]);
} }
@ -8012,7 +8013,7 @@ void CGISDlg::OnShowRestrictedZone4(){
void CGISDlg::OnShowRestrictedZone5(){ void CGISDlg::OnShowRestrictedZone5(){
SetZoneState(restrictedZoneLayersID[4]); SetZoneState(restrictedZoneLayersID[4]);
} }
//显示禁飞区1-5
void CGISDlg::OnShowNoFlyZone1(){ void CGISDlg::OnShowNoFlyZone1(){
SetZoneState(noFlyZoneLayersID[0]); SetZoneState(noFlyZoneLayersID[0]);
} }
@ -8032,10 +8033,11 @@ void CGISDlg::OnShowNoFlyZone4(){
void CGISDlg::OnShowNoFlyZone5(){ void CGISDlg::OnShowNoFlyZone5(){
SetZoneState(noFlyZoneLayersID[4]); SetZoneState(noFlyZoneLayersID[4]);
} }
//装订限制区
void CGISDlg::OnBindZone(){ void CGISDlg::OnBindZone()
{
m_struMapOut.cmd=MapCmd_BindZone; 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 bDrawRestrictedZone;
bool bShowZone; bool bShowZone;
double firstZonePoint[2]; double firstZonePoint[2];
//绘制限制区
void DrawRestrictedZone(long& layerID,double* xPoints,double* yPoints,int nPoints,int type); void DrawRestrictedZone(long& layerID,double* xPoints,double* yPoints,int nPoints,int type);
//清除限制区
void ClearZoneLayer(long& zoneID); void ClearZoneLayer(long& zoneID);
//计算矩形坐标
void ComputeRectanglePoints(double* point1,double* point2,double* xPoints,double* yPoints); void ComputeRectanglePoints(double* point1,double* point2,double* xPoints,double* yPoints);
//显示限制区保存对话框
void ShowSaveZoneDlg(double* xPoints,double* yPoints); void ShowSaveZoneDlg(double* xPoints,double* yPoints);
void ShowGivenZone();
void arrayDouble2Variant(double *pArray,int iDimlength,VARIANT &vaArray); void arrayDouble2Variant(double *pArray,int iDimlength,VARIANT &vaArray);
protected: protected:

Loading…
Cancel
Save