54 lines
1.5 KiB
C++
54 lines
1.5 KiB
C++
// TVerticalSectionEdJig.h: interface for the TVerticalSectionEdJig class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_TVERTICALSECTIONEDJIG_H__648D19B8_FEC9_42A1_9A51_90AEDB9B558A__INCLUDED_)
|
|
#define AFX_TVERTICALSECTIONEDJIG_H__648D19B8_FEC9_42A1_9A51_90AEDB9B558A__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
// 列加亮
|
|
class TVerticalSectionEdJig : public AcEdJig {
|
|
public:
|
|
TVerticalSectionEdJig(int iMode);
|
|
virtual ~TVerticalSectionEdJig();
|
|
protected:
|
|
int GetRetCode(int nRetCode, int *kewyIdx=NULL) const;
|
|
void UpdateRegion(XPoint ptTopLeft, double nWidth, double nHeight, double nAng);
|
|
void UpdateRegion2(XPoint ptTopLeft, double nWidth, double nHeight, double nAng);
|
|
|
|
protected:
|
|
//输入
|
|
XString m_sPrompt; //提示信息
|
|
XString m_sKeyword;
|
|
XPoint m_ptInput;
|
|
// 中间结果
|
|
AcDbSolid m_entDraw;
|
|
// 结果和输入
|
|
AcDbObjectId m_idSheet;
|
|
public:
|
|
XPoint m_ptResult;
|
|
int m_iMode;
|
|
int DoIt(int *pKeyIndex=NULL);
|
|
virtual DragStatus sampler();
|
|
virtual Adesk::Boolean update();
|
|
virtual AcDbEntity* entity() const;
|
|
public:
|
|
void SetPrompt(const TCHAR *s) {
|
|
m_sPrompt=s;
|
|
}
|
|
void SetKeyword(const TCHAR *k) {
|
|
m_sKeyword=k;
|
|
}
|
|
void SetPoint1(XPoint pt) {
|
|
m_ptInput=pt;
|
|
}
|
|
void SetSheetId(AcDbObjectId id) {
|
|
m_idSheet=id;
|
|
}
|
|
};
|
|
|
|
#endif // !defined(AFX_TVERTICALSECTIONEDJIG_H__648D19B8_FEC9_42A1_9A51_90AEDB9B558A__INCLUDED_)
|