65 lines
1.3 KiB
C++
65 lines
1.3 KiB
C++
|
|
// = FileName: _THUNDERPOLYLINEJIG_H__
|
|
// = Version: 1.0
|
|
// = Author:
|
|
// = Date: 2008/07/03
|
|
// = Description: 标注的JIG
|
|
// = Maintainers:
|
|
// 版本号 时间 修改人 修改内容
|
|
#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:
|
|
|
|
void DrawText(); //画文字
|
|
|
|
void DeleteOldDim();//删除以前的标注
|
|
|
|
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;
|
|
double m_dHeight; //保护高度
|
|
};
|
|
|
|
#endif // !defined(AFX_THUNDERPOLYLINEJIG_H__75BBF6F5_6662_4740_8954_51EEAD00190B__INCLUDED_)
|