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

57 lines
1.3 KiB
C++

#if !defined(ARX__TDBCABLEWATCH_H__20080828_130858)
#define ARX__TDBCABLEWATCH_H__20080828_130858
#if _MSC_VER > 1000
#pragma once
#endif
#include "dbmain.h"
#pragma warning(disable: 4275 4251)
class TDbCableWatch : public TDbCurveEntity
{
public:
TDbCableWatch();
virtual ~TDbCableWatch();
public:
void SetCenPoint(const AcGePoint3d &pt);
void SetAverageAngle(double dAng);
void SetStartVector(const AcGeVector3d& vt);
void SetNormal(const AcGeVector3d &vtNorm);
void SetText(const AcGePoint3d& pt,LPCTSTR lpText);
void SetPanState(BOOL bClose);
void GetNormal(AcGeVector3d &vtNorm);
//{{AFX_ARX_METHODS(TDbCableWatch)
virtual Acad::ErrorStatus ExplodeOrDraw2d(XExplodeDraw &mode) const;
//}}AFX_ARX_METHODS
//{{AFX_ARX_DATA_ACCESS(TDbCableWatch)
//}}AFX_ARX_DATA_ACCESS
private:
//{{AFX_ARX_DATA(TDbCableWatch)
//}}AFX_ARX_DATA
private:
void *operator new[](size_t nSize) { return 0; }
void operator delete[](void *p) {};
void *operator new[](size_t nSize, const char *file, int line) { return 0; }
void PixelToWcs(int nPixel,double& dGet) const;
private:
AcGePoint3d m_ptCen;
AcGePoint3d m_ptTextPosition;
CString m_sText;
double m_dAverageAng;
AcGeVector3d m_vtStart;
AcGeVector3d m_vtNormal;
AcDbText *m_pTextAng;
BOOL m_bClosePan;
};
#endif // !defined(ARX__TDBCABLEWATCH_H__20080828_130858)