42 lines
964 B
C++
42 lines
964 B
C++
#ifndef __FIREEXTINGUISHER_JIG_H__
|
|
#define __FIREEXTINGUISHER_JIG_H__
|
|
|
|
#include "DbFireExtinguisher.h"
|
|
class CLayFireExtinguisherDlg;
|
|
class FireExtinguisherJig: public AcEdJig
|
|
{
|
|
public:
|
|
FireExtinguisherJig(CLayFireExtinguisherDlg *pDlg, CDbFireExtinguisher *pEnt, int nType = 0);
|
|
// 缩放比例
|
|
void SetScale(double dScale);
|
|
// 旋转角度
|
|
void SetRotate(double dAngle);
|
|
// 关键字
|
|
void SetKeyWord(const CString &sKeyWord);
|
|
// 提示
|
|
void SetTipPrompt(const CString &sTip);
|
|
// 关键字索引
|
|
int GetKeyWordIndex();
|
|
|
|
int doIt();
|
|
virtual DragStatus sampler();
|
|
virtual Adesk::Boolean update();
|
|
virtual AcDbEntity* entity() const;
|
|
AcGePoint3d m_ptOnLine;
|
|
|
|
private:
|
|
// 返回值状态
|
|
int GetRetCode(int nRetCode);
|
|
|
|
private:
|
|
CLayFireExtinguisherDlg *m_pDlg;
|
|
CDbFireExtinguisher *m_pEnt;
|
|
AcGePoint3d m_ptIns; // 插入点
|
|
CString m_sKeyWord; // 关键字
|
|
CString m_sTip; // 提示
|
|
int m_nKeyWordIndex; // 关键字索引号
|
|
int m_nType; // 布置方式
|
|
};
|
|
|
|
|
|
#endif |