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

39 lines
1.0 KiB
C++

#pragma once
#include "AecDbText.h"
#include "EdJigEx.h"
class XText
{
public:
XText();
XText(Entity ent, BOOL bNew = FALSE);
XText(const TCHAR* szText, XPoint ptPosition, double nHeight, double nScale = 1, CString csTextStyle = _T("_TCH_DIM"), CString csLayer =_T("SIG_TEXT"));
virtual ~XText();
AcDbText* m_pText;
AecXDbText *m_pTgText;
void Draw(AcDb::TextVertMode vVerMode = AcDb::kTextBase,
AcDb::TextHorzMode nHorzMode = AcDb::kTextLeft);
void TgDraw(AcGiDraw::TextAlignment Align = AcGiDraw::kMiddleLeft);
double GetEntTextLength();
void SetWHScale(double nScale){m_nScale = nScale;};
void SetRotate(double nRotate);
void SetInsertPoint(XPoint ptIns);
void SetText(const TCHAR* szText);
void SetHeight(double nHeight);
double m_nTextLength;
AcDb::TextVertMode m_vertMode;
AcDb::TextHorzMode m_horzMode;
AcGiDraw::TextAlignment m_Align;
CString m_csLayer, m_csText;
XPoint m_ptInsert, m_ptAlign;
double m_nScale;
double m_nHeight;
double m_nRotate;
AcDbObjectId m_idStyle;
};