Commit 95a506a0 by 马宁-艾果

CAM_2设置只显示视频流选项 And 启动算法参数添加game_name

parent e6c3339e
 //------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace XamlGeneratedNamespace {
/// <summary>
/// GeneratedInternalTypeHelper
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public sealed class GeneratedInternalTypeHelper : System.Windows.Markup.InternalTypeHelper {
/// <summary>
/// CreateInstance
/// </summary>
protected override object CreateInstance(System.Type type, System.Globalization.CultureInfo culture) {
return System.Activator.CreateInstance(type, ((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic)
| (System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.CreateInstance)), null, null, culture);
}
/// <summary>
/// GetPropertyValue
/// </summary>
protected override object GetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, System.Globalization.CultureInfo culture) {
return propertyInfo.GetValue(target, System.Reflection.BindingFlags.Default, null, null, culture);
}
/// <summary>
/// SetPropertyValue
/// </summary>
protected override void SetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, object value, System.Globalization.CultureInfo culture) {
propertyInfo.SetValue(target, value, System.Reflection.BindingFlags.Default, null, null, culture);
}
/// <summary>
/// CreateDelegate
/// </summary>
protected override System.Delegate CreateDelegate(System.Type delegateType, object target, string handler) {
return ((System.Delegate)(target.GetType().InvokeMember("_CreateDelegate", (System.Reflection.BindingFlags.InvokeMethod
| (System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)), null, target, new object[] {
delegateType,
handler}, null)));
}
/// <summary>
/// AddEventHandler
/// </summary>
protected override void AddEventHandler(System.Reflection.EventInfo eventInfo, object target, System.Delegate handler) {
eventInfo.AddEventHandler(target, handler);
}
}
}
...@@ -10,11 +10,11 @@ none ...@@ -10,11 +10,11 @@ none
false false
21870986562 2-725104376
31364711570 3947974750
17-1683084370 17-1462717611
Themes\Generic.xaml;Widgets\FootballFieldPanel\FootballFieldPanel.xaml; Themes\Generic.xaml;Widgets\FootballFieldPanel\FootballFieldPanel.xaml;
False True
...@@ -131,12 +131,14 @@ ...@@ -131,12 +131,14 @@
</DataTemplate> </DataTemplate>
</ComboBox.ItemTemplate> </ComboBox.ItemTemplate>
</ComboBox>--> </ComboBox>-->
<!--<StackPanel Grid.Row="2" Grid.RowSpan="4">-->
<TextBlock <TextBlock
Grid.Row="2" Grid.Row="2"
VerticalAlignment="Center" VerticalAlignment="Center"
FontSize="18" FontSize="18"
Foreground="White" Foreground="White"
Text="赛事" /> Text="赛事"
Visibility="{Binding IsCam1Visibility, Mode=TwoWay}" />
<!--<ComboBox <!--<ComboBox
Grid.Row="5" Grid.Row="5"
Width="510" Width="510"
...@@ -151,7 +153,8 @@ ...@@ -151,7 +153,8 @@
Height="40" Height="40"
Margin="0,10,0,10" Margin="0,10,0,10"
SelectedValue="{Binding PresetsItem, Mode=TwoWay}" SelectedValue="{Binding PresetsItem, Mode=TwoWay}"
Style="{StaticResource ComboBoxStyle}"> Style="{StaticResource ComboBoxStyle}"
Visibility="{Binding IsCam1Visibility, Mode=TwoWay}">
<b:Interaction.Triggers> <b:Interaction.Triggers>
<b:EventTrigger EventName="SelectionChanged"> <b:EventTrigger EventName="SelectionChanged">
<b:InvokeCommandAction Command="{Binding PresetsSelectionChangedCommand}" /> <b:InvokeCommandAction Command="{Binding PresetsSelectionChangedCommand}" />
...@@ -161,7 +164,8 @@ ...@@ -161,7 +164,8 @@
<TabControl <TabControl
Grid.Row="4" Grid.Row="4"
Grid.RowSpan="2" Grid.RowSpan="2"
Background="Transparent"> Background="Transparent"
Visibility="{Binding IsCam1Visibility, Mode=TwoWay}">
<TabItem <TabItem
Background="{StaticResource ButtonMouseoverBackground}" Background="{StaticResource ButtonMouseoverBackground}"
FontSize="18" FontSize="18"
...@@ -378,13 +382,13 @@ ...@@ -378,13 +382,13 @@
Style="{StaticResource TextBoxStyle}" Style="{StaticResource TextBoxStyle}"
Text="{Binding MovementOnlyYPosition, Mode=TwoWay}" /> Text="{Binding MovementOnlyYPosition, Mode=TwoWay}" />
<!--<Button <!--<Button
Grid.Row="9" Grid.Row="9"
Grid.Column="3" Grid.Column="3"
Width="60" Width="60"
HorizontalAlignment="Center" HorizontalAlignment="Center"
Command="{Binding Path=SaveCommand}" Command="{Binding Path=SaveCommand}"
Content="Save" Content="Save"
Style="{StaticResource ButtonStyle}" />--> Style="{StaticResource ButtonStyle}" />-->
</Grid> </Grid>
</TabItem> </TabItem>
<TabItem <TabItem
...@@ -463,6 +467,7 @@ ...@@ -463,6 +467,7 @@
</Grid> </Grid>
</TabItem> </TabItem>
</TabControl> </TabControl>
<!--</StackPanel>-->
</Grid> </Grid>
</Border> </Border>
</UserControl> </UserControl>
...@@ -3,6 +3,7 @@ using System; ...@@ -3,6 +3,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Linq; using System.Linq;
using System.Windows;
using System.Windows.Data; using System.Windows.Data;
using VIZ.FGOUT.Connection; using VIZ.FGOUT.Connection;
using VIZ.FGOUT.Connection.UDP.Clip.Signal.Send; using VIZ.FGOUT.Connection.UDP.Clip.Signal.Send;
...@@ -227,6 +228,11 @@ namespace VIZ.FGOUT.Module ...@@ -227,6 +228,11 @@ namespace VIZ.FGOUT.Module
NDISettingView settingView = WPFHelper.GetAncestorByType<NDISettingView>(this.GetView<System.Windows.FrameworkElement>()); NDISettingView settingView = WPFHelper.GetAncestorByType<NDISettingView>(this.GetView<System.Windows.FrameworkElement>());
NDISettingViewModel vm = settingView.DataContext as NDISettingViewModel; NDISettingViewModel vm = settingView.DataContext as NDISettingViewModel;
this.ViewKey = vm.ViewKey; this.ViewKey = vm.ViewKey;
if (this.ViewKey.Equals(NDIViewKeys.CAM_2))
IsCam1Visibility = Visibility.Hidden;
else if(this.ViewKey.Equals(NDIViewKeys.CAM_1))
IsCam1Visibility = Visibility.Visible;
this.ViewConfig = vm.ViewConfig; this.ViewConfig = vm.ViewConfig;
if(this.ViewConfig==null) if(this.ViewConfig==null)
...@@ -246,6 +252,18 @@ namespace VIZ.FGOUT.Module ...@@ -246,6 +252,18 @@ namespace VIZ.FGOUT.Module
this.LoadNdiDelayInfo(); this.LoadNdiDelayInfo();
} }
private Visibility _isCam1Visibility = Visibility.Visible;
/// <summary>
/// 是Cam1就显示
/// </summary>
public Visibility IsCam1Visibility
{
get { return _isCam1Visibility; }
set { _isCam1Visibility = value; this.RaisePropertyChanged(nameof(IsCam1Visibility)); }
}
/// <summary> /// <summary>
/// 加载NDI流信息 /// 加载NDI流信息
/// </summary> /// </summary>
...@@ -331,8 +349,6 @@ namespace VIZ.FGOUT.Module ...@@ -331,8 +349,6 @@ namespace VIZ.FGOUT.Module
/// <returns>是否需要保存</returns> /// <returns>是否需要保存</returns>
public bool IsNeedSave() public bool IsNeedSave()
{ {
string streamName = this.SelectedNDIStreamInfo == null ? string.Empty : this.SelectedNDIStreamInfo.FullName; string streamName = this.SelectedNDIStreamInfo == null ? string.Empty : this.SelectedNDIStreamInfo.FullName;
// int delay = this.SelectedNDIDelayInfo == null ? 0 : this.SelectedNDIDelayInfo.Value; // int delay = this.SelectedNDIDelayInfo == null ? 0 : this.SelectedNDIDelayInfo.Value;
...@@ -374,6 +390,9 @@ namespace VIZ.FGOUT.Module ...@@ -374,6 +390,9 @@ namespace VIZ.FGOUT.Module
if (streamName != (this.ViewConfig.StreamName ?? string.Empty)) if (streamName != (this.ViewConfig.StreamName ?? string.Empty))
return true; return true;
//if (PresetsItem != null)
// return true;
return false; return false;
} }
...@@ -394,15 +413,18 @@ namespace VIZ.FGOUT.Module ...@@ -394,15 +413,18 @@ namespace VIZ.FGOUT.Module
this.ViewConfig.StreamName = streamName; this.ViewConfig.StreamName = streamName;
// this.ViewConfig.DelayFrame = delay; // this.ViewConfig.DelayFrame = delay;
// this.ViewConfig.IsSendToCrop = this.IsSendToCrop; // this.ViewConfig.IsSendToCrop = this.IsSendToCrop;
var gameCode = "";
ApplicationDomainEx.LiteDbContext.ViewConfig.Upsert(this.ViewConfig); if (PresetsItem != null)
{
gameCode = GetDicKey(PresetsItem);
//发送UE预设数据 //发送UE预设数据
PresetSave(); PresetSave();
//发送算法参数 //发送算法参数
SendAlgorithmParameters(); SendAlgorithmParameters();
}
this.ViewConfig.GameName = gameCode;
ApplicationDomainEx.LiteDbContext.ViewConfig.Upsert(this.ViewConfig);
return true; return true;
} }
......
...@@ -396,12 +396,15 @@ namespace VIZ.FGOUT.Module ...@@ -396,12 +396,15 @@ namespace VIZ.FGOUT.Module
// GPU设备号 // GPU设备号
int device = this.Support.ViewConfig.GPU; int device = this.Support.ViewConfig.GPU;
string game_name = this.Support.ViewConfig.GameName;
Dictionary<string, string> args = new Dictionary<string, string>(); Dictionary<string, string> args = new Dictionary<string, string>();
args["--port"] = $"{port}"; // 端口 args["--port"] = $"{port}"; // 端口
args["--ndi_name"] = $"{ndi_name}"; // NDI流名称 args["--ndi_name"] = $"{ndi_name}"; // NDI流名称
args["--id"] = $"{id}"; // 窗口ID args["--id"] = $"{id}"; // 窗口ID
args["--device"] = $"{device}"; // GPU设备ID args["--device"] = $"{device}"; // GPU设备ID
args["--vis_port"] = $"{CLIENT_PORT}"; // 软件端口 args["--vis_port"] = $"{CLIENT_PORT}"; // 软件端口
args["--game_name"] = $"{game_name}"; // 项目Code
/* ============================================================================= */ /* ============================================================================= */
/* === 目前暂时只有"单人机位"拥有裁切窗口过滤参数 === */ /* === 目前暂时只有"单人机位"拥有裁切窗口过滤参数 === */
......
#pragma checksum "..\..\..\..\..\NDISettingView\View\NDISettingPanelView.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "5E5710EFD7426F21C0A7995A42A757F5EC04A0951D00D9CA20FF24AB1491EE4F" #pragma checksum "..\..\..\..\..\NDISettingView\View\NDISettingPanelView.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "4D595C38494AFCEB4D804C8DF75A6C84207955539EEA59714C8DDB9AB01A8C1E"
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// 此代码由工具生成。 // 此代码由工具生成。
...@@ -63,7 +63,7 @@ namespace VIZ.FGOUT.Module { ...@@ -63,7 +63,7 @@ namespace VIZ.FGOUT.Module {
public partial class NDISettingPanelView : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector { public partial class NDISettingPanelView : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
#line 148 "..\..\..\..\..\NDISettingView\View\NDISettingPanelView.xaml" #line 150 "..\..\..\..\..\NDISettingView\View\NDISettingPanelView.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox _Sports_; internal System.Windows.Controls.ComboBox _Sports_;
...@@ -71,7 +71,7 @@ namespace VIZ.FGOUT.Module { ...@@ -71,7 +71,7 @@ namespace VIZ.FGOUT.Module {
#line hidden #line hidden
#line 226 "..\..\..\..\..\NDISettingView\View\NDISettingPanelView.xaml" #line 230 "..\..\..\..\..\NDISettingView\View\NDISettingPanelView.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Primitives.ToggleButton EnableSpline; internal System.Windows.Controls.Primitives.ToggleButton EnableSpline;
...@@ -79,7 +79,7 @@ namespace VIZ.FGOUT.Module { ...@@ -79,7 +79,7 @@ namespace VIZ.FGOUT.Module {
#line hidden #line hidden
#line 346 "..\..\..\..\..\NDISettingView\View\NDISettingPanelView.xaml" #line 350 "..\..\..\..\..\NDISettingView\View\NDISettingPanelView.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Primitives.ToggleButton MovementOnlyX; internal System.Windows.Controls.Primitives.ToggleButton MovementOnlyX;
...@@ -87,7 +87,7 @@ namespace VIZ.FGOUT.Module { ...@@ -87,7 +87,7 @@ namespace VIZ.FGOUT.Module {
#line hidden #line hidden
#line 369 "..\..\..\..\..\NDISettingView\View\NDISettingPanelView.xaml" #line 373 "..\..\..\..\..\NDISettingView\View\NDISettingPanelView.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Primitives.ToggleButton MovementOnlyY; internal System.Windows.Controls.Primitives.ToggleButton MovementOnlyY;
......
#pragma checksum "..\..\..\..\..\NDISettingView\View\NDISettingPanelView.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "5E5710EFD7426F21C0A7995A42A757F5EC04A0951D00D9CA20FF24AB1491EE4F" #pragma checksum "..\..\..\..\..\NDISettingView\View\NDISettingPanelView.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "4D595C38494AFCEB4D804C8DF75A6C84207955539EEA59714C8DDB9AB01A8C1E"
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// 此代码由工具生成。 // 此代码由工具生成。
...@@ -63,7 +63,7 @@ namespace VIZ.FGOUT.Module { ...@@ -63,7 +63,7 @@ namespace VIZ.FGOUT.Module {
public partial class NDISettingPanelView : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector { public partial class NDISettingPanelView : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
#line 148 "..\..\..\..\..\NDISettingView\View\NDISettingPanelView.xaml" #line 150 "..\..\..\..\..\NDISettingView\View\NDISettingPanelView.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox _Sports_; internal System.Windows.Controls.ComboBox _Sports_;
...@@ -71,7 +71,7 @@ namespace VIZ.FGOUT.Module { ...@@ -71,7 +71,7 @@ namespace VIZ.FGOUT.Module {
#line hidden #line hidden
#line 226 "..\..\..\..\..\NDISettingView\View\NDISettingPanelView.xaml" #line 230 "..\..\..\..\..\NDISettingView\View\NDISettingPanelView.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Primitives.ToggleButton EnableSpline; internal System.Windows.Controls.Primitives.ToggleButton EnableSpline;
...@@ -79,7 +79,7 @@ namespace VIZ.FGOUT.Module { ...@@ -79,7 +79,7 @@ namespace VIZ.FGOUT.Module {
#line hidden #line hidden
#line 346 "..\..\..\..\..\NDISettingView\View\NDISettingPanelView.xaml" #line 350 "..\..\..\..\..\NDISettingView\View\NDISettingPanelView.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Primitives.ToggleButton MovementOnlyX; internal System.Windows.Controls.Primitives.ToggleButton MovementOnlyX;
...@@ -87,7 +87,7 @@ namespace VIZ.FGOUT.Module { ...@@ -87,7 +87,7 @@ namespace VIZ.FGOUT.Module {
#line hidden #line hidden
#line 369 "..\..\..\..\..\NDISettingView\View\NDISettingPanelView.xaml" #line 373 "..\..\..\..\..\NDISettingView\View\NDISettingPanelView.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Primitives.ToggleButton MovementOnlyY; internal System.Windows.Controls.Primitives.ToggleButton MovementOnlyY;
......
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\NDIMainView\View\NDIMainView.xaml;;
FC:\Projects\FGOUT\VIZ.FGOUT\VIZ.FGOUT.Module\NDIPreviewView\View\NDIPreviewView.xaml;; FC:\Projects\FGOUT\VIZ.FGOUT\VIZ.FGOUT.Module\NDIPreviewView\View\NDIPreviewView.xaml;;
......
...@@ -61,5 +61,11 @@ ...@@ -61,5 +61,11 @@
/// 裁切模式 /// 裁切模式
/// </summary> /// </summary>
public AlgorithmStrategyMode StrategyMode { get; set; } = AlgorithmStrategyMode.auto_mode; public AlgorithmStrategyMode StrategyMode { get; set; } = AlgorithmStrategyMode.auto_mode;
/// <summary>
/// 体育项目的缩写代码(用于赛事编号)
/// </summary>
public string GameName { get; set; }
} }
} }
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