XGeometry(ulong id,int tid = 0)

原型 XGeometry(ulong id,int tid = 0)
描述 构造函数
参数 [i]ulong id: 几何对象ID
[i]int tid = 0: 拓扑类型
返回值

XGeometry(ulong size)

原型 XGeometry(ulong size)
描述 构造函数
参数 [i]ulong size: 子拓扑规模
返回值

void setFlag(ulong f)

原型 void setFlag(ulong f)
描述 设置临时标记
参数 [i]ulong f: 临时标记值
返回值

ulong getFlag() const

原型 ulong getFlag() const
描述 获取临时标记值
参数
返回值 临时标记值

XSolid * toSolid()

原型 XSolid * toSolid()
描述 转换为实体拓扑对象
参数
返回值 实体拓扑对象指针(可修改)

XFace * toFace()

原型 XFace * toFace()
描述 转换为面拓扑对象
参数
返回值 面拓扑对象指针(可修改)

XEdge * toEdge()

原型 XEdge * toEdge()
描述 转换为边拓扑对象
参数
返回值 边拓扑对象指针(可修改)

XVertex * toVertex()

原型 XVertex * toVertex()
描述 转换为顶点拓扑对象
参数
返回值 顶点拓扑对象指针(可修改)

const XSolid * toSolid() const

原型 const XSolid * toSolid() const
描述 转换为实体拓扑对象
参数
返回值 实体拓扑对象(不可修改)

const XFace * toFace()const

原型 const XFace * toFace()const
描述 转换为面拓扑对象
参数
返回值 面拓扑对象(不可修改)

const XEdge * toEdge()const

原型 const XEdge * toEdge()const
描述 转换为边拓扑对象
参数
返回值 边拓扑对象(不可修改)

const XVertex * toVertex() const

原型 const XVertex * toVertex() const
描述 转换为顶点拓扑对象
参数
返回值 顶点拓扑对象(不可修改)

bool isVisible() const

原型 bool isVisible() const
描述 几何对象是否可见
参数
返回值 可见返回true,否则返回false

void setVisible(bool b)

原型 void setVisible(bool b)
描述 设置对象是否可见
参数 [i]bool b: 对象是否可见
返回值

RGBAColor getColor() const

原型 RGBAColor getColor() const
描述 获取几何对象颜色
参数
返回值 几何对象颜色

void setColor(const RGBAColor c)

原型 void setColor(const RGBAColor c)
描述 设置几何对象颜色
参数 [i]const RGBAColor c: 几何对象颜色
返回值

TypeID getViewMode() const

原型 TypeID getViewMode() const
描述 获取几何对象视图模式
参数
返回值 几何对象视图模式

void setViewMode(TypeID vmode)

原型 void setViewMode(TypeID vmode)
描述 设置几何对象视图模式
参数 [i]TypeID vmode: 几何对象视图模式
返回值

TypeID getFeatureType() const

原型 TypeID getFeatureType() const
描述 获取几何对象拓扑特征类型
参数
返回值 几何对象拓扑特征类型

void setFeatureType(TypeID t)

原型 void setFeatureType(TypeID t)
描述 设置几何对象拓扑特征类型
参数 [i]TypeID t: 几何对象拓扑特征类型
返回值

TypeID getRole() const

原型 TypeID getRole() const
描述 获取几何对象角色
参数
返回值 几何对象角色

void setRole(TypeID t)

原型 void setRole(TypeID t)
描述 设置几何对象角色
参数 [i]TypeID t: 几何对象角色
返回值

virtual ulong getChildCount() const

原型 virtual ulong getChildCount() const
描述 获取子拓扑个数
参数
返回值 子拓扑个数

virtual const XGeometry * getChildEntity(ulong id)const

原型 virtual const XGeometry * getChildEntity(ulong id)const
描述 获取子拓扑对象
参数 [i]ulong id: 子拓扑对象ID
返回值 如存在指定ID的子拓扑对象,返回该对象指针,否则返回空

void bindChildIterator(HashIterator * pIter)const

原型 void bindChildIterator(HashIterator * pIter)const
描述 绑定子拓扑对象访问迭代器
参数 [i]HashIterator * pIter: 子拓扑对象访问迭代器
返回值

virtual int getUpperCount() const = 0

原型 virtual int getUpperCount() const = 0
描述 获取父拓扑对象个数
参数
返回值 父拓扑对象个数

virtual ulong getNodeCount() const

原型 virtual ulong getNodeCount() const
描述 获取几何对象的节点个数
参数
返回值 几何对象的节点个数

virtual void addUpperEntity(const XGeometry * pGeom) = 0

原型 virtual void addUpperEntity(const XGeometry * pGeom) = 0
描述 添加父拓扑对象
参数 [i]const XGeometry * pGeom: 父拓扑对象
返回值

virtual void removeUpperEntity(const XGeometry * pGeom) = 0

原型 virtual void removeUpperEntity(const XGeometry * pGeom) = 0
描述 删除父拓扑对象
参数 [i]const XGeometry * pGeom: 父拓扑对象
返回值

virtual void clear(ClearFlag f = Clear_All) = 0

原型 virtual void clear(ClearFlag f = Clear_All) = 0
描述 清空几何对象数据
参数 [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,否则返回相应错误码

virtual ~XGeometry()

原型 virtual ~XGeometry()
描述 析构函数
参数
返回值

void bindExtData(void * d)

原型 void bindExtData(void * d)
描述 设置扩展数据
参数 [i]void * d: 扩展数据
返回值

void * getExtData() const

原型 void * getExtData() const
描述 获取扩展数据
参数
返回值 扩展数据

void setPart(const XPart * p)

原型 void setPart(const XPart * p)
描述 设置所属的部件
参数 [i]const XPart * p: 部件对象
返回值

const XPart * getPart() const

原型 const XPart * getPart() const
描述 获取所属部件
参数
返回值 所属部件对象

virtual void attachChildEntity(const XGeometry * pEntity)

原型 virtual void attachChildEntity(const XGeometry * pEntity)
描述 绑定拓扑从属关系
参数 [i]const XGeometry * pEntity: 子拓扑对象
返回值

virtual void detachChildEntity(ulong id)

原型 virtual void detachChildEntity(ulong id)
描述 解除拓扑从属关系
参数 [i]ulong id: 子拓扑对象ID
返回值