Beispiel #1
0
 public SimulationOperator(IApplicationContext appContext, IGeoVectorData simulationData)
 {
     this.m_AppContext = appContext;
     this.m_SelectionHelper = ServiceHelper.Lookup<IGeoSelectionHelper>(this.m_AppContext);
     this.m_GisAnalyEvent = ServiceHelper.Lookup<IAnalyDispEvent>(this.m_AppContext) as GisAnalyEvent;
     this.m_SimulationData = simulationData;
 }
Beispiel #2
0
 public MoveMapOperator(IApplicationContext appContext, GeoMapMgr geoMapMgr, GeoTileDrawMgr tileMgr)
 {
     this.m_Helper = ServiceHelper.Lookup<IGeoSelectionHelper>(appContext);
     this.m_Cursor = new Cursor(Huawei.UNet.Common.GlobalResource.GlobalResource.move.GetHicon());
     this.m_GeoMapMgr = geoMapMgr;
     this.m_TileMgr = tileMgr;
 }
Beispiel #3
0
 public GeometryTextOperator(List<IGeoVectorData> datas, GeoMapMgr mapMgr, IApplicationContext appContext)
 {
     this.m_VectorDatas = datas;
     this.m_Helper = ServiceHelper.Lookup<IGeoSelectionHelper>(appContext);
     this.m_GeoEntityRegionMgr = new GeoEntityRegionMgr(this.m_VectorDatas, mapMgr, this.m_Helper);
     this.InitContextMenuStrip();
 }
Beispiel #4
0
        public AddRelayOperator(IApplicationContext appContext, NetEntityMgr netEntityData)
        {
            m_NetEntityData = netEntityData;
            m_Cursor = new Cursor(Huawei.UNet.Common.GlobalResource.GlobalResource._25.GetHicon());
            m_NetEvent = ServiceHelper.Lookup<INetEntity>(appContext) as GisNetEntityEvent;
            m_Helper = ServiceHelper.Lookup<IGeoSelectionHelper>(appContext);
 
        }
Beispiel #5
0
 public GeoEntityRegionMgr(List<IGeoVectorData> datas, GeoMapMgr mapMgr, IGeoSelectionHelper helper)
 {
     this.m_PathElementDict = new Dictionary<GraphicsPath, IGeoEntity>();
     this.m_WidenPen = new Pen(Color.Transparent, 6f);
     this.m_VectorDatas = datas;
     this.m_GeoMapMgr = mapMgr;
     this.BindDatasEvent(this.m_VectorDatas);
     this.m_Helper = helper;
 }
Beispiel #6
0
 public PolygonPropertyForm(GeoDisplayPolygonRegion dispPolygonRegion, IGeoSelectionHelper helper, GeoUserVectorData userShapes, GeoCoordinateOfMouse GeoCoordinateOfMouse, CoordinateDisplayStyle style)
 {
     this.m_CurrentDisplayRegion = dispPolygonRegion;
     this.m_Helper = helper;
     this.m_BaseData = userShapes;
     this.m_RegionList = this.m_BaseData.GetAllPolygons();
     this.SetPropertyDisplayStyle(GeoCoordinateOfMouse, style);
     this.InitializeComponent();
     this.Initial();
 }
 public MeasureDistanceOperator(IApplicationContext appContext)
 {
     this.m_Helper = ServiceHelper.Lookup<IGeoSelectionHelper>(appContext);
     Bitmap image = new Bitmap(0x20, 0x20);
     Graphics graphics = Graphics.FromImage(image);
     graphics.DrawImage(Huawei.UNet.Common.GlobalResource.GlobalResource.distance, new System.Drawing.Point(0x10, 2));
     graphics.Dispose();
     this.m_Cursor = new Cursor(image.GetHicon());
     this.InitDrawingStyles();
 }
Beispiel #8
0
 public ZoomInRegionOperator(IApplicationContext appContext, GeoEventManager eventMgr, GeoMapMgr geoMapMgr)
 {
     this.m_Helper = ServiceHelper.Lookup<IGeoSelectionHelper>(appContext);
     this.m_Cursor = new Cursor(Huawei.UNet.Common.GlobalResource.GlobalResource.ZoomIn.GetHicon());
     this.m_EventMgr = eventMgr;
     this.m_GeoMapMgr = geoMapMgr;
     this.InitDrawingStyle();
     this.m_StartPlanePoint = new GeoXYPoint();
     this.m_SelectionPolygon = new GeoPolygon();
     this.m_SelectionRegion = new GeoPolygonRegion();
     this.m_SelectionRegion.AddGeoPolygon(this.m_SelectionPolygon);
 }
Beispiel #9
0
        public AddGeoLineOperator(IApplicationContext appContext, GeoUserVectorData vectorData)
        {

            this.m_Helper = ServiceHelper.Lookup<IGeoSelectionHelper>(appContext);
            Bitmap image = new Bitmap(0x20, 0x20);
            Graphics graphics = Graphics.FromImage(image);
            graphics.DrawImage(Huawei.UNet.Common.GlobalResource.GlobalResource.line, new System.Drawing.Point(0x10, 0));
            graphics.Dispose();
            this.m_Cursor = new Cursor(image.GetHicon());
            this.m_BaseData = vectorData;
            this.InitDrawingStyles();
        }
Beispiel #10
0
 public GeoEntityRegionMgr(IGeoVectorData data, GeoMapMgr mapMgr, IGeoSelectionHelper helper) : this(MakeDataList(data), mapMgr, helper)
 {
 }
Beispiel #11
0
 public CaptureImageOperator(IApplicationContext appContext, GeoEventManager eventMgr)
 {
     this.m_Helper = ServiceHelper.Lookup<IGeoSelectionHelper>(appContext);
     this.m_EventMgr = eventMgr;
     this.InitDrawingStyles();
 }