




已阅读5页,还剩12页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
AO/AE编程基础(1),1.2 理解对象模型图(OMD),6-2,Lesson overview,ArcObject 的对象模型图 阅读一个对象的模型图 类的类型 类的相互关系 接口、属性、方法的图标 根据OMD图表编写程序,6-3,OMDs help you write code Show interfaces, methods, and properties for each class Show relationships between classes 在几个图表中拥有超过 1,500 个类 超过 1,600 个接口,ArcObject object model diagrams,6-4,在哪里可以找到ArcGIS OMD图表,Start Programs ArcGIS ArcObjects Developer Help 简单的、详细的类图 PDF files 电子书籍光盘中 软件安装的目录中,6-5,Relationship symbols,继承 组成 用来创建 对应关系 1:N 联合,*,_,蛋,鸟,翅膀,羽毛,2,Abstract,Class,Class,Class,小鸡,CoClass,巢,CoClass,*,6-6,类和他们相应的对象,ArcMap objects,MxDocument,Map,Layer,*,*,FeatureLayer,Application,6-7,Not creatable or instantiable Can never have instances of an abstract class Define general interfaces for subclasses Subclasses inherit interfaces OMD symbol: 2D shaded rectangle,抽象类(没有阴影),6-8,实例化类 (Class),Noncreatable class Cannot create with the New keyword Obtain instances from other objects OMD Symbol: 3D Rectangle with no shade,Dim pNewRow As IRow Set pNewRow = pTable.CreateRow,生 成,6-9,Creatable: Use the New keyword Dim pMap As IMap Set pMap = New Map Instantiable: Obtain from other objects Dim pMap As IMap Set pMap = pMxDocument.FocusMap OMD symbol: Shaded 3D rectangle,可创建的类 (CoClass),6-10,Where to begin? Getting into the OMD,特殊的全局变量 Application: IApplication interface of the Application object ThisDocument: IDocument interface of the MxDocument object 阅读 ArcMap 或 ArcCatalog OMD图表的入口,Application,ThisDocument,6-11,Property and method symbols,Property 哑铃形状的图标 Method,6-12,Property Put: Most ArcObjects properties Property holds a value or a copy of an object Do not use Set keyword Property Put by Reference: Some ArcObjects properties Property holds a reference to an object Must use the Set keyword 如果引用对象发生了变化,对象的属性将同步受到影像,Setting properties,pLayer.Name = “Port Moresby“ No Set keyword,Set pLayer.FeatureClass = pMoresbyData Must use Set!,6-13,Return a value Name: String Return an object reference Document: IDocument StatusBar: IStatusBar,Getting properties,返回一个值 Dim strName As String Dim pDoc As IDocument Dim pBar As IStatusBar strName = Application.Name MsgBox strName 返回一个引用 Set pDoc = Application.Document Set pBar = Application.StatusBar pBar.Message(0) pDoc.Title,6-14,棒棒糖类型的图标 ( ),Finding interfaces,这些接口也是有效的。但是详细的 属性和方法必须在其它地方浏览。 (e.g., Object Browser).,该接口被本类使用. 所有的属性和放都列表在类图中.,继承接口是有效的,6-15,FeatureLayer on Map Layer OMD,概念上,这是一个对象模型 事实上, 被分别在几张图表里存放 虫洞表现了图表与图表间的连接关系,Wormholes,Element on ArcMap OMD,虫洞,6-16,Example: MxDocument Map layer,Get the FocusMap (active data frame) from MxDocument MxDocument may have several Maps ( * ) Get a layer from the the Map Many types of layers ( ),Dim pMxDoc As IMxDocument Set pMxDoc = ThisDocument Dim pMap As IMap Set pMap = pMxDoc.FocusMap Dim pLayer As ILayer Set pLayer = pMap.Layer(1) Is pLayer a FeatureLayer? If TypeOf pLayer Is IFeatureLayer Then MsgBox “Yes!, its a feature layer“ End If,MxDocument,Map,FeatureLayer,Layer,*,*,Others,A,6-17,Exercise 2 overview,Interpret the ArcOb
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年江苏省泰州市兴化市中考一模道德与法治试题(含答案)
- 企业管理十大黄金定律
- 论网络中的行为与规范
- 音乐一年级下册唱歌 其多列教案配套
- 全国规范化家长学校实践与发展
- 问题解决策略归纳教学设计 2024-2025学年鲁教版(五四制)(2024)六年级数学上册
- 商场商品管理培训
- x公司KayeSOP标准作业程序培训教材
- 小学英语外研版 (一年级起点)三年级上册Unit 2 Im eating hamburgers and chips.获奖教学设计
- 小学数学西师大版五年级下册第六单元 折线统计图折线统计图教案及反思
- 四年级数学上册 第4章《运算律》单元测评必刷卷 带解析(北师大版)
- 幼儿园童话故事《海的女儿》
- 工业机器人论文3000字(合集4篇)
- 基于深度学习的小学数学跨学科主题探究
- DB65-T 4828-2024 和田玉(子料)鉴定
- 2022-2023学年北京市海淀区中关村中学八年级(下)期中数学试卷
- 疫情统计学智慧树知到答案2024年浙江大学
- DB32-T 4765-2024 化工行业智能化改造数字化转型网络化联接实施指南
- 龟兔赛跑英语故事带翻译完整版
- 中学驻校教官管理方案
- Siemens Simcenter:Simcenter声振耦合分析技术教程.Tex.header
评论
0/150
提交评论