Commit c60535ab by 马宁-艾果

算法添加exit、holdon功能

parent 712af7c5
......@@ -3,6 +3,6 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:VIZ.FGOUT.Common">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="VIZ.FGOUT.Common;component/Widgets/FootballFieldPanel/FootballFieldPanel.xaml"></ResourceDictionary>
<ResourceDictionary Source="VIZ.FGOUT.Common;component/Widgets/FootballFieldPanel/FootballFieldPanel.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
......@@ -4,7 +4,7 @@
library
C#
.cs
D:\Projects\VIZ.FGOUT\VIZ.FGOUT.Common\obj\x64\Debug\
C:\Projects\FGOUT\VIZ.FGOUT\VIZ.FGOUT.Common\obj\x64\Debug\
VIZ.FGOUT.Common
none
false
......@@ -13,7 +13,7 @@ false
21870986562
4-1204812239
17974055870
17-1683084370
Themes\Generic.xaml;Widgets\FootballFieldPanel\FootballFieldPanel.xaml;
True
......
D:\Projects\VIZ.FGOUT\VIZ.FGOUT.Common\obj\x64\Debug\GeneratedInternalTypeHelper.g.i.cs
C:\Projects\FGOUT\VIZ.FGOUT\VIZ.FGOUT.Common\obj\x64\Debug\GeneratedInternalTypeHelper.g.i.cs
FD:\Projects\VIZ.FGOUT\VIZ.FGOUT.Common\Themes\Generic.xaml;;
FD:\Projects\VIZ.FGOUT\VIZ.FGOUT.Common\Widgets\FootballFieldPanel\FootballFieldPanel.xaml;;
FC:\Projects\FGOUT\VIZ.FGOUT\VIZ.FGOUT.Common\Themes\Generic.xaml;;
FC:\Projects\FGOUT\VIZ.FGOUT\VIZ.FGOUT.Common\Widgets\FootballFieldPanel\FootballFieldPanel.xaml;;
......@@ -51,7 +51,6 @@
/// </summary>
public const string stop = "stop";
/// <summary>
/// 抠图命令
/// </summary>
......@@ -77,6 +76,14 @@
/// </summary>
public const string track = "track";
/// <summary>
/// 退出
/// </summary>
public const string EXIT = "exit";
/// <summary>
/// 稍等,等一下
/// </summary>
public const string HOLD_ON = "hold_on";
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;
namespace VIZ.FGOUT.Connection
{
......@@ -61,7 +57,5 @@ namespace VIZ.FGOUT.Connection
/// 时间码
/// </summary>
public long timecode { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VIZ.FGOUT.Domain
namespace VIZ.FGOUT.Domain
{
/// <summary>
/// NDI视图键
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VIZ.FGOUT.Domain
namespace VIZ.FGOUT.Domain
{
/// <summary>
/// 服务键
......
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
namespace VIZ.FGOUT.Domain
{
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VIZ.FGOUT.Domain
namespace VIZ.FGOUT.Domain
{
public class CleanPlaceModel
{
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VIZ.FGOUT.Domain
namespace VIZ.FGOUT.Domain
{
public class EndPlaceModel
{
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VIZ.FGOUT.Domain
namespace VIZ.FGOUT.Domain
{
public class InvalidPlaceModel
{
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VIZ.FGOUT.Domain
namespace VIZ.FGOUT.Domain
{
public class SavePlaceModel
{
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VIZ.FGOUT.Domain
namespace VIZ.FGOUT.Domain
{
public class StartPlaceModel
{
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VIZ.FGOUT.Domain.Message.Setting
namespace VIZ.FGOUT.Domain.Message.Setting
{
public class UESettingModel
{
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VIZ.Framework.Core;
using VIZ.Framework.Core;
namespace VIZ.FGOUT.Domain
{
......
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- 功能按钮 -->
<!-- 功能按钮 -->
<Style x:Key="Button_Function" TargetType="Button">
<Setter Property="FocusVisualStyle" Value="{x:Null}"></Setter>
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="border" Background="Transparent">
<ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"></ContentPresenter>
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="border" Property="Background" Value="#22ffffff"></Setter>
<Setter TargetName="border" Property="Background" Value="#22ffffff" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.35"></Setter>
<Setter Property="Opacity" Value="0.35" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
......
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style x:Key="CheckBox_Setting" TargetType="CheckBox">
<Setter Property="FocusVisualStyle" Value="{x:Null}"></Setter>
<Setter Property="Height" Value="20"></Setter>
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
<Setter Property="Height" Value="20" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="CheckBox">
<Grid SnapsToDevicePixels="True">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="20" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Border x:Name="border" Height="20" CornerRadius="2" BorderThickness="1" BorderBrush="White" Background="Transparent"
VerticalAlignment="Center">
<Image x:Name="img" Width="14" Height="14" VerticalAlignment="Center" HorizontalAlignment="Center"
Source="/VIZ.FGOUT.Module.Resource;component/Icons/right_16x16.png" Visibility="Hidden"></Image>
<Border
x:Name="border"
Height="20"
VerticalAlignment="Center"
Background="Transparent"
BorderBrush="White"
BorderThickness="1"
CornerRadius="2">
<Image
x:Name="img"
Width="14"
Height="14"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Source="/VIZ.FGOUT.Module.Resource;component/Icons/right_16x16.png"
Visibility="Hidden" />
</Border>
<ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="1"></ContentPresenter>
<ContentPresenter
Grid.Column="1"
HorizontalAlignment="Left"
VerticalAlignment="Center" />
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="border" Property="BorderBrush" Value="#ffffc000"></Setter>
<Setter TargetName="border" Property="Background" Value="#ffffc000"></Setter>
<Setter TargetName="img" Property="Visibility" Value="Visible"></Setter>
<Setter TargetName="border" Property="BorderBrush" Value="#ffffc000" />
<Setter TargetName="border" Property="Background" Value="#ffffc000" />
<Setter TargetName="img" Property="Visibility" Value="Visible" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
......
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style x:Key="CheckBox_Eye" TargetType="CheckBox">
<Setter Property="FocusVisualStyle" Value="{x:Null}"></Setter>
<Setter Property="Width" Value="50"></Setter>
<Setter Property="Height" Value="40"></Setter>
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
<Setter Property="Width" Value="50" />
<Setter Property="Height" Value="40" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="CheckBox">
<Grid x:Name="bd" SnapsToDevicePixels="True" Background="Transparent" >
<Image x:Name="img_hide" Width="24" Height="24" VerticalAlignment="Center" HorizontalAlignment="Center"
Source="/VIZ.FGOUT.Module.Resource;component/Icons/eye_hide_24x24.png" Visibility="Visible"></Image>
<Image x:Name="img_show" Width="24" Height="24" VerticalAlignment="Center" HorizontalAlignment="Center"
Source="/VIZ.FGOUT.Module.Resource;component/Icons/eye_show_24x24.png" Visibility="Hidden"></Image>
<Grid
x:Name="bd"
Background="Transparent"
SnapsToDevicePixels="True">
<Image
x:Name="img_hide"
Width="24"
Height="24"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Source="/VIZ.FGOUT.Module.Resource;component/Icons/eye_hide_24x24.png"
Visibility="Visible" />
<Image
x:Name="img_show"
Width="24"
Height="24"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Source="/VIZ.FGOUT.Module.Resource;component/Icons/eye_show_24x24.png"
Visibility="Hidden" />
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="img_hide" Property="Visibility" Value="Hidden"></Setter>
<Setter TargetName="img_show" Property="Visibility" Value="Visible"></Setter>
<Setter TargetName="img_hide" Property="Visibility" Value="Hidden" />
<Setter TargetName="img_show" Property="Visibility" Value="Visible" />
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="bd" Property="Background" Value="#22ffffff"></Setter>
<Setter TargetName="bd" Property="Background" Value="#22ffffff" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
......@@ -29,25 +43,40 @@
</Style>
<Style x:Key="CheckBox_One_Four" TargetType="CheckBox">
<Setter Property="FocusVisualStyle" Value="{x:Null}"></Setter>
<Setter Property="Width" Value="50"></Setter>
<Setter Property="Height" Value="40"></Setter>
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
<Setter Property="Width" Value="50" />
<Setter Property="Height" Value="40" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="CheckBox">
<Grid x:Name="bd" SnapsToDevicePixels="True" Background="Transparent" >
<Image x:Name="img_hide" Width="24" Height="24" VerticalAlignment="Center" HorizontalAlignment="Center"
Source="/VIZ.FGOUT.Module.Resource;component/Icons/full_four_24x24.png" Visibility="Visible"></Image>
<Image x:Name="img_show" Width="24" Height="24" VerticalAlignment="Center" HorizontalAlignment="Center"
Source="/VIZ.FGOUT.Module.Resource;component/Icons/full_one_24x24.png" Visibility="Hidden"></Image>
<Grid
x:Name="bd"
Background="Transparent"
SnapsToDevicePixels="True">
<Image
x:Name="img_hide"
Width="24"
Height="24"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Source="/VIZ.FGOUT.Module.Resource;component/Icons/full_four_24x24.png"
Visibility="Visible" />
<Image
x:Name="img_show"
Width="24"
Height="24"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Source="/VIZ.FGOUT.Module.Resource;component/Icons/full_one_24x24.png"
Visibility="Hidden" />
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="img_hide" Property="Visibility" Value="Hidden"></Setter>
<Setter TargetName="img_show" Property="Visibility" Value="Visible"></Setter>
<Setter TargetName="img_hide" Property="Visibility" Value="Hidden" />
<Setter TargetName="img_show" Property="Visibility" Value="Visible" />
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="bd" Property="Background" Value="#22ffffff"></Setter>
<Setter TargetName="bd" Property="Background" Value="#22ffffff" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
......
......@@ -4,7 +4,7 @@
library
C#
.cs
D:\Projects\FGOUT\VIZ.FGOUT\VIZ.FGOUT.Module.Resource\obj\x64\Debug\
C:\Projects\FGOUT\VIZ.FGOUT\VIZ.FGOUT.Module.Resource\obj\x64\Debug\
VIZ.FGOUT.Module.Resource
none
false
......@@ -13,8 +13,8 @@ DEBUG;TRACE
18560433975
1470602451
121374819015
23-1225277564
23977013142
Style\Button\Button_NdiView.xaml;Style\Button\Button_Setting.xaml;Style\Button\Button_WindowTop.xaml;Style\CheckBox\CheckBox_NdiView.xaml;Style\CheckBox\CheckBox_Setting.xaml;Style\CheckBox\CheckBox_WindowTop.xaml;Style\ComboBox\ComboBox_Setting.xaml;Style\HotkeyBox\HotkeyBox_Setting.xaml;Style\MessageBox\MessageBoxEx.xaml;Style\RadioButton\RadioButton_FootballSide.xaml;Style\RadioButton\RadioButton_NdiView.xaml;Style\RadioButton\RadioButton_Setting.xaml;Style\Slider\Slider_Setting.xaml;Style\TextBlock\TextBlock_Setting.xaml;Style\TextBox\TextBox_Setting.xaml;Style\ToogleButton\ToogleButton_Setting.xaml;Themes\Generic.xaml;Toolkit\NumericUpDown\NumericUpDown.xaml;
True
False
using log4net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VIZ.FGOUT.Connection;
using VIZ.FGOUT.Domain;
using VIZ.FGOUT.Storage;
using VIZ.Framework.Connection;
namespace VIZ.FGOUT.Module
......@@ -130,7 +125,7 @@ namespace VIZ.FGOUT.Module
{
//service = ApplicationDomainEx.ServiceManager.GetService<INDIViewService>(NDIViewKeys.CAM_1);
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager("CAM_1");
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager(NDIViewKeys.CAM_1);
AlgorithmPackage__MatCmd algorithmPackage__MatCmd = new AlgorithmPackage__MatCmd();
......@@ -149,7 +144,7 @@ namespace VIZ.FGOUT.Module
{
//service = ApplicationDomainEx.ServiceManager.GetService<INDIViewService>(NDIViewKeys.CAM_2);
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager("CAM_1");
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager(NDIViewKeys.CAM_1);
AlgorithmPackage__MatCmd algorithmPackage__MatCmd = new AlgorithmPackage__MatCmd();
......
......@@ -221,6 +221,7 @@
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
......@@ -363,6 +364,25 @@
Width="100"
Height="40"
Margin="10"
Command="{Binding Path=ExitCommand}"
Content="Exit"
Style="{StaticResource ButtonStyle}" />
<Button
Grid.Row="3"
Width="100"
Height="40"
Margin="10"
Command="{Binding Path=HoldonCommand}"
Content="Holdon"
Style="{StaticResource ButtonStyle}" />
<Button
Grid.Row="3"
Grid.Column="1"
Width="100"
Height="40"
Margin="10"
Command="{Binding Path=ReplaySendCommand}"
Content="Replay Send"
Style="{StaticResource ButtonStyle}"
......
using System.Windows.Controls;
using System.Windows.Input;
using VIZ.FGOUT.Domain;
using VIZ.Framework.Core;
namespace VIZ.FGOUT.Module
......@@ -18,18 +19,12 @@ namespace VIZ.FGOUT.Module
private void cam2_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
vm.sendPlaceModel.Key = "CAM_2";
vm.startPlaceModel.Key = "CAM_2";
vm.endPlaceModel.Key = "CAM_2";
vm.invalidPlaceModel.Key = "CAM_2";
vm.invalidPlaceModel.Key = vm.endPlaceModel.Key = vm.startPlaceModel.Key = vm.sendPlaceModel.Key = NDIViewKeys.CAM_2;
}
private void cam1_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
vm.sendPlaceModel.Key = "CAM_1";
vm.startPlaceModel.Key = "CAM_1";
vm.endPlaceModel.Key = "CAM_1";
vm.invalidPlaceModel.Key = "CAM_1";
vm.invalidPlaceModel.Key = vm.endPlaceModel.Key = vm.startPlaceModel.Key = vm.sendPlaceModel.Key = NDIViewKeys.CAM_1;
}
}
}
......@@ -62,7 +62,7 @@ namespace VIZ.FGOUT.Module
this.StartRegionCommand = new VCommand(this.StartRegion);
this.EndRegionCommand = new VCommand(this.EndRegion);
this.CleanCommand = new VCommand(this.CleanRect);
this.SendPlaceCommand = new VCommand(this.sendPlace);
this.SendPlaceCommand = new VCommand(this.SendPlace);
this.SavePalceCommand = new VCommand(this.SavePlace);
this.SaveMatImageCommand = new VCommand(this.MatImageCommand);
// replay
......@@ -82,6 +82,10 @@ namespace VIZ.FGOUT.Module
this.StopCommand= new VCommand(this.Stop);
//视频设置
this.VideoSettingCommand = new VCommand(this.VideoSetting);
//算法Exit
this.ExitCommand = new VCommand(this.Exit);
//算法Holdon
this.HoldonCommand = new VCommand(this.Holdon);
}
/// <summary>
......@@ -120,7 +124,7 @@ namespace VIZ.FGOUT.Module
private void SendIsManual(string model)
{
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager("CAM_1");
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager(NDIViewKeys.CAM_1);
//如果manager等于null 返回掉
if (manager == null) return;
......@@ -450,6 +454,32 @@ namespace VIZ.FGOUT.Module
#endregion
#region 算法Exit And Holdon
public VCommand ExitCommand { get; set; }
/// <summary>
/// exit
/// </summary>
private void Exit()
{
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager(NDIViewKeys.CAM_1);
if (manager == null) return;
manager.SendJson(new AlgorithmPackage_Figout_model(){signal = AlgorithmPackageSignal.EXIT});
}
public VCommand HoldonCommand { get; set; }
/// <summary>
/// hold_on
/// </summary>
private void Holdon()
{
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager(NDIViewKeys.CAM_1);
if (manager == null) return;
manager.SendJson(new AlgorithmPackage_Figout_model() { signal = AlgorithmPackageSignal.HOLD_ON });
}
#endregion
#region Replay功能
public VCommand ReplayCommand { get; set; }
......@@ -634,7 +664,7 @@ namespace VIZ.FGOUT.Module
/// <param name="key">服务键</param>
private void VideoSetting()
{
NDISettingView view = new NDISettingView("CAM_1", "B0-25-AA-4E-C4-AE__CAM_1");
NDISettingView view = new NDISettingView(NDIViewKeys.CAM_1, "B0-25-AA-4E-C4-AE__CAM_1");
NoneWindow window = new NoneWindow(1200, 1050, view);
window.Owner = this.GetWindow();
window.ShowDialog();
......@@ -770,7 +800,7 @@ namespace VIZ.FGOUT.Module
/// </summary>
public VCommand SendPlaceCommand { get; set; }
public SendPlaceModel sendPlaceModel = new SendPlaceModel();
private void sendPlace()
private void SendPlace()
{
ApplicationDomainEx.MessageManager.Send(sendPlaceModel);
}
......
<UserControl x:Class="VIZ.FGOUT.Module.NDIPreviewView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:fcommon="clr-namespace:VIZ.Framework.Common;assembly=VIZ.Framework.Common"
xmlns:behaviors="http://schemas.microsoft.com/xaml/behaviors"
xmlns:local="clr-namespace:VIZ.FGOUT.Module"
mc:Ignorable="d"
d:DataContext="{d:DesignInstance Type=local:NDIPreviewViewModel}"
d:DesignHeight="1920" d:DesignWidth="1080">
<UserControl
x:Class="VIZ.FGOUT.Module.NDIPreviewView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:behaviors="http://schemas.microsoft.com/xaml/behaviors"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:fcommon="clr-namespace:VIZ.Framework.Common;assembly=VIZ.Framework.Common"
xmlns:local="clr-namespace:VIZ.FGOUT.Module"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DataContext="{d:DesignInstance Type=local:NDIPreviewViewModel}"
d:DesignHeight="1920"
d:DesignWidth="1080"
mc:Ignorable="d">
<behaviors:Interaction.Triggers>
<behaviors:EventTrigger EventName="Loaded">
......@@ -17,6 +19,6 @@
</behaviors:Interaction.Triggers>
<Border BorderBrush="#22ffffff" BorderThickness="1">
<fcommon:VideoControl x:Name="video"></fcommon:VideoControl>
<fcommon:VideoControl x:Name="video" />
</Border>
</UserControl>
......@@ -933,7 +933,7 @@ namespace VIZ.FGOUT.Module
//如果没有选择预设则不发送
if (string.IsNullOrEmpty(PresetsItem)) return;
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager("CAM_1");
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager(NDIViewKeys.CAM_1);
if (manager == null)
return;
......
......@@ -497,7 +497,7 @@ namespace VIZ.FGOUT.Module
//NetHelper.GetAvailableUdpPort(8200, 9200, GlobalUsedPorts);
GlobalUsedPorts.Add(port);
ConnectionManager.UdpConnection.AddEndpointManager(new UdpEndpointManager("CAM_1", ip, port));
ConnectionManager.UdpConnection.AddEndpointManager(new UdpEndpointManager(NDIViewKeys.CAM_1, ip, port));
this.Support.ProcessModel.IP = ip;
this.Support.ProcessModel.Port = port;
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using VIZ.FGOUT.Connection;
using VIZ.FGOUT.Domain;
......@@ -32,7 +30,7 @@ namespace VIZ.FGOUT.Module
public override void CancelErrorTag(long timeCode)
{
// throw new NotImplementedException();
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager("CAM_1");
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager(NDIViewKeys.CAM_1);
AlgorithmSenderOption option = new AlgorithmSenderOption();
option.id = this.Support.ID;
option.timecode = timeCode;
......@@ -70,7 +68,7 @@ namespace VIZ.FGOUT.Module
//throw new NotImplementedException();
this.Support.ViewStatus= NDIViewStatus.Detect;
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager("CAM_1");
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager(NDIViewKeys.CAM_1);
AlgorithmSenderOption option = new AlgorithmSenderOption();
option.id = this.Support.ID;
AlgorithmSender.AutoMode(manager,this.bulidPackage(AlgorithmAutoModeCmd.detect,null),option);
......@@ -86,7 +84,7 @@ namespace VIZ.FGOUT.Module
if (target_bbox == null || target_bbox.Count != 4 || timeCode <= 0)
return;
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager("CAM_1");
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager(NDIViewKeys.CAM_1);
AlgorithmSenderOption option = new AlgorithmSenderOption();
......@@ -108,7 +106,7 @@ namespace VIZ.FGOUT.Module
/// </summary>
public override void InitAlgorithm()
{
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager("CAM_1");
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager(NDIViewKeys.CAM_1);
AlgorithmSenderOption option = new AlgorithmSenderOption();
......@@ -141,7 +139,7 @@ namespace VIZ.FGOUT.Module
public override void SetParams()
{
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager("CAM_1");
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager(NDIViewKeys.CAM_1);
AlgorithmSenderOption option = new AlgorithmSenderOption();
......@@ -163,7 +161,7 @@ namespace VIZ.FGOUT.Module
// throw new NotImplementedException();
//this.Support.ViewStatus = NDIViewStatus.CropRoi;
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager("CAM_1");
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager(NDIViewKeys.CAM_1);
AlgorithmSenderOption option = new AlgorithmSenderOption();
......@@ -226,7 +224,7 @@ namespace VIZ.FGOUT.Module
if (this.manualConfig.IsManual) return;
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager("CAM_1");
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager(NDIViewKeys.CAM_1);
AlgorithmSenderOption option = new AlgorithmSenderOption();
......
......@@ -69,14 +69,12 @@ namespace VIZ.FGOUT.Module
//}
}
/// <summary>
/// 初始化算法
/// </summary>
private void InitAlgorithm()
{
if(this.ViewKey!= "CAM_1")
if(this.ViewKey!= NDIViewKeys.CAM_1)
{
return;
}
......
......@@ -130,7 +130,7 @@ namespace VIZ.FGOUT.Module
ApplicationDomainEx.MessageManager.Register<EndPlaceModel>(this, this.EndPlace);
// 无效区域的注册
ApplicationDomainEx.MessageManager.Register<InvalidPlaceModel>(this, this.InvalidPlaceModel);
//清除位置
// 清除位置
ApplicationDomainEx.MessageManager.Register<CleanPlaceModel>(this, this.CleanPlace);
// 算法发送命令
ApplicationDomainEx.MessageManager.Register<SendPlaceModel>(this, this.SendPlace);
......@@ -149,7 +149,7 @@ namespace VIZ.FGOUT.Module
private void UESetting(UESettingModel ueSettingModel)
{
if (this.ViewKey != "CAM_1")
if (this.ViewKey != NDIViewKeys.CAM_1)
return;
UESettingPanelView ueSettingPanelView = new UESettingPanelView();
ueSettingPanelView.Show();
......@@ -157,7 +157,7 @@ namespace VIZ.FGOUT.Module
private void UEControl(UEControlModel ueControlModel)
{
if (this.ViewKey != "CAM_1")
if (this.ViewKey != NDIViewKeys.CAM_1)
return;
UEControlPanelView ueControlPanelView = new UEControlPanelView();
ueControlPanelView.Show();
......@@ -174,7 +174,7 @@ namespace VIZ.FGOUT.Module
/// </summary>
private void Replay(ReplayModel replayModel)
{
if (this.ViewKey != "CAM_1")
if (this.ViewKey != NDIViewKeys.CAM_1)
return;
IsReplay = replayModel.IsReplay;
IsSliderValueChanged = replayModel.IsSliderValueChanged;
......@@ -192,7 +192,7 @@ namespace VIZ.FGOUT.Module
/// </summary>
private void StartPlace(StartPlaceModel startPlaceModel)
{
if (this.ViewKey != "CAM_1")
if (this.ViewKey != NDIViewKeys.CAM_1)
{
IsDrawStartPlace = false;
return;
......@@ -209,7 +209,7 @@ namespace VIZ.FGOUT.Module
/// </summary>
private void EndPlace(EndPlaceModel endPlaceModel)
{
if (this.ViewKey != "CAM_1")
if (this.ViewKey != NDIViewKeys.CAM_1)
{
IsDrawEndPlace = false;
return;
......@@ -227,7 +227,7 @@ namespace VIZ.FGOUT.Module
/// <param name="invalidPlaceModel"></param>
private void InvalidPlaceModel(InvalidPlaceModel invalidPlaceModel)
{
if (this.ViewKey != "CAM_1")
if (this.ViewKey != NDIViewKeys.CAM_1)
{
IsDrawInvalidPlace = false;
return;
......@@ -274,7 +274,7 @@ namespace VIZ.FGOUT.Module
// 对结束值进行组装
NDIView nDIView = this.GetView<NDIView>();
if (this.ViewKey != "CAM_1")
if (this.ViewKey != NDIViewKeys.CAM_1)
return;
//var renderInfo = nDIView.video.GetRenderInfo();
......@@ -286,9 +286,9 @@ namespace VIZ.FGOUT.Module
var srcWidth = nDIView.video.ActualWidth;
var srcHeight = nDIView.video.ActualHeight;
// ConnectionManager.UdpConnection.AddEndpointManager(new UdpEndpointManager("CAM_1", "192.168.31.95", 8001));
// ConnectionManager.UdpConnection.AddEndpointManager(new UdpEndpointManager(NDIViewKeys.CAM_1, "192.168.31.95", 8001));
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager("CAM_1");
UdpEndpointManager manager = ConnectionManager.UdpConnection.GetEndpointManager(NDIViewKeys.CAM_1);
if (manager == null)
return;
......@@ -393,10 +393,8 @@ namespace VIZ.FGOUT.Module
private SetManualConfig manualConfig;
private void SavePlace(SavePlaceModel savePlaceModel)
{
if (this.ViewKey != "CAM_1")
{
if (this.ViewKey != NDIViewKeys.CAM_1)
return;
}
//this.setPlaceConfig = ApplicationDomainEx.LiteDbContext.SetPlaceConfig.FindAll().FirstOrDefault();
this.setPlaceNewConfig = ApplicationDomainEx.LiteDbContext.SetPlaceNewConfig.FindAll().FirstOrDefault();
......@@ -669,7 +667,7 @@ namespace VIZ.FGOUT.Module
manualCorrectionColor.A = (float)this.VIDEO_MANUAL_CORRECTION_OPACITY;
this.ManualCorrectionColor = manualCorrectionColor;
if (this.ViewKey == "CAM_1")
if (this.ViewKey == NDIViewKeys.CAM_1)
{
// 是否显示目标裁切框
this.IsShowAlgorithmTargetBox = config.IsShowAlgorithmTargetBox;
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VIZ.Framework.Core;
using VIZ.FGOUT.Domain;
using VIZ.FGOUT.Domain;
using VIZ.FGOUT.Storage;
using VIZ.Framework.Core;
namespace VIZ.FGOUT.Module
{
......
#pragma checksum "..\..\..\..\..\NDIMainView\View\NDIMainView.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "58A9C8918EDDD5A194C3881F4D4E1B29ED31209313AAE4C32894090A5E3A7320"
#pragma checksum "..\..\..\..\..\NDIMainView\View\NDIMainView.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "246CB3D0589E746A77AAE2EA419AE34EE44325F4DDA8F5E0F68ECB7EE3C9DD24"
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
......@@ -58,7 +58,7 @@ namespace VIZ.FGOUT.Module {
#line hidden
#line 373 "..\..\..\..\..\NDIMainView\View\NDIMainView.xaml"
#line 393 "..\..\..\..\..\NDIMainView\View\NDIMainView.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal VIZ.FGOUT.Module.NDIView cam1;
......@@ -66,7 +66,7 @@ namespace VIZ.FGOUT.Module {
#line hidden
#line 420 "..\..\..\..\..\NDIMainView\View\NDIMainView.xaml"
#line 440 "..\..\..\..\..\NDIMainView\View\NDIMainView.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal VIZ.FGOUT.Module.NDIView cam2;
......
#pragma checksum "..\..\..\..\..\NDIMainView\View\NDIMainView.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "58A9C8918EDDD5A194C3881F4D4E1B29ED31209313AAE4C32894090A5E3A7320"
#pragma checksum "..\..\..\..\..\NDIMainView\View\NDIMainView.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "246CB3D0589E746A77AAE2EA419AE34EE44325F4DDA8F5E0F68ECB7EE3C9DD24"
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
......@@ -58,7 +58,7 @@ namespace VIZ.FGOUT.Module {
#line hidden
#line 373 "..\..\..\..\..\NDIMainView\View\NDIMainView.xaml"
#line 393 "..\..\..\..\..\NDIMainView\View\NDIMainView.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal VIZ.FGOUT.Module.NDIView cam1;
......@@ -66,7 +66,7 @@ namespace VIZ.FGOUT.Module {
#line hidden
#line 420 "..\..\..\..\..\NDIMainView\View\NDIMainView.xaml"
#line 440 "..\..\..\..\..\NDIMainView\View\NDIMainView.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal VIZ.FGOUT.Module.NDIView cam2;
......
#pragma checksum "..\..\..\..\..\NDIPreviewView\View\NDIPreviewView.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "5449F11855F801F54515AC3E15799F325720C46AD54FC2D423E8DCD4D2CABF98"
#pragma checksum "..\..\..\..\..\NDIPreviewView\View\NDIPreviewView.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "FB938830018E36009179009D660FEADC8B5151E97FD6BE9339114B0FDFCFE361"
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
......@@ -47,7 +47,7 @@ namespace VIZ.FGOUT.Module {
public partial class NDIPreviewView : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
#line 20 "..\..\..\..\..\NDIPreviewView\View\NDIPreviewView.xaml"
#line 22 "..\..\..\..\..\NDIPreviewView\View\NDIPreviewView.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal VIZ.Framework.Common.VideoControl video;
......
#pragma checksum "..\..\..\..\..\NDIPreviewView\View\NDIPreviewView.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "5449F11855F801F54515AC3E15799F325720C46AD54FC2D423E8DCD4D2CABF98"
#pragma checksum "..\..\..\..\..\NDIPreviewView\View\NDIPreviewView.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "FB938830018E36009179009D660FEADC8B5151E97FD6BE9339114B0FDFCFE361"
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
......@@ -47,7 +47,7 @@ namespace VIZ.FGOUT.Module {
public partial class NDIPreviewView : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
#line 20 "..\..\..\..\..\NDIPreviewView\View\NDIPreviewView.xaml"
#line 22 "..\..\..\..\..\NDIPreviewView\View\NDIPreviewView.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal VIZ.Framework.Common.VideoControl video;
......
......@@ -11,7 +11,7 @@ false
DEBUG;TRACE
22-808211288
4-699044453
91978002453
151674092382
NDIMainView\View\NDIMainView.xaml;NDIPreviewView\View\NDIPreviewView.xaml;NDISettingView\View\AlgorithmSettingPanelView.xaml;NDISettingView\View\Algorithm\AlgorithmCablewayPanelView.xaml;NDISettingView\View\Algorithm\AlgorithmNearPanelView.xaml;NDISettingView\View\Algorithm\AlgorithmSinglePanelView.xaml;NDISettingView\View\Algorithm\AlgorithmSixteenPanelView.xaml;NDISettingView\View\Algorithm\AlgorithmTacticsPanelView.xaml;NDISettingView\View\NDISettingPanelView.xaml;NDISettingView\View\NDISettingView.xaml;NDIView\View\NDIView.xaml;SystemSetting\View\AboutPanelView.xaml;SystemSetting\View\CheckDataPanelView.xaml;SystemSetting\View\HotkeySettingPanelView.xaml;SystemSetting\View\MattingImagePanelView.xaml;SystemSetting\View\PackageSettingPanelView.xaml;SystemSetting\View\PreviewSettingPanelView.xaml;SystemSetting\View\ReplayPanelView.xaml;SystemSetting\View\StyleSettingPanelView.xaml;SystemSetting\View\SystemSettingView.xaml;SystemSetting\View\UEControlPanelView.xaml;SystemSetting\View\UESettingPanelView.xaml;
......

C:\Projects\FGOUT\VIZ.FGOUT\VIZ.FGOUT.Module\obj\x64\Debug\GeneratedInternalTypeHelper.g.cs
FC:\Projects\FGOUT\VIZ.FGOUT\VIZ.FGOUT.Module\NDIMainView\View\NDIMainView.xaml;;
FC:\Projects\FGOUT\VIZ.FGOUT\VIZ.FGOUT.Module\NDIPreviewView\View\NDIPreviewView.xaml;;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment