把非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

@@ -1,4 +1,4 @@
#ifndef _TEIMPCABOFFSET_H__
#ifndef _TEIMPCABOFFSET_H__
#define _TEIMPCABOFFSET_H__
#if _MSC_VER > 1000
@@ -15,20 +15,20 @@ public:
public:
// 接口描述对象
// 接口描述对象
virtual BOOL GetInterface(int nIndex,TInterface& pipeInterface) const;
virtual BOOL GetInterface(const AcGePoint3d& ptCon,TInterface& pipeInterface) const;
virtual BOOL HasInterface(const AcGePoint3d& ptCon,const AcGeVector3d& vtDir);
virtual int GetInterfaceCount() const;
// 建立接口关联关系
// 建立接口关联关系
virtual BOOL SetInterfaceRelation(const AcGePoint3d& ptConnect,const AcDbObjectId& idConnect);
// 移除接口关联关系
// 移除接口关联关系
virtual BOOL RemoveInterfaceRelation(const AcGePoint3d& ptConnect,const AcDbObjectId& idConnect);
// 接口更改通知
// 接口更改通知
virtual BOOL NotifyInterfaceToModify(const TInterfaceModifyMsg& iModiMsg,TInterfaceModifyMsgs& iModiMsgs);
virtual TDb::Position ExplainGripIndex(int nIndex) const;
@@ -40,7 +40,7 @@ public:
virtual BOOL MakePolyCurveFaces(AcDbVoidPtrArray& arFaces);
//连接线根据需要去掉
//连接线根据需要去掉
virtual BOOL NoneConectLineIfNeed(TComplexCurve& cplCurve) const;
virtual BOOL MakeCurves(TComplexCurve& cplCurve) const;
@@ -49,19 +49,19 @@ public:
virtual void GetTips(CMapStringToString& mapLable2Tip) const;
//获取三维的壳对象
//获取三维的壳对象
virtual int GetXBaseShell(TXShell& xShell);
//获取体的范围方块
//获取体的范围方块
virtual int GetBodyBox(AcDbExtents& ext);
//左偏乙字弯
//左偏乙字弯
int MakeHorLeftOffsetShell(TXShell& xShell) const;
//右偏乙字弯
//右偏乙字弯
int MakeHorRightOffsetShell(TXShell& xShell) const;
//垂直乙字弯
//垂直乙字弯
int MakeVerOffsetShell(TXShell& xShell) const;
int GetBodyBoxHorLeftOffsetShell(AcDbExtents& ext);
@@ -71,11 +71,11 @@ public:
int GetBodyBoxVerOffsetShell(AcDbExtents& ext);
void AppendAcDbExtents(std::vector<AcGePoint3d>& vctpt,AcDbExtents& ext);
// add by 2011.02.21 剖切功能 注意 GetSection内不应将std::vector<TObjSectionRecord>参数清空
// add by 2011.02.21 剖切功能 注意 GetSection内不应将std::vector<TObjSectionRecord>参数清空
virtual bool GetSection(const AcDbFace &face, const AcGeVector3d &vtPlaneSecDir,
std::vector<TObjSectionRecord> &sectionRecord, AcDbVoidPtrArray& arFillPtrs) const;
// 剖切用,返回Z坐标最高、最低点
// 剖切用,返回Z坐标最高、最低点
virtual Acad::ErrorStatus GetExtents(TADSGePoint3d &ptLow, TADSGePoint3d &ptUp) const;
public:
@@ -105,14 +105,14 @@ public:
//}}AFX_ARX_METHODS
private:
//左偏乙字弯
//左偏乙字弯
BOOL MakeHorLeftOffsetCurves(TComplexCurve& cplCurve) const;
//右偏乙字弯
//右偏乙字弯
BOOL MakeHorRightOffsetCurves(TComplexCurve& cplCurve) const;
//垂直乙字弯
//垂直乙字弯
BOOL MakeVerOffsetCurves(TComplexCurve& cplCurve) const;
//生成完整的CURVE
//生成完整的CURVE
BOOL MakeBaseCurves(TComplexCurve& cplCurve) const;
@@ -124,14 +124,14 @@ private:
CString GetCurrentTypeName() const;
//获取中心线
//获取中心线
BOOL GetOffsetMidLine(TComplexCurve& compCurve) const;
// 获取垂足点
// 获取垂足点
BOOL GetVerticalFootPoint(const AcGePoint3d& pickPoint,const AcGePoint3d& lastPoint,AcGePoint3d& ptVerFoot) const;
// 获取最近点
// 获取最近点
BOOL GetNearestPoint(const AcGePoint3d& pickPoint,
AcGePoint3d& ptNear) const;
//创建面
//创建面
AcDbFace* CreateAcDbFace(const AcGePoint3d& pt1,
const AcGePoint3d& pt2,
const AcGePoint3d& pt3,
@@ -141,7 +141,7 @@ private:
Acad::ErrorStatus ExplodeOrHorRightDraw3d(XExplodeDraw &mode) const;
Acad::ErrorStatus ExplodeOrVerDraw3d(XExplodeDraw &mode) const;
// 判断实体是否为桥架
// 判断实体是否为桥架
BOOL MakesureIsPipe(const AcDbObjectId& id) const;
BOOL GetIndexOfPointIsOn(TComplexCurve& cplCurv,const AcGePoint3d& ptOn,int& nIndex) const;
AcDbFace* CreateAcDbFace(const AcGePoint3d& pt1,