XAssembly(ulong id)
| 原型 | XAssembly(ulong id) |
| 描述 | 构造函数 |
| 参数 | [i]ulong id: 对象ID |
| 返回值 | 无 |
void detach(XPart * g, PartManager * mgr)
| 原型 | void detach(XPart * g, PartManager * mgr) |
| 描述 | 解除装配体与部件的从属关系 |
| 参数 | [i]XPart * g: 部件对象 [i] PartManager * mgr: 部件管理器 |
| 返回值 | 无 |
void attach(XPart * g, PartManager * mgr)
| 原型 | void attach(XPart * g, PartManager * mgr) |
| 描述 | 绑定装配体与部件的从属关系 |
| 参数 | [i]XPart * g: 部件对象 [i] PartManager * mgr: 部件管理器 |
| 返回值 | 无 |
virtual void write(XBinaryIO * io)const
| 原型 | virtual void write(XBinaryIO * io)const |
| 描述 | 将装配体对象写入到二进制文件中 |
| 参数 | [i]XBinaryIO * io: 二进制文件句柄 |
| 返回值 | 无 |
virtual ErrorCode read(PartManager * pMgr, XBinaryIO * io)
| 原型 | virtual ErrorCode read(PartManager * pMgr, XBinaryIO * io) |
| 描述 | 从二进制文件中读取装配体对象数据 |
| 参数 | [i]PartManager * pMgr: 部件对象管理器 [i] XBinaryIO * io: 二进制文件句柄 |
| 返回值 | 成功读取返回Error_None,否则返回相应错误码 |
void setModel(XModel * mdl)
| 原型 | void setModel(XModel * mdl) |
| 描述 | 设置所属模型 |
| 参数 | [i]XModel * mdl: 模型对象指针 |
| 返回值 | 无 |
const XModel * getModel() const
| 原型 | const XModel * getModel() const |
| 描述 | 获取模型对象 |
| 参数 | 无 |
| 返回值 | 模型对象指针 |
XModel * getModel()
| 原型 | XModel * getModel() |
| 描述 | 获取模型对象 |
| 参数 | 无 |
| 返回值 | 模型对象指针(可修改) |
ulong getChildCount() const
| 原型 | ulong getChildCount() const |
| 描述 | 获取子部件个数 |
| 参数 | 无 |
| 返回值 | 子部件个数 |
void bindChildIterator(PartIterator * pIter)const
| 原型 | void bindChildIterator(PartIterator * pIter)const |
| 描述 | 绑定子部件对象访问迭代器 |
| 参数 | [i]PartIterator * pIter: 子部件对象访问迭代器 |
| 返回值 | 无 |
const XPart * getFirstChild() const
| 原型 | const XPart * getFirstChild() const |
| 描述 | 获取第一个子部件 |
| 参数 | 无 |
| 返回值 | 第一个子部件对象 |
const XPart * getLastChild() const
| 原型 | const XPart * getLastChild() const |
| 描述 | 获取最后一个子部件对象 |
| 参数 | 无 |
| 返回值 | 最后一个子部件对象 |