//回调函数
void SelectedFunc(UGlong pWnd, UGLayer* pLayer, UGint nGeoID)
{
qDebug() << nGeoID;
}
//编辑代码
void PluginInstance1::EditPoint()
{
m_type = PointType::EDITPOINT;
QMapControl*mapControl = dynamic_cast<QMapControl*>(m_parent->getMapcontrol());
UGMap*map = mapControl->GetMap();
UGC::UGMapEditorWnd* pMapeditorwnd = mapControl->GetUGMapWnd();
pMapeditorwnd->SetSelectionMode(UGMapWnd::smContainCentroid);
pMapeditorwnd->SetUserAction(UGDrawParamaters::UGMapUserAction::uaPointModeSelect);
pMapeditorwnd->SetSingleGeometrySelectedFunc(SelectedFunc,UGlong(this));
}
想问下为什么点被选中之后没有进到回调函数里面