Files
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

34 lines
993 B
C++

#ifndef _TSUPPORTFUNC_H__
#define _TSUPPORTFUNC_H__
#if _MSC_VER > 1000
#pragma once
#endif
class TSupportFunc
{
public:
static AcGePoint3d Mid(AcGePoint3d ptGe1,AcGePoint3d ptGe2);
static AcGePoint3d Mid(AcDbCurve* pCurve);
static double PixelToWcs(int nPixel);
static AcDbArc* FormatArc(AcGePoint3d& ptGe1,AcGePoint3d& ptGe2,AcGePoint3d& ptGe3);
// BOOL GetVerticalFootPoint(const TComplexCurve& compCurve, const AcGePoint3d& pickPoint, const AcGePoint3d& lastPoint, AcGePoint3d& ptVerFoot) const;
//
// BOOL GetNearestPoint(const TComplexCurve& compCurve, const AcGePoint3d& pickPoint, AcGePoint3d& ptNear) const;
// abc@bcd@ : sRetData = abc,sSrc = bcd@
BOOL SplitString(LPCTSTR pszKey, CString& sRetData, CString& sSrc) const;
// abc@bcd@ = 2;
int GetSplitedCount(LPCTSTR pszKey, LPCTSTR pszSrc) const;
//int GetClapboardDimension(TDbObjXDataMap* pXdMap, AcGeDoubleArray& arDimen,LPCTSTR pszClapType = KEY_CLAPBOARD_DATA) const;
};
#endif //TSUPPORTFUNC_H__