本文整理汇总了C++中ODPoint::SetIconName方法的典型用法代码示例。如果您正苦于以下问题:C++ ODPoint::SetIconName方法的具体用法?C++ ODPoint::SetIconName怎么用?C++ ODPoint::SetIconName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ODPoint
的用法示例。
在下文中一共展示了ODPoint::SetIconName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CentreOnLatLon
void EBL::CentreOnLatLon( double lat, double lon )
{
ODPoint *pStartPoint = m_pODPointList->GetFirst()->GetData();
pStartPoint->m_lat = lat;
pStartPoint->m_lon = lon;
pStartPoint->m_ODPointName = _("Start");
if(pStartPoint->GetIconName() != wxEmptyString) {
pStartPoint->SetIconName( g_sEBLStartIconName );
pStartPoint->ReLoadIcon();
}
m_bCentreOnBoat = false;
m_bSaveUpdates = true;
UpdateEBL();
if(g_pEBLPropDialog && g_pEBLPropDialog->IsShown())
g_pEBLPropDialog->UpdateProperties();
RequestRefresh( g_ocpn_draw_pi->m_parent_window );
return;
}
示例2: CentreOnLatLon
void EBL::CentreOnLatLon( double lat, double lon )
{
ODPoint *pStartPoint = m_pODPointList->GetFirst()->GetData();
ODPoint *pEndPoint = m_pODPointList->GetLast()->GetData();
pStartPoint->m_lat = lat;
pStartPoint->m_lon = lon;
DistanceBearingMercator_Plugin(pEndPoint->m_lat, pEndPoint->m_lon, pStartPoint->m_lat, pStartPoint->m_lon, &m_dEBLAngle, &m_dLength);
m_bRotateWithBoat = false;
m_bCentreOnBoat = false;
pStartPoint->m_ODPointName = _("Start");
if(pStartPoint->GetIconName() != wxEmptyString) {
pStartPoint->SetIconName( g_sEBLStartIconName );
pStartPoint->ReLoadIcon();
}
m_bCentreOnBoat = false;
m_bSaveUpdates = true;
UpdateEBL();
if(g_pEBLPropDialog && g_pEBLPropDialog->IsShown())
g_pEBLPropDialog->UpdateProperties();
RequestRefresh( g_ocpn_draw_pi->m_parent_window );
return;
}