Merge pull request 'feat: 新增目标点测试接口' (#33) from dev/cbwu into master

Reviewed-on: #33
master
WuChengbo 11 months ago
commit 04b9fc1c1f

@ -403,4 +403,15 @@ extern "C" void WINAPI UpdateDataInfo(int index,const char* key,double value )
{ {
g_mapShowDlg.UpdateDataInfo(index,key,value); g_mapShowDlg.UpdateDataInfo(index,key,value);
}*/ }*/
}
//功能:目标追踪测试接口
//输入经纬度点的像素大小默认20
extern "C" _declspec(dllexport) void OnShowTargetPoint(const double lon, const double lat, const int pixelSize)
{
AFX_MANAGE_STATE(AfxGetAppModuleState());
if (g_bCreateMap)
{
g_mapShowDlg.OnShowTargetPoint(lon,lat,pixelSize);
}
} }

@ -106,6 +106,9 @@ extern "C" _declspec(dllexport) void SetMsgInfo(const HWND hwnd, const UINT msg
extern "C" _declspec(dllexport) void DrawCallBackPoint(const BYTE callbackMode, const double lon, const double lat); extern "C" _declspec(dllexport) void DrawCallBackPoint(const BYTE callbackMode, const double lon, const double lat);
//功能:目标追踪测试接口
//输入经纬度点的像素大小默认20
extern "C" _declspec(dllexport) void OnShowTargetPoint(const double lon, const double lat, const int pixelSize=20);

@ -35,4 +35,5 @@ EXPORTS
GetMouseWheel @28 GetMouseWheel @28
UpdateDataInfo @29 UpdateDataInfo @29
AddAirPt_ADS @30 AddAirPt_ADS @30
ZoomToLocation @31 ZoomToLocation @31
OnShowTargetPoint @32

@ -371,6 +371,9 @@ CGISDlg::CGISDlg(CWnd* pParent /*=NULL*/)
m_bEnableShowADSB = true; m_bEnableShowADSB = true;
testLayer = -1;
} }
@ -924,7 +927,6 @@ void CGISDlg::OnMapZoomIn()
m_bLDSetPoint = FALSE; m_bLDSetPoint = FALSE;
m_bSelectFeatureFlag = false; m_bSelectFeatureFlag = false;
} }
//華芞坫苤 //華芞坫苤
@ -8465,6 +8467,18 @@ void CGISDlg::SaveMultiRouteLine(CString pathDirName,double heightInterval,const
} }
void CGISDlg::OnShowTargetPoint(double lon,double lat,int pixelSize)
{
if (testLayer!=-1)
{
m_map.ClearDrawing(testLayer);
testLayer = -1;
}
testLayer = m_map.NewDrawing(1);
m_map.DrawPointEx(testLayer,lon,lat,pixelSize,RGB(255,0,0));
//m_map.Redraw2(mapWindow::tkRedrawType::RedrawMinimal);
m_map.Redraw();
}

@ -985,6 +985,10 @@ public:
/****************************多机航线一键生成************************************/ /****************************多机航线一键生成************************************/
void GetMultiRouteLine(double azimuth,double lineInterval,int lineNumber,PtStruct* lineStruct,int nLinePts,vector<vector<PtStruct>>& resultLines); void GetMultiRouteLine(double azimuth,double lineInterval,int lineNumber,PtStruct* lineStruct,int nLinePts,vector<vector<PtStruct>>& resultLines);
void SaveMultiRouteLine(CString pathDirName,double heightInterval,const vector<vector<PtStruct>>& resultLines); void SaveMultiRouteLine(CString pathDirName,double heightInterval,const vector<vector<PtStruct>>& resultLines);
/****************************µõ²ÕÄ¿±ê×·×Ù²âÊÔ************************************/
long testLayer;
void OnShowTargetPoint(double lon,double lat,int pixelSize=20);
}; };
//{{AFX_INSERT_LOCATION}} //{{AFX_INSERT_LOCATION}}

Loading…
Cancel
Save