39 lines
1.0 KiB
C++
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;
|
|
|
|
};
|
|
|