XSolid(ulong id,XMemPool * pHashPool = 0)
| 原型 | XSolid(ulong id,XMemPool * pHashPool = 0) |
| 描述 | 构造函数 |
| 参数 | [i]ulong id: 对象ID [i]XMemPool * pHashPool = 0: 内存池 |
| 返回值 | 无 |
~XSolid()
| 原型 | ~XSolid() |
| 描述 | 析构函数 |
| 参数 | 无 |
| 返回值 | 无 |
real getVolume() const
| 原型 | real getVolume() const |
| 描述 | 获取实体几何体积 |
| 参数 | 无 |
| 返回值 | 实体体积 |
const XGeometry * getUpperEntity(int index) const
| 原型 | const XGeometry * getUpperEntity(int index) const |
| 描述 | 重新实现XGeometry的getUpperEntity方法 |
| 参数 | [i]int index: 父拓扑对象序号 |
| 返回值 | XSolid不存在父拓扑,返回空 |
void addUpperEntity(const XGeometry * pGeom)
| 原型 | void addUpperEntity(const XGeometry * pGeom) |
| 描述 | 重新实现XGeometry的addUpperEntity方法,XSolid不存在父拓扑 |
| 参数 | [i]const XGeometry * pGeom: 父拓扑对象 |
| 返回值 | 无 |
void removeUpperEntity(const XGeometry * pGeom)
| 原型 | void removeUpperEntity(const XGeometry * pGeom) |
| 描述 | 重新实现XGeometry的removeUpperEntity方法,XSolid不存在父拓扑 |
| 参数 | [i]const XGeometry * pGeom: 父拓扑对象 |
| 返回值 | 无 |
int getUpperCount() const
| 原型 | int getUpperCount() const |
| 描述 | 重新实现XGeometry的getUpperCount方法,XSolid不存在父拓扑 |
| 参数 | 无 |
| 返回值 | 返回0 |
void clear(ClearFlag f = Clear_All)
| 原型 | void clear(ClearFlag f = Clear_All) |
| 描述 | 重新实现XGeometry的clear方法 |
| 参数 | [i]ClearFlag f = Clear_All: 清空标记 |
| 返回值 | 无 |
void write(XBinaryIO * io)const
| 原型 | void write(XBinaryIO * io)const |
| 描述 | 将几何体对象写入到二进制文件中 |
| 参数 | [i]XBinaryIO * io: 二进制文件句柄 |
| 返回值 | 无 |
ErrorCode read(GeometryManager * esmgr, XBinaryIO * io)
| 原型 | ErrorCode read(GeometryManager * esmgr, XBinaryIO * io) |
| 描述 | 从二进制文件中读取几何对象数据 |
| 参数 | [i]GeometryManager * esmgr: 几何对象管理器 [i] XBinaryIO * io: 二进制文件句柄 |
| 返回值 | 成功读取返回Error_None,否则返回相应错误码 |
void updateAfterRenumber(TypeID tid)
| 原型 | void updateAfterRenumber(TypeID tid) |
| 描述 | 在对模型对象重编号之后调用,用以更新对重编号对象的引用 |
| 参数 | [i]TypeID tid: 重编号的对象类型 |
| 返回值 | 无 |
const XRenderData * getRenderData() const
| 原型 | const XRenderData * getRenderData() const |
| 描述 | 重新实现XGeometry的getRenderData方法,获取视图数据 |
| 参数 | 无 |
| 返回值 | 视图数据 |
void buildRenderData()
| 原型 | void buildRenderData() |
| 描述 | 构建几何体的视图数据 |
| 参数 | 无 |
| 返回值 | 无 |
void updateRenderData(const float * colorValue, int colorLoc, const float * deformX, const float * deformY, const float * deformZ, const int * elemNodeIndex = NULL)
| 原型 | void updateRenderData(const float * colorValue, int colorLoc, const float * deformX, const float * deformY, const float * deformZ, const int * elemNodeIndex = NULL) |
| 描述 | 更新几何体的视图数据 |
| 参数 | [i]const float * colorValue: 值数组 [i] int colorLoc: 值所在的位置类型(如单元积分点、单元节点或节点) [i] const float * deformX: 变形数组X分量 [i] const float * deformY: 变形数组Y分量 [i] const float * deformZ: 变形数组Z分量 [i] const int * elemNodeIndex = NULL: 单元节点索引数组 |
| 返回值 | 无 |