public ArcMapBusiness(MapFrame.Core.Interface.IMapLogic _mapLogic, ESRI.ArcGIS.Controls.AxMapControl _axMapControl1) { mapLogic = _mapLogic; axMapControl1 = _axMapControl1; elementMgr = new ArcMapElementMgr(); trackMgr = new TrackLineManager(); mapLogic.AddLayer(objLayer); mapLogic.AddLayer(trackLineLayer); EventPublisher.TSDataEvent += EventPublisher_TSDataEvent; }
private double visibleZoom = 5; // 波束达到多少层级是显示 public GMapControlBusiness(IMapLogic _mapLogic, TrackLineManager _trackMgr, ArcGlobeBusiness _globeBusiness) { mapLogic = _mapLogic; globeBusiness = _globeBusiness; trackMgr = _trackMgr; var map = mapLogic.GetIMFMap(); if (map != null) { map.MapZoomChangedEvent += new System.EventHandler <MapZoomChangedEventArgs>(map_MapZoomChangedEvent); } planeMgr = new PlaneManager(); EventPublisher.MapDealBeamDataEvent += new System.EventHandler <BeamData>(EventPublisher_MapDealBeamDataEvent); }
private string coverLayerName = "覆盖图层"; // 覆盖图层 public ArcGlobeBusiness(MapFrame.Core.Interface.IMapLogic mapLogic, TrackLineManager _trackMgr) { beamMgr = new BeamManager(); modelMgr = new ModelManager(); tsModelMgr = new ModelManager(); trackMgr = _trackMgr; trackMgr.RemoevTrackLine += RemoveTrackLineEx; trackMgr.RemoveAllTrackLine += RemoveAllTrackLineEx; this.mapLogic = mapLogic; soundPlayer = new System.Media.SoundPlayer(); string wavFile = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + @"\Image\warn.wav"; soundPlayer.SoundLocation = wavFile; EventPublisher.BeamDataComeEvent += new EventHandler <Model.BeamData>(EventPublisher_BeamDataComeEvent); // 卫星波束数据 ReadConfig(); // 读取配置文件,初始化 }