『公告』 预祝您龙年大吉,万事如意, 过节期间, 大家如需数据服务,请拨打400 或直接添加客服微信,再祝大家龙年,心想事成。
关注我们 新浪 腾讯

ArcGIS Engine 10 开发手册(5-10)Geometry集合接口(二)

ArcGIS Engine 10 开发手册(5-10)Geometry集合接口(二)
继续上文介绍Geometry集合接口,本文介绍 ISegmentCollection、IPointCollection接口。

    继续上文介绍Geometry集合接口,本文介绍 ISegmentCollection、IPointCollection接口。

    ISegmentCollection接口

    ISegmentCollection 接口被 Path,Ring,Polyline 和 Polygon 四个类所实现,它们被称作是 Segment 集合对 象, 使用这 个接 口可以 处理 组成 Segment 集合 对象 中的每 一个 子 Segment 对象。使用 ISegmentCollection 接口可 以为一个 Segment 集合对 象添加,插 入,删除 Segment 子对 象。 ISegmentCollection 接口 SetCircle 和 SetRectangle 方法提供了一种简单不需要添加 Segment 的情况下 构建一个完成的 Path,Ring,Polyline 和 Polygon 的方法。

    IPointCollection接口

    IPointCollection 可以被多个几何对象类所实现,这些对象都是由多个点构成如:Mullipoint,Path, Ring,Polyline,Polygon,TriangleFan,TrangleStrip,Trangle,Multipatch 等,它们都可以称作 PointCollection 对象,通过 IPointCollection 接口定义的方法可以获取,添加,插入,查询,移除几何 对象中的某个顶点。同以上两个接口一样它也定义了操作一个点集合对象的方法,例如通过 AddPoint 方法 可以向 PointCollection 对象中的特定索引位添加一个点对象,如果不指定位置,则添加到最后。通过 IPointCollection 的 Point 属性通过顶点索引可以得到某一顶点。

    在 Geometry 模型中的几何对象分为两种类型,一类是用来直接构建要素类的称为高级几何对象,一 类用来构建高级几何对象相对低一级的几何对象成为构建几何对象如下表所示:

 

几何对象名称

所属类别

构成子几何对象

用于创建和编辑的接口

Polyline

高级

Path

IGeometryCollection, IPointCollection

Polygon

高级

Ring

IGeometryCollection, IPointCollection

MultiPoint

高级

Point

IGeometryCollection, IPointCollection

MultiPatch

高级

TrangleFan , Ring TrangleStrip ,Trangle,

IGeometryCollection, IPointCollection

Ring

低级

Segment

ISegmentCollection, IPointCollection

Path

低级

Segment

ISegmentCollection, IPointCollection

Segment

低级

Point

IPoint,ILine, ICurve

TriangleFan

低级

Point

IGeometryCollection, IPointCollection

TriangleStrip

低级

Point

IGeometryCollection, IPointCollection

Triangle

低级

Point

IGeometryCollection, IPointCollection

Point

高级/低级

IPoint

      京ICP备08100627号-22 京公网安备 11010802030428号