36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
// Block.h: interface for the CBlock class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_BLOCK_H__52756672_A4E4_4D69_BDCD_3AA09B4FB111__INCLUDED_)
|
|
#define AFX_BLOCK_H__52756672_A4E4_4D69_BDCD_3AA09B4FB111__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
class TELAPI 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;
|
|
};
|
|
|
|
#endif // !defined(AFX_BLOCK_H__52756672_A4E4_4D69_BDCD_3AA09B4FB111__INCLUDED_)
|