本文整理汇总了C++中ODPoint::SetODPointRangeRingsColour方法的典型用法代码示例。如果您正苦于以下问题:C++ ODPoint::SetODPointRangeRingsColour方法的具体用法?C++ ODPoint::SetODPointRangeRingsColour怎么用?C++ ODPoint::SetODPointRangeRingsColour使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ODPoint
的用法示例。
在下文中一共展示了ODPoint::SetODPointRangeRingsColour方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SaveChanges
bool EBLProp::SaveChanges( void )
{
wxColour l_EBLOrigColour = m_pEBL->GetCurrentColour();
ODPoint *pFirstPoint = m_pEBL->m_pODPointList->GetFirst()->GetData();
bool l_bUpdatePath = false;
double l_dLength;
m_textCtrlTotalLength->GetValue().ToDouble( &l_dLength );
l_dLength = fromUsrDistance_Plugin( l_dLength );
if(m_pEBL->m_dLength != l_dLength) {
l_bUpdatePath = true;
m_pEBL->m_dLength = l_dLength;
}
if(pFirstPoint->GetODPointRangeRingsColour() == l_EBLOrigColour)
pFirstPoint->SetODPointRangeRingsColour( m_pEBL->GetCurrentColour() );
m_pEBL->m_bFixedEndPosition = m_checkBoxEBLFixedEndPosition->GetValue();
m_pEBL->m_iPersistenceType = m_radioBoxPathPersistence->GetSelection();
if(m_pEBL->m_iPersistenceType == ID_NOT_PERSISTENT || m_pEBL->m_iPersistenceType == ID_PERSISTENT_CRASH)
m_pEBL->m_bTemporary = true;
else
m_pEBL->m_bTemporary = false;
m_pEBL->m_bRotateWithBoat = m_checkBoxRotateWithBoat->GetValue();
if(m_pEBL->m_bRotateWithBoat)
m_pEBL->m_bFixedEndPosition = false;
m_pEBL->m_iMaintainWith = m_radioBoxMaintainWith->GetSelection();
double l_dEBLAngle;
m_textCtrlEBLAngle->GetValue().ToDouble( &l_dEBLAngle );
if(m_pEBL->m_bRotateWithBoat) {
if(l_dEBLAngle != m_pEBL->m_dEBLAngle) {
l_bUpdatePath = true;
m_pEBL->m_dEBLAngle = l_dEBLAngle;
}
} else if(!m_pEBL->m_bFixedEndPosition) {
switch (m_pEBL->m_iMaintainWith) {
case ID_MAINTAIN_WITH_HEADING:
m_pEBL->m_dEBLAngle = l_dEBLAngle + g_pfFix.Hdm;
break;
case ID_MAINTAIN_WITH_COG:
m_pEBL->m_dEBLAngle = l_dEBLAngle + g_pfFix.Cog;
break;
}
}
if(l_bUpdatePath)
m_pEBL->MoveEndPoint(true);
m_pEBL->m_bDrawArrow = m_checkBoxPathShowArrow->GetValue();
m_pEBL->m_bVRM = m_checkBoxShowVRM->GetValue();
m_pEBL->m_bAlwaysShowInfo = m_checkBoxShowEBLInfo->GetValue();
if(m_pEBL->m_bVRM) {
pFirstPoint->m_bShowODPointRangeRings = true;
} else
pFirstPoint->m_bShowODPointRangeRings = false;
m_pEBL->m_bPerpLine = m_checkBoxShowPerpLine->GetValue();
bool ret = ODPathPropertiesDialogImpl::SaveChanges();
return ret;
}