public void Init(LocatorAndBorder locator) { this.Children.Clear(); _trackingTarget = new TrackingTargetCanvas(locator); this.Children.Add(_trackingTarget); MenuBarsBaseInfo.Instance.PropertyChanged += _menuBarsInfo_PropertyChanged; }
public VTSAtlas2Drawer(LocatorAndBorder locator) : base(locator) { SetColor(null, System.Windows.Media.Brushes.AliceBlue); _receiver.OnReceivedData += _receiver_OnPositionEvent; TimeOutHide = new TimeSpan(0, 0, 30); }
public TracksCanvas(LocatorAndBorder locator) { _locator = locator; _statusBarInfomation = StatusBarBaseInfomation.Instance; EnumerateType = GeometryType.Triangle; MenuBarsBaseInfo.Instance.PropertyChanged += menuBarsBaseInfo_PropertyChanged; }
public VTSNorcontrolTrackDrawer(LocatorAndBorder locator) : base(locator) { SetColor(null, System.Windows.Media.Brushes.Navy); _receiver.OnReceivedData += onReceivedData; TimeOutHide = new TimeSpan(0, 0, 30); }
protected override async void OnInitialized(EventArgs e) { base.OnInitialized(e); if (WindowUtil.IsDesingMode()) { return; } await Task.Yield(); await _mapNotification.InitCompletion; _locatorBorder = LocatorAndBorder.Instance; _locatorBorder.OnMapRefreshed += OnRefreshed; activatingStatus = ActivatingStatus.Instance; _menuBarsInfo = MenuBarsBaseInfo.Instance; _menuBarsInfo.PropertyChanged += _menuBarsInfo_PropertyChanged; _statusBarInfo = StatusBarBaseInfomation.Instance; _statusBarInfo.PropertyChanged += _statusBarInfo_PropertyChanged; _mouseEventSource.MouseDown.Subscribe(downMouse); _mouseEventSource.MouseDoubleClick.Subscribe(doubleMouse); _mouseEventSource.MouseRightDown.Subscribe(rightMouse); _plottingInfomation = PlottingAreaSettingInfomation.Instance; _plottingInfomation.Locator = _locatorBorder.Locator; _plottingInfomation.PropertyChanged += _listPlottingArea_PropertyChanged; this.Children.Add(_plottingInfomation.Data); InputManager.Current.PreProcessInput += Current_PreProcessInput;//获取键盘输入事件 }
protected override async void OnInitialized(EventArgs e) { base.OnInitialized(e); if (WindowUtil.IsDesingMode()) { return; } await System.Threading.Tasks.Task.Yield(); await _mapNotification.InitCompletion; _locator = LocatorAndBorder.Instance; _radars = new RadarsCanvas(_locator); this.AddChild(_radars); _locator.OnMapRefreshed += _locator_OnMapRefreshed; _mouseEventSource.MouseDown.Subscribe(onMouseDown); activatingStatus = ActivatingStatus.Instance; _menuBarInfo = MenuBarsBaseInfo.Instance; _menuBarInfo.PropertyChanged += _menuBarInfo_PropertyChanged; _winformWindow = (System.Windows.Interop.HwndSource.FromDependencyObject(this) as System.Windows.Interop.HwndSource); _radars.InitHwndSourse(_winformWindow); _locator_OnMapRefreshed(); }
public SDGPSDrawer(LocatorAndBorder locator) : base(locator) { SetColor(null, System.Windows.Media.Brushes.SandyBrown); _receiver.OnReceivedData += onReceivedData; TimeOutHide = new TimeSpan(0, 24, 0); _receiver = new SDGPSDataReceiver(); }
public CCTVCanvas(VideoParser.Video video, VideoParser.Camera camera, LocatorAndBorder locator) { Video = video; _locator = locator; target = new CCTVTarget(Video, camera); target.Update(Length(), ZoomFactor()); this.Children.Add(target); }
public SeecoolVideoTrackDrawer(LocatorAndBorder locator) : base(locator) { SetColor(null, System.Windows.Media.Brushes.OrangeRed); EnumerateType = DynamicBaseCanvas.GeometryType.Circle; _receiver.TargetEvent += _receiver_TargetEvent; TimeOutHide = new TimeSpan(0, 0, 3); }
public SeecoolRadarTrackDrawer(LocatorAndBorder locator) : base(locator) { SetColor(null, System.Windows.Media.Brushes.Purple); EnumerateType = DynamicBaseCanvas.GeometryType.Rectangle; _receiver.TargetEvent += _receiver_TargetEvent; TimeOutHide = new TimeSpan(0, 0, 10); }
public RadarCanvas(LocatorAndBorder locator, RadarSettingInfo radar) { _locator = locator; _radar = radar; _radarControl = new RadarSettingControl(); loadRadarInfo(); _radar.PropertyChanged += _radar_PropertyChanged; }
public AISTrackDrawer(LocatorAndBorder locator) : base(locator) { SetColor(null, System.Windows.Media.Brushes.Black); _aisReceiver.DynamicEvent += _aisReceiver_DynamicEvent; _aisReceiver.StaticEvent += _aisReceiver_StaticEvent; TimeOutHide = new TimeSpan(0, 10, 0); }
public VTSSofrelogDrawer(LocatorAndBorder locator) : base(locator) { SetColor(null, System.Windows.Media.Brushes.AliceBlue); _receiver.OnReceivedData += _receiver_OnReceivedData; _receiver.OnResyncName += _receiver_OnResyncName; _receiver.OnDropData += _receiver_OnDropData; TimeOutHide = new TimeSpan(0, 0, 30); }
public HZGPSTrackDrawer(LocatorAndBorder locator) : base(locator) { base.SetColor(null, System.Windows.Media.Brushes.Black); _receiver = new HZGPSDataReceiver(); startReceiver(); _receiver.OnReceivedData += _receiver_OnReceivedData; TimeOutHide = new TimeSpan(0, 10, 0); }
public RadarMuxerTrackDrawer(LocatorAndBorder locator) : base(locator) { SetColor(System.Windows.Media.Brushes.RoyalBlue, System.Windows.Media.Brushes.DarkGreen); EnumerateType = DynamicBaseCanvas.GeometryType.Circle; _receiver.TargetEvent += _receiver_TargetEvent; TimeOutHide = new TimeSpan(0, 0, 30); _menuBarInfo = MenuBarsBaseInfo.Instance; _menuBarInfo.PropertyChanged += _menuBarInfo_PropertyChanged; }
public TrackCanvas(LocatorAndBorder locator, GeometryType enumerateType, System.Windows.Media.SolidColorBrush stroke, System.Windows.Media.SolidColorBrush fill, bool isFill) { _locator = locator; _stroke = stroke; _fill = fill; EnumerateType = enumerateType; _geometry = new GeometryMovableObj(EnumerateType, _stroke, _fill, isFill); this.Children.Add(_geometry); _trackLineShape = new TrackLineShape(System.Windows.Media.Brushes.Red); this.Children.Add(_trackLineShape); }
public RadarsCanvas(LocatorAndBorder locator) { _winformWindow = (System.Windows.Interop.HwndSource.FromDependencyObject(this) as System.Windows.Interop.HwndSource); _locator = locator; _activatingStatus = ActivatingStatus.Instance; initRadarDataInfomation(); if (VTSCore.Layers.Plotting.PlottingAreaSettingInfomation.Instance.Locator == null) { VTSCore.Layers.Plotting.PlottingAreaSettingInfomation.Instance.Locator = _locator.Locator; } VTSCore.Layers.Plotting.PlottingAreaSettingInfomation.Instance.InputLocalRadarAreaData(); }
public TracksCanvasDrawer(LocatorAndBorder locator) { _locator = locator; _tracksData = new TracksCanvas(_locator); _tracksShow = _tracksData; if (IsVisibility) { addChildren(_tracksShow); } _tracksData.SetColor(_fill, _stroke); _locator.OnMapRefreshed += OnMapRefreshed; _menuBarsInfo = MenuBarsBaseInfo.Instance; _menuBarsInfo.PropertyChanged += menuBarsInfo_PropertyChanged; _timer = new System.Threading.Timer(callbackUpdateTimeOutTracks, null, 1000, 1000); OnMapRefreshed(); _selectedTargetDraw = SelectedTargetDraw.Instance; }
public CCTVNodeShow(LocatorAndBorder locator) { _locator = locator; _adjustment = new TrackAdjustment(); string path = System.IO.Directory.GetParent(System.Windows.Forms.Application.LocalUserAppDataPath).FullName; ConfigPath = System.IO.Path.Combine(path, "CCTVConfig.xml"); _config = ConfigFile <ConfigCCTV> .FromFile(ConfigPath); if (_config != null) { updateCCTVInfo(); } _locator.OnMapRefreshed += onMapRefreshed; _menuBarsInfo = MenuBarsBaseInfo.Instance; _menuBarsInfo.PropertyChanged += _menuBarsInfo_PropertyChanged; }
public TracksDraws(ILocator locator) { LogService.Info("初始化信号源配置"); string path = System.IO.Directory.GetParent(System.Windows.Forms.Application.LocalUserAppDataPath).FullName; _locatorAndLimit = LocatorAndBorder.Instance; ConfigPath = System.IO.Path.Combine(path, "信号源配置.xml"); loadConfig(); cctv = new CCTVNodeShow(_locatorAndLimit); this.Children.Add(cctv); _selectedTargetDraw = SelectedTargetDraw.Instance; _selectedTargetDraw.Init(_locatorAndLimit); this.Children.Add(_selectedTargetDraw); Canvas.SetZIndex(cctv, 0); Canvas.SetZIndex(_selectedTargetDraw, 1000); MenuBarsBaseInfo.Instance.PropertyChanged += _menuBarsInfo_PropertyChanged; LogService.Info("初始化信号源配置完毕"); }
public RadarImage(LocatorAndBorder locator) { _locator = locator; _radarColorTableData = RadarColorTableDataInfo.Instance; _colorTableData = _radarColorTableData.GetColorTableData(0); _radarColorTableData.PropertyChanged += _radarColorTableData_PropertyChanged; this.Children.Add(_image); _image.Visibility = System.Windows.Visibility.Visible; _radarShow = _radarFrame; _icon = new Image() { Source = new BitmapImage(new Uri(@"../../../Resources/雷达基站.png", UriKind.Relative)) }; this.Children.Add(_icon); loadRadarMap(); ColorTableIndex = 0; _locator.OnMapRefreshed += iconRefreshed; iconRefreshed(); }
protected override async void OnInitialized(EventArgs e) { base.OnInitialized(e); if (WindowUtil.IsDesingMode()) { return; } await Task.Yield(); await _mapNotification.InitCompletion; _locatorBorder = LocatorAndBorder.Instance; _track = new TracksDraws(_locatorBorder.Locator); this.Children.Add(_track); _mouseEventSource.MouseDown.Subscribe(downMouse); _mouseEventSource.MouseDoubleClick.Subscribe(doubleMouse); _mouseEventSource.MouseRightDown.Subscribe(rightMouse); this.ClipToBounds = true; }
public CCTVsCanvas(LocatorAndBorder locator, VideoParser.Video[] video, Dictionary <ulong, VideoParser.Camera> videoRealtime) { _locator = locator; cctvs = new CCTVCanvas[video.Length]; _statusBarInfomation = StatusBarBaseInfomation.Instance; lock (videoRealtime) { for (int i = 0; i < cctvs.Length; i++) { VideoParser.Camera camera = null; if (videoRealtime.ContainsKey(video[i].Id)) { camera = videoRealtime[video[i].Id]; } cctvs[i] = new CCTVCanvas(video[i], camera, _locator); this.Children.Add(cctvs[i]); update(cctvs[i]); } } }
protected override async void OnInitialized(EventArgs e) { base.OnInitialized(e); if (WindowUtil.IsDesingMode()) { return; } await Task.Yield(); await _mapNotification.InitCompletion; _locator = LocatorAndBorder.Instance; _locator.OnMapRefreshed += updateLocation; _menuBarsInfo = MenuBarsBaseInfo.Instance; _menuBarsInfo.PropertyChanged += _menuBarsInfo_PropertyChanged; _statusBarInfo = StatusBarBaseInfomation.Instance; _statusBarInfo.PropertyChanged += _statusBarInfo_PropertyChanged; _mouseEventSource.MouseDown.Subscribe(downMouse); _mouseEventSource.MouseDoubleClick.Subscribe(doubleMouse); }
public WXAISDrawer(LocatorAndBorder locator) : base(locator) { _receiver.OnDynamicEvent += OnDynamicEvent; TimeOutHide = new TimeSpan(0, 10, 0); }