chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
This commit is contained in:
1 parent
2b0c2055ff
commit
164968b62e
6171 files changed
+191244
-191243
No files matched your search
@@ -1,4 +1,4 @@
|
||||
#include "stdafx.h"
|
||||
#include "stdafx.h"
|
||||
#include "commonRoad.h"
|
||||
#include "FilroadConnectGroup.h"
|
||||
|
||||
@@ -24,21 +24,21 @@ CFilroadConnectGroup::~CFilroadConnectGroup(void)
|
||||
}
|
||||
|
||||
|
||||
// 添加一个connect到组内。
|
||||
// 添加一个connect到组内。
|
||||
void CFilroadConnectGroup::AddConnect(CFilroadConnect *pConnect)
|
||||
{
|
||||
ASSERT(pConnect != NULL);
|
||||
m_arConnect.append(pConnect);
|
||||
}
|
||||
|
||||
// 合并另一个组connect到组内。
|
||||
// 合并另一个组connect到组内。
|
||||
void CFilroadConnectGroup::AddGroup(CFilroadConnectGroup &otherGroup)
|
||||
{
|
||||
m_arConnect.append(otherGroup.m_arConnect);
|
||||
m_arMidConnect.append(otherGroup.m_arMidConnect);
|
||||
}
|
||||
|
||||
// 检测一个点是否能够添加到组内。
|
||||
// 检测一个点是否能够添加到组内。
|
||||
BOOL CFilroadConnectGroup::CheckAConnect(CFilroadConnect *pConnect)
|
||||
{
|
||||
for (int i = 0; i < (int)m_arConnect.length(); i++)
|
||||
@@ -76,7 +76,7 @@ BOOL CFilroadConnectGroup::Draw(double dRaidus, AcAryCircArc2d &arEdgeArc, AcAry
|
||||
bRet = FALSE;
|
||||
|
||||
if (m_arMidConnect.length() == 1)
|
||||
{ // 只有一个中心线
|
||||
{ // 只有一个中心线
|
||||
bSameCenterMid = TRUE;
|
||||
if (m_arMidConnect[0]->Filroad(*pConnectIn, dRaidus, cirArcDump))
|
||||
arMidArc.append(cirArcDump);
|
||||
@@ -114,8 +114,8 @@ BOOL CFilroadConnectGroup::Draw(double dRaidus, AcAryCircArc2d &arEdgeArc, AcAry
|
||||
return bRet;
|
||||
}
|
||||
|
||||
// 检测某connect是否是拐角道路的中线。
|
||||
// 如果该group不是拐角,直接返回false;
|
||||
// 检测某connect是否是拐角道路的中线。
|
||||
// 如果该group不是拐角,直接返回false;
|
||||
BOOL CFilroadConnectGroup::CheckInsideMidConnect(CFilroadConnect *pConnect)
|
||||
{
|
||||
CFilroadConnect *pConnectIn, *pConnectOut;
|
||||
@@ -130,7 +130,7 @@ BOOL CFilroadConnectGroup::CheckInsideMidConnect(CFilroadConnect *pConnect)
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
// 添加一个中线connect到组内。
|
||||
// 添加一个中线connect到组内。
|
||||
void CFilroadConnectGroup::AddMidConnect(CFilroadConnect *pConnect)
|
||||
{
|
||||
m_arMidConnect.append(pConnect);
|
||||
|
||||
Reference in new issue
Block a user