34 lines
993 B
C++
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__
|