Files
envi-code/SourceCode/Code2026/ThunderProof/ThunderPolyLineJig.h
T

64 lines
1.3 KiB
C++
Raw Normal View History

2026-10-04 00:04:20 +08:00
2026-09-28 15:28:50 +08:00
// = FileName: _THUNDERPOLYLINEJIG_H__
// = Version: 1.0
// = Author:
// = Date: 2008/07/03
2026-10-04 00:04:20 +08:00
// = Description: 标注的JIG
2026-09-28 15:28:50 +08:00
// = Maintainers:
2026-10-04 00:04:20 +08:00
// 版本号 时间 修改人 修改内容
2026-09-28 15:28:50 +08:00
#ifndef _THUNDERPOLYLINEJIG_H__
#define _THUNDERPOLYLINEJIG_H__
#if _MSC_VER > 1000
#pragma once
#endif
class TelThunderPolyLineJig : public AcEdJig
{
public:
TelThunderPolyLineJig();
virtual ~TelThunderPolyLineJig();
void start();
DragStatus sampler();
Adesk::Boolean update();
AcDbEntity* entity() const;
void SetPLinePoints(const AcGePoint3d& ptFirst,const AcGePoint3d& ptEnd);
void SetEntity(AcDbCircle *pCircle);
void SetEntity(AcDbArc *pArc);
void SetHeight(double dHeight);
private:
2026-10-04 00:04:20 +08:00
void DrawText(); //画文字
2026-09-28 15:28:50 +08:00
2026-10-04 00:04:20 +08:00
void DeleteOldDim();//删除以前的标注
2026-09-28 15:28:50 +08:00
CString ConvertIDToHandleString(const AcDbObjectId& id);
AcDbObjectId ConvertHStringToID(LPCTSTR pszHdl);
void DelObj(const AcDbObjectId& id);
bool DocGetMeterUnitDraw();
private:
AcDbPolyline *m_pPLine;
AcDbCircle *m_pCircle;
AcDbArc *m_pArc;
AcGePoint3d m_ptFirst;
AcGePoint3d m_ptEnd;
2026-10-04 00:04:20 +08:00
double m_dHeight; //保护高度
2026-09-28 15:28:50 +08:00
};
#endif // !defined(AFX_THUNDERPOLYLINEJIG_H__75BBF6F5_6662_4740_8954_51EEAD00190B__INCLUDED_)