Files
envi-code/SourceCode/Code2026/tg_shs/inc/TArch/TAssocMsg.h
T

57 lines
1.3 KiB
C++
Raw Normal View History

2026-10-04 00:04:20 +08:00
//------------------------------------------------------------------------+
2026-09-28 15:28:50 +08:00
// Copyright (C), 1998-2011, Beijing Tangent Software Co. Ltd.
2026-10-04 00:04:20 +08:00
// = FileName : TAssocMsg类
2026-09-28 15:28:50 +08:00
// = Version : ver1.0
// = Author : xlc
// = CreateDate : 2011-04-13
2026-10-04 00:04:20 +08:00
// = Description: 关联消息类声明
2026-09-28 15:28:50 +08:00
// = 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:
2026-10-04 00:04:20 +08:00
AcDbObjectId m_idAssoc; //关联对象句柄
AcGeMatrix3d m_xform; //变换矩阵
AcGeVector3d m_vtOffest; //变换向量
MethodType m_eMethodType; //关联类型
AcGePoint3d m_ptTarget; //消息触发点
2026-09-28 15:28:50 +08:00
};
#endif
#endif