若妻家庭教師 引き裂かれた柔肌 magnet_ 〖名存实亡〗-万州区合川建设银行
淘宝减肥药排行榜十强
只推淘宝安全有效的减肥药

当前位置:若妻家庭教師 引き裂かれた柔肌 magnet > 减肥产品

若妻家庭教師 引き裂かれた柔肌 magnet

时间:2020-11-26 18:15  兴安早教中心发布

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using ESRI.ArcGIS.Carto;

using ESRI.ArcGIS.Geometry;

using ESRI.ArcGIS.Display;

using ESRI.ArcGIS.Controls;

namespace GISExercise

{

class OperateGeomap

{

//定义鼠标与控件交互式操作的公共方法

public void OperateGeomaP1(AxMapControl axMapControl1, IMapControlEvents2_OnMouseDownEvent e, string strOperType1)

{

switch (strOperType1)

{

//用鼠标拖曳确定地图显示范围

case "LKXS":

{

axMapControl1.MousePointer = esriControlsMousePointer.esriPointerCrosshair;//改变鼠标样式

axMapControl1.Extent = axMapControl1.TrackRectangle();//将地图控件显示范围设置为当前拖曳的矩形区域

axMapControl1.ActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeography, null, null);//刷新地图

break;

}

//移动地图、地图漫游

case "DTMY":

{

axMapControl1.Pan();

break;

}

//绘制点

case "HZD":

{

IMap pMap;

IActiveView pActiveView;

pMap = axMapControl1.Map;

pActiveView = pMap as IActiveView;

//新建点对象

IPoint pPt;

pPt = new PointClass();

pPt.PutCoords(e.mapX, e.mapY);

//产生一个Market元素

IMarkerElement pMarkerElement;

pMarkerElement = new MarkerElementClass();

//产生修饰Marker元素的Symbol

ISimpleMarkerSymbol pMarkerSymbol;

pMarkerSymbol = new SimpleMarkerSymbolClass();

//设置符号颜色

IRgbColor pColor;

pColor = new RgbColorClass();

pColor.Red = 150;

pColor.Blue = 200;

pColor.Green = 250;

pMarkerSymbol.Color = pColor;//用户动态设定

//设置符号大小

pMarkerSymbol.Size = 10;

//设置符号类型

pMarkerSymbol.Style = esriSimpleMarkerStyle.esriSMSDiamond;//点符号也由用户动态选择

IElement pElement;

pElement = pMarkerElement as IElement;

//得到Element的接口对象,用于设置元素的Geometry

pElement.Geometry = pPt;

pMarkerElement.Symbol = pMarkerSymbol;

IGraphicsContainer pGraphicsContainer;

pGraphicsContainer = pMap as IGraphicsContainer;

//将元素添加到Map中

pGraphicsContainer.AddElement(pMarkerElement as IElement, 0);

pActiveView.PartialRefresh(esriViewDrawPhase.esriViewGraphics, null, null);

break;

}

//绘制线

case "HZX":

{

IMap pMap;

IActiveView pActiveView;

pMap = axMapControl1.Map;

pActiveView = pMap as IActiveView;

IPolyline pPolyline;

pPolyline = axMapControl1.TrackLine() as IPolyline;

//产生一个SimpleLineSymbol符号

ISimpleLineSymbol pSimpleLineSym;

pSimpleLineSym = new SimpleLineSymbolClass();

pSimpleLineSym.Style = esriSimpleLineStyle.esriSLSSolid;//需要用户动态选择

IRgbColor pColor;

pColor = new RgbColorClass();

pColor.Red = 123;

pColor.Blue = 234;

pColor.Green = 200;

pSimpleLineSym.Color = pColor;//需要用户动态选择

pSimpleLineSym.Width = 1;

//产生一个PolylineElement对象

ILineElement pLineEle;

pLineEle = new LineElementClass();

IElement pEle;

pEle = pLineEle as IElement;

pEle.Geometry = pPolyline;

//将元素添加到Map对象之中

IGraphicsContainer pGraphicsContainer;

pGraphicsContainer = pMap as IGraphicsContainer;

pGraphicsContainer.AddElement(pEle, 0);

pActiveView.PartialRefresh(esriViewDrawPhase.esriViewGraphics, null, null);

break;

}

//绘制面

case "HZM":

{

IMap pMap;

IActiveView pActiveView;

pMap = axMapControl1.Map;

pActiveView = pMap as IActiveView;

IPolygon pPolygion;

pPolygion = axMapControl1.TrackPolygon() as IPolygon;

//产生一个SimpleFillSymbol符号

ISimpleFillSymbol pSimpleFillSym;

pSimpleFillSym = new SimpleFillSymbolClass();

pSimpleFillSym.Style = esriSimpleFillStyle.esriSFSDiagonalCross;//需要用户动态选择

IRgbColor pColor;

pColor = new RgbColorClass();

pColor.Red = 123;

pColor.Blue = 234;

pColor.Green = 200;

pSimpleFillSym.Color = pColor;//需要用户动态选择

//产生一个PolygonElement对象

IFillShapeElement pPolygonEle;

pPolygonEle = new PolygonElementClass();

pPolygonEle.Symbol = pSimpleFillSym;

IElement pEle;

pEle = pPolygonEle as IElement;

pEle.Geometry = pPolygion;

//将元素添加到Map对象之中

IGraphicsContainer pGraphicsContainer;

pGraphicsContainer = pMap as IGraphicsContainer;

pGraphicsContainer.AddElement(pEle, 0);

pActiveView.PartialRefresh(esriViewDrawPhase.esriViewGraphics, null, null);

break;

}

//地图标注

case "DTBZ":

{

int x,y,z;

//地图标注

IMap pMap;

IActiveView pActiveView;

pMap = axMapControl1.Map;

pActiveView = pMap as IActiveView;

ITextElement pTextEle;

IElement pEles;

//建立文字符号对象,并设置相应的属性

pTextEle = new TextElementClass();

pTextEle.Text = "西安科技大学";

pEles = pTextEle as IElement;

//设置文字字符的几何形体属性

IPoint pPoint;

pPoint = new PointClass();

pPoint.PutCoords(e.mapX, e.mapY);

pEles.Geometry = pPoint;

//添加到Map对象中,并刷新显示

IGraphicsContainer pGraphicsContainer;

pGraphicsContainer = pMap as IGraphicsContainer;

pGraphicsContainer.AddElement(pEles, 0);

pActiveView.PartialRefresh(esriViewDrawPhase.esriViewGraphics, null, null);

break;

}

case "JLXZJ":

{

//要素选择

//得到一个Envelope对象

IEnvelope pEnv;

pEnv = axMapControl1.TrackRectangle();

//新建选择集环境对象

ISelectionEnvironment pSelectionEnv;

pSelectionEnv = new SelectionEnvironmentClass();

//改变选择集的默认颜色

IRgbColor pColor;

pColor = new RgbColorClass();

pColor.Red = 123;

pColor.Blue = 234;

pColor.Green = 200;

pSelectionEnv.DefaultColor = pColor;

//选择要素,并将其放入选择集

axMapControl1.Map.SelectByShape(pEnv, pSelectionEnv, false);

axMapControl1.ActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeoSelection, null, null);

//需要遍历所选要素

break;

}

/*case "SJQC":

{

axMapControl1.Map.ClearSelection();

axMapControl1.ActiveView.Refresh();

break;

}*/

default:

break;

}

}

/* private IRgbColor GetRGB(int r, int g, int b)

{

IRgbColor pColor;

pColor = new RgbColorClass();

pColor.Red = 200;

pColor.Green = 100;

pColor.Blue = 150;

return pColor;

}*/

}

}

猜你喜欢

最安全有效的减肥药

最安全有效的减肥药

编辑:小徐

现在的减肥药真的是真假难分,在选择减肥药的同时也应该更加小心,减肥药多种多样,那么如何才能选择最安全有效的减肥药,也成了很多小仙女的内心疑问,下面就跟着若妻家庭教師 引き裂かれた柔肌 magnet小编一起看一下,如何选择最安全有效的减肥药。 最安全有效的减肥药选购方法 1、首先需要观察产品的外包装,在包装中可以看到其配方是不是含有激素,含有激素的减肥药对身体的内..

吃减肥药失眠

吃减肥药失眠

编辑:小徐

随着现在流行以瘦为美,很多人会不顾身体的健康选择减肥药,达到快速减肥瘦身的效果,但是很多减肥药都是有副作用的,副作用比较轻的就是失眠现象,那么吃减肥药出现失眠是怎么回事儿?如果出现失眠后,我们应该怎样缓解? 吃减肥药失眠是怎么回事 减肥药中富含安非他命,所以减肥药服用了太多会有失眠现象,服用减肥药期间,身体会逐渐出现抗药性,身..

最新文章