Files
envi-code/SourceCode/Code2026/tg_shs/inc/pipebase/TSupportFunc.h
T
2026-09-28 15:28:50 +08:00

32 lines
974 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(TDbXDataMap* pXdMap, AcGeDoubleArray& arDimen,LPCTSTR pszClapType = KEY_CLAPBOARD_DATA) const;
};
#endif //TSUPPORTFUNC_H__