本文整理汇总了C++中ODPoint::GetIconName方法的典型用法代码示例。如果您正苦于以下问题:C++ ODPoint::GetIconName方法的具体用法?C++ ODPoint::GetIconName怎么用?C++ ODPoint::GetIconName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ODPoint
的用法示例。
在下文中一共展示了ODPoint::GetIconName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: DeleteAllODPoints
void PointMan::DeleteAllODPoints( bool b_delete_used )
{
// Iterate on the ODPoint list, deleting all
wxODPointListNode *node = m_pODPointList->GetFirst();
while( node ) {
ODPoint *prp = node->GetData();
// if argument is false, then only delete non-path ODPoints
if( !prp->m_bIsInLayer && ( prp->GetIconName() != _T("mob") )
&& ( ( b_delete_used && prp->m_bKeepXPath )
|| !prp->m_bIsInPath ) ) {
DestroyODPoint(prp);
if(prp->m_sTypeString == wxT("ODPoint"))
delete prp;
else if(prp->m_sTypeString == wxT("Text Point")) {
delete (TextPoint *)node->GetData();
}
node = m_pODPointList->GetFirst();
} else
node = node->GetNext();
}
return;
}
示例3: 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;
}