欢迎来到天天文库
浏览记录
ID:38578804
大小:39.50 KB
页数:6页
时间:2019-06-15
《AE+c#画、线、面》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、elseif(m_BasicOperation=="Point"){////方法1:SimpleMarkerSymbol具有简单特征的点////产生一个简单符号//ISimpleMarkerSymbolpMarkerSymbol;//pMarkerSymbol=newSimpleMarkerSymbolClass();////Symbol的样式:为圆形//pMarkerSymbol.Style=esriSimpleMarkerStyle.esriSMSCircle;////Symbol的颜色//IRgbColorrgbColor=newRg
2、bColorClass();//rgbColor.Red=255;//pMarkerSymbol.Color=rgbColor;////Symbol的大小//pMarkerSymbol.Size=4;//objectoMakerSymbol=pMarkerSymbol;//axMapControl1.DrawShape(pPoint,refoMakerSymbol);////方法2//IFeatureLayerpFeatureLayer;//pFeatureLayer=(IFeatureLayer)axMapControl1.Map.get
3、_Layer(0);//IFeatureClasspFeatrueClass;//pFeatrueClass=pFeatureLayer.FeatureClass;//IFeaturepFeature;//pFeature=pFeatrueClass.CreateFeature();//pFeature.Shape=(IGeometry)pPoint;//pFeature.Store();//axMapControl1.Refresh();//方法3MarkerSymbol,抽象类的缺省接口IRgbColorrgbColor=newRgbC
4、olorClass();rgbColor.Red=255;IMarkerSymbolpMarkerSymbol=newSimpleMarkerSymbolClass();pMarkerSymbol.Color=rgbColor;pMarkerSymbol.Size=4;IMarkerElementpMarkerElement=newMarkerElementClass();pMarkerElement.Symbol=pMarkerSymbol;IElementpElement=(IElement)pMarkerElement;pElemen
5、t.Geometry=pPoint;IGraphicsContainerpGraphicsContainer=(IGraphicsContainer)axMapControl1.Map;pGraphicsContainer.AddElement(pElement,0);IActiveViewpActive=(IActiveView)pGraphicsContainer;pActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeography,null,null);}//画线elseif(m
6、_BasicOperation=="Line"){IRgbColorrgbColor=newRgbColorClass();rgbColor.Red=255;////方法1//ISimpleLineSymbolpSimpleLineSymbol=newSimpleLineSymbolClass();//pSimpleLineSymbol.Color=rgbColor;//pSimpleLineSymbol.Style=esriSimpleLineStyle.esriSLSSolid;//pSimpleLineSymbol.Width=3;/
7、/IGeometrypGeo;//pGeo=axMapControl1.TrackLine();//objectoLineSymbol=pSimpleLineSymbol;//axMapControl1.DrawShape(pGeo,refoLineSymbol);//方法2ILineSymbolpLineSymbol=newSimpleLineSymbolClass();pLineSymbol.Color=rgbColor;pLineSymbol.Width=3;ILineElementpLineElement=newLineElemen
8、tClass();pLineElement.Symbol=pLineSymbol;IElementpElement=pLineElementasIElement;pElement
此文档下载收益归作者所有