Files
envi-code/SourceCode/Code2026/tg_shs/shs_outdoor/TVerticalSectionEdJig.h
T

53 lines
1.5 KiB
C++
Raw Normal View History

2026-10-04 00:04:20 +08:00
// TVerticalSectionEdJig.h: interface for the TVerticalSectionEdJig class.
2026-09-28 15:28:50 +08:00
//
//////////////////////////////////////////////////////////////////////
#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
2026-10-04 00:04:20 +08:00
// 列加亮
2026-09-28 15:28:50 +08:00
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:
2026-10-04 00:04:20 +08:00
//输入
XString m_sPrompt; //提示信息
2026-09-28 15:28:50 +08:00
XString m_sKeyword;
XPoint m_ptInput;
2026-10-04 00:04:20 +08:00
// 中间结果
2026-09-28 15:28:50 +08:00
AcDbSolid m_entDraw;
2026-10-04 00:04:20 +08:00
// 结果和输入
2026-09-28 15:28:50 +08:00
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_)