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

25 lines
644 B
C++

#pragma once
class CBlock
{
public:
CBlock(const TCHAR* szBlkName, XPoint pt, double nScale, double Rotation, const TCHAR* szLayer);
virtual ~CBlock();
AcDbObjectId GetBlkId(){return m_eId;};
void Insert(XPoint ptIns);
void Insert(BOOL bClose = FALSE);
void TransformBy(const AcGeMatrix3d& xform);
double m_nWidth, m_nHeight;
AcGePoint3d m_ptMax, m_ptMin;
void SetScaleFactors(AcGeScale3d scale);
void GetLinkPt(XPointList &lstPt);
XPoint GetInsPt()
{ return m_pBlkRef->position();};
protected:
void InitAttr();
AcDbBlockReference *m_pBlkRef;
AcDbBlockTableRecordIterator *m_pIterator;
AcDbObjectId m_eId, m_BlockId;
};