把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
This commit is contained in:
gjm committed 2026-10-04 00:04:20 +08:00
1 parent 2b0c2055ff
commit 164968b62e
6171 files changed
+191244 -191243

No files matched your search

+18 -18
View File
@@ -1,10 +1,10 @@
//-------------------------------------------------------------------------------------------------------+
//-------------------------------------------------------------------------------------------------------+
// Copyright (C), 1998-2007, SH Software Co. Ltd.
// = FileName : Entity 类
// = FileName : Entity 类
// = Version : ver2.0
// = Author : zjq
// = CreateDate : 2002-09-09
// = Description: Entity 定义
// = Description: Entity 定义
// = Maintainers:
//
//-------------------------------------------------------------------------------------------------------+
@@ -26,11 +26,11 @@
static const TCHAR *sMsgPrompt[] =
{
/*MSG0*/ _T("\n选择无效, 重新选择!"),
/*MSG1*/ _T("\n请重新选择!"),
/*MSG2*/ _T("\n发现不可变形的对象: "),
/*MSG3*/ _T("\n图块内有延伸方向不同于Z轴的对象,不能打散!"),
/*MSG4*/ _T("\n是否为该对象"),
/*MSG0*/ _T("\n选择无效, 重新选择!"),
/*MSG1*/ _T("\n请重新选择!"),
/*MSG2*/ _T("\n发现不可变形的对象: "),
/*MSG3*/ _T("\n图块内有延伸方向不同于Z轴的对象,不能打散!"),
/*MSG4*/ _T("\n是否为该对象"),
};
const TCHAR* Entity::ApplicationName=_T("_ASH");
@@ -203,7 +203,7 @@ int Entity::SetData(int code,...)
return _SetData(code,buf);*/
}
// 两个Resubf 节点成对的Match方可以
// 两个Resubf 节点成对的Match方可以
int Entity::Match(const RBList &exlist)
{
if (!groups)
@@ -452,7 +452,7 @@ int Entity::AssignAppName(const TCHAR *s)
return RTERROR;
}
// 创建扩充实体数据
// 创建扩充实体数据
void Entity::_MakeExGroups()
{
if (groups)
@@ -745,7 +745,7 @@ int Entity::GetExData(int tagCode,void *buf)
return RTERROR;
}
// Get 系列都没有检查类型的匹配 ------------------------------------!!!
// Get 系列都没有检查类型的匹配 ------------------------------------!!!
int Entity::GetInt(int tag_code,int &buf)
{
if (!groups || !groupsEx)
@@ -1164,10 +1164,10 @@ int Entity::MakeEx(int type,...)
}
// 求模型的边界(忽略图纸实体: POINT, TEXT, ATTRIB, ATTDEF, DIMENSION)
// tranMat -- 当前实体为图块中的子实体时,需左乘的变换矩阵
// 求模型的边界(忽略图纸实体: POINT, TEXT, ATTRIB, ATTDEF, DIMENSION)
// tranMat -- 当前实体为图块中的子实体时,需左乘的变换矩阵
// Status: When it's POLYLINE, the result still not verified
// return: RTNORM--确切求得边界; RTERROR--不能确切求得边界; RTNONE--模型边界不可求
// return: RTNORM--确切求得边界; RTERROR--不能确切求得边界; RTNONE--模型边界不可求
int Entity::GetExtend(ads_point lowPt, ads_point upPt, ads_matrix tranMat)
{
if (!tranMat)
@@ -1276,7 +1276,7 @@ int Entity::GetExtend(ads_point lowPt, ads_point upPt, ads_matrix tranMat)
return RTNONE;
}
else if (eType == _T("POLYLINE"))
{ // 不包含弧段时可求
{ // 不包含弧段时可求
int polyFlag;
GetData(70, &polyFlag);
if (polyFlag <= 1 && !tranMat)
@@ -1371,7 +1371,7 @@ int Entity::GetExtend(ads_point lowPt, ads_point upPt, ads_matrix tranMat)
return RTNORM;
}
// 实体变换: 允许不等比缩放
// 实体变换: 允许不等比缩放
int Entity::XTransform(ads_matrix mat)
{
XString eType;
@@ -1389,7 +1389,7 @@ int Entity::XTransform(ads_matrix mat)
AcDbPolyline *pline = AcDbPolyline::cast(obj.m_pObject);
if (pline)
{
//只对顶点进行变换, 不考虑弧度的变化
//只对顶点进行变换, 不考虑弧度的变化
int nVerts = pline->numVerts();
for (int i = 0; i < nVerts; i++)
{
@@ -1501,7 +1501,7 @@ int Entity::XTransform(ads_matrix mat)
return RTERROR;
}
// 求实体的范围
// 求实体的范围
int Entity::GetExtend(ads_point cen, ads_real *x, ads_real *y, ads_real *z)
{
XPoint lowPt, upPt;