//------------------------------------------------------------------------+ // Copyright (C), 1998-2011, Beijing Tangent Software Co. Ltd. // = FileName : TAssocMsg类 // = Version : ver1.0 // = Author : xlc // = CreateDate : 2011-04-13 // = Description: 关联消息类声明 // = Maintainers: // //------------------------------------------------------------------------+ #ifdef TASD #ifndef _TASSOCMSG_H_ #define _TASSOCMSG_H_ class TARCH_EXP TAssocMsg { public: TAssocMsg(); virtual ~TAssocMsg(); enum MethodType { kMovegrippoint = 0, kTransform = 1, kAppend = 2, kEdit = 3, }; TAssocMsg& operator = (const TAssocMsg& src); bool operator == (const TAssocMsg &src); void SetAssocId(AcDbObjectId id); AcDbObjectId GetAssocId()const; void SetMatrix(AcGeMatrix3d xForm); AcGeMatrix3d GetMatrix()const; void SetMethod(MethodType eMethodType); MethodType GetMethod()const; void SetTarget(AcGePoint3d pt); AcGePoint3d GetTarget()const; void SetOffset(AcGeVector3d vtOffset); AcGeVector3d GetOffset()const; private: AcDbObjectId m_idAssoc; //关联对象句柄 AcGeMatrix3d m_xform; //变换矩阵 AcGeVector3d m_vtOffest; //变换向量 MethodType m_eMethodType; //关联类型 AcGePoint3d m_ptTarget; //消息触发点 }; #endif #endif