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

57 lines
1.3 KiB
C++

//------------------------------------------------------------------------+
// 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