Files
envi-code/SourceCode/Code2026/tg_shs/shs_outdoor/TVerticalSectionEdJig.h
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

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_)