当前位置:网站首页>How to realize the reality of temporary graphic elements
How to realize the reality of temporary graphic elements
2022-07-26 13:23:00 【WindOfMayGIS】
How to realize the reality of temporary graphic elements
I. requirements description :
The processing results need to be displayed , Show it to yourself or users , Instead of storing .
Second, the idea of realization :
1. Instantiation Element , After the Element Put it in IGraphicsContainer in , Reuse IActiveView Refresh it ;
perhaps
2. Instantiation Element , take Element Put it in IElementCollection in , Reuse IGraphicsContainer and IActiveView Load refresh display .
Note here : If necessary Line If the object is temporarily displayed after it is put in , You need to LINE To Polyline Then put it in , Otherwise it will prompt “ Value is out of range ”.
- ISegmentCollection gc = new PolylineClass();
- gc.AddSegment(line as ISegment);
- IPolyline polyline = gc as IPolyline;
Three code reference :
// Generate Element object , Store in ElementCollection in
publicIElementCollectionGeoColl = newElementCollection();
ITextElement pele1 = newTextElementClass();
pele1.Text = ".";
pele1.ScaleText = true;
IPoint pTempPoint4 = newPointClass();
pTempPoint4.PutCoords(xLoc1, yLoc1);
IElement pElement1 = pele1 asIElement;
pElement1.Geometry =pTempPoint4;
GeoColl.Add(pElement1);
// take ElementCollection adopt IGraphicsContainer and IActiveView Load refresh display
IActiveView pActiveView =axMapControl1.Map asIActiveView;
IGraphicsContainerpGraphicsContainer = axMapControl1.Map asIGraphicsContainer;
pGraphicsContainer.AddElements(LocFactory.GeoColl, 0);
pActiveView.PartialRefresh(esriViewDrawPhase.esriViewGraphics, null, null);
边栏推荐
- Implementation of SAP ABAP daemon
- 12 brand management of commodity system in gulimall background management
- key&key_len&ref&filtered(4)—mysql执行计划(五十)
- 概率论与数理统计
- 目标检测网络R-CNN 系列
- B+ tree index uses (7) matching column prefix, matching value range (19)
- Is the account opened by flush safe?
- File upload and download performance test based on the locust framework
- 8 年产品经验,我总结了这些持续高效研发实践经验 · 研发篇
- Activity. Onstop() delay 10 seconds? Wonderful investigation process
猜你喜欢

基于ASP.NET的某高校学院档案管理系统

学习pinia 介绍-State-Getters-Actions-Plugins

Kubernetes apiserver current limiting strategy

Activity. Onstop() delay 10 seconds? Wonderful investigation process

Win11+VS2019配置YOLOX

Version of NDK matched the requested version 21.0.6113669. versions available locally: 2

Hcip day 11 comparison (BGP configuration and release)

Shutter background graying effect, how transparency, gray mask

12-GuliMall 后台管理中商品系统的品牌管理

Niuke brush sql---2
随机推荐
Niuke brush sql---2
Flutter multi-channel packaging operation
[5gc] what is 5g slice? How does 5g slice work?
JVM: what does the class loading subsystem do? What is it made of? What eight part essay do you need to remember?
Golang端口扫描设计
【花雕动手做】有趣好玩的音乐可视化系列小项目(13)---有机棒立柱灯
The difference between $route and $route
JUC总结
[flower carving hands-on] interesting and fun music visualization series small project (13) -- organic rod column lamp
Some practical operations of vector
Solution 5g technology helps build smart Parks
概率论与数理统计
算法--连续数列(Kotlin)
vector的一些实用操作
key&key_len&ref&filtered(4)—mysql执行计划(五十)
MySQL data directory (3) -- table data structure MyISAM (XXVI)
Chat system based on webrtc and websocket
【开源之美】nanomsg(2) :req/rep 模式
Shutter cachednetworkimage fillet
B+树索引使用(7)匹配列前缀,匹配值范围(十九)