惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
罗磊的独立博客
T
The Blog of Author Tim Ferriss
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Last Week in AI
Last Week in AI
美团技术团队
Google Online Security Blog
Google Online Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
D
Docker
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
月光博客
月光博客
L
LINUX DO - 最新话题
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
W
WeLiveSecurity
H
Heimdal Security Blog
Vercel News
Vercel News
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
TaoSecurity Blog
TaoSecurity Blog
T
Troy Hunt's Blog
A
About on SuperTechFans
C
Check Point Blog
S
Security Affairs
Hacker News - Newest:
Hacker News - Newest: "LLM"
AI
AI
WordPress大学
WordPress大学
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Help Net Security
Help Net Security
博客园_首页
The Last Watchdog
The Last Watchdog
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Engineering at Meta
Engineering at Meta
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
I
Intezer
K
Kaspersky official blog
M
MIT News - Artificial intelligence
J
Java Code Geeks
G
GRAHAM CLULEY
P
Palo Alto Networks Blog

博客园 - 紫微星

Python ImportError: No module named arcgisscripting ENVI遥感影像处理实用手册PDF下载 卡巴斯基许可Key需求登记表 ArcGIS Desktop 9.3 中文运行环境|中文补丁 胡适:赠与今年的大学毕业生 ArcMap打不开且出现提示(Hostname:Not_Set)的解决方法 QQ超级群问题反馈 “GIS空间分析-使用ArcGIS”课程资料完整打包下载,感谢杨克诚老师! ArcGIS 9.3 下载(包含ArcGIS Desktop、ArcGIS Engine、ArcGIS Server、ArcSDE、workstation) ArcGIS中查看metadata显示"warning+乱码"的解决方法 [请您去投票]ESRI中国社区2008年度优秀会员评选 [新年快乐!] Modeling Our World三版合集 下载[2009-4-27更新] ADO.NET入门学习备忘 GIS界首个超级QQ群——“GIS人@E家”,欢迎GIS朋友们加入! 深入研究VS2008中的JavaScript编辑调试器 引用与using的什么区别 控件和组件的差别[转] 平时遇到的GISblog收集 平时遇到的C#和VS问题及解决方法记录 - 紫微星 - 博客园
AE初学的一点理解及有关QI(接口查询)
紫微星 · 2008-08-13 · via 博客园 - 紫微星

开始学习ArcGIS Engine,卡在了QI上了。

再请教了几位朋友和查阅了一些资料后,现有所感悟,特记录下来。

以代码实例和注释为主。 

IMap pMap;  //定义了一个IMap的接口变量。有了这个接口变量还不行,因为接口是定义在对象上的,那么接下来的步骤应该是产生一个对象,而对象又是从那里来的呢---类。 
            pMap = new MapClass();  //在这句中不只是实例化出一个Map对象,同时将上句的pMap接口变量做为了该对象的缺省接口。
            pMap.Name = "VGIS☆紫微星的练习";  //现在我们就可以通过这个接口来对地图名进行修改。
             
            
//一些其他的代码

            pMap.ClearLayers();  
//或者调用ClearLayer方法来删除掉该地图中的所有图层了。
            pMap.Clear();  //出错。为什么?因为不同的接口中的方法或属性只能通过其接口来访问,而Clear方法属于Map类的另外一个接口IActiveView所有。此时需要QI,如下。

            IActiveView pView;    
//定义一个IActiveView的接口变量。
            pView = pMap as IActiveView ;  //通过接口查询QI转到IActiveView上。
            pView .Clear();  //可以调用Clear方法了。

 不知道我的理解是否正确。请指正。

vgis