Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.H2V
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘龙飞
VIZ.H2V
Commits
6aca751b
Commit
6aca751b
authored
Aug 22, 2022
by
liulongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
算法重启调整为常住功能
parent
2dc9fb79
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
6 deletions
+44
-6
VIZ.H2V.Module.Resource/Style/Button/Button_NdiView.xaml
+29
-0
VIZ.H2V.Module.Resource/VIZ.H2V.Module.Resource.csproj
+4
-0
VIZ.H2V.Module/NDIView/View/NDIView.xaml
+5
-3
VIZ.H2V.Module/NDIView/VieweModel/NDIViewModel.Command.cs
+3
-0
VIZ.H2V.Module/NDIView/VieweModel/NDIViewModel.cs
+3
-3
No files found.
VIZ.H2V.Module.Resource/Style/Button/Button_NdiView.xaml
0 → 100644
View file @
6aca751b
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style x:Key="Button_Restart" TargetType="Button">
<Setter Property="FocusVisualStyle" Value="{x:Null}"></Setter>
<Setter Property="Foreground" Value="#88ffc000"></Setter>
<Setter Property="FontSize" Value="14"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="border" BorderBrush="#88ffc000" BorderThickness="2" Background="Transparent">
<ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"></ContentPresenter>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="border" Property="BorderBrush" Value="#aaffc000"></Setter>
<Setter TargetName="border" Property="Background" Value="#11ffffff"></Setter>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.7"></Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
\ No newline at end of file
VIZ.H2V.Module.Resource/VIZ.H2V.Module.Resource.csproj
View file @
6aca751b
...
...
@@ -66,6 +66,10 @@
<Reference Include="PresentationFramework" />
</ItemGroup>
<ItemGroup>
<Page Include="Style\Button\Button_NdiView.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Style\Button\Button_Setting.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
...
...
VIZ.H2V.Module/NDIView/View/NDIView.xaml
View file @
6aca751b
...
...
@@ -18,6 +18,7 @@
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/VIZ.H2V.Module.Resource;component/Style/Button/Button_NdiView.xaml"></ResourceDictionary>
<ResourceDictionary Source="/VIZ.H2V.Module.Resource;component/Style/Button/Button_Setting.xaml"></ResourceDictionary>
<ResourceDictionary Source="/VIZ.H2V.Module.Resource;component/Style/CheckBox/CheckBox_NdiView.xaml"></ResourceDictionary>
<ResourceDictionary Source="/VIZ.H2V.Module.Resource;component/Style/RadioButton/RadioButton_NdiView.xaml"></ResourceDictionary>
...
...
@@ -68,9 +69,6 @@
<!-- =================================================================================================== -->
<fcommon:DebugBorder VerticalAlignment="Top" Grid.ColumnSpan="2">
<StackPanel Orientation="Horizontal">
<Button Width="60" Height="30" Margin="0,0,30,0" Content="算法重启"
IsEnabled="{Binding Path=ViewStatus,Converter={StaticResource NDIViewStatus2IsEnabledConverter_SettingButton}}"
Command="{Binding RestartCommand}"></Button>
<TextBlock Text="裁切FPS:" Foreground="Red" FontSize="16" Margin="0,0,0,0" Opacity="0.86" VerticalAlignment="Center"></TextBlock>
<TextBlock Foreground="Red" FontSize="16" Margin="10,0,0,0" VerticalAlignment="Center"
Text="{Binding ClipFPS.FPS}" Width="30"></TextBlock>
...
...
@@ -129,6 +127,10 @@
</Grid>
</Grid>
</Grid>
<Button Width="80" Height="30" Content="算法重启" Style="{StaticResource Button_Restart}"
Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,20,0,0"
IsEnabled="{Binding Path=ViewStatus,Converter={StaticResource NDIViewStatus2IsEnabledConverter_SettingButton}}"
Command="{Binding RestartCommand}"></Button>
<!-- 机位对应特殊面板区域 -->
<Grid Grid.Row="1">
...
...
VIZ.H2V.Module/NDIView/VieweModel/NDIViewModel.Command.cs
View file @
6aca751b
...
...
@@ -102,6 +102,9 @@ namespace VIZ.H2V.Module
this
.
StrategyType
=
this
.
ViewConfig
.
StrategyType
;
// 裁切模式
this
.
StrategyMode
=
this
.
ViewConfig
.
StrategyMode
;
// 记录档期操作日志
this
.
WriteLogOperation
();
}
/// <summary>
...
...
VIZ.H2V.Module/NDIView/VieweModel/NDIViewModel.cs
View file @
6aca751b
...
...
@@ -116,7 +116,7 @@ namespace VIZ.H2V.Module
try
{
// 记录操作日志
this
.
WriteLogOperation
(
context
);
this
.
WriteLogOperation
();
// 停止3D鼠标更新
Navigation3DManager
.
Navigation3DModel
.
IsReady
=
false
;
...
...
@@ -312,8 +312,7 @@ namespace VIZ.H2V.Module
/// <summary>
/// 操作日志
/// </summary>
/// <param name="context">切换算法上下文</param>
private
void
WriteLogOperation
(
ChangeStrategyContext
context
)
private
void
WriteLogOperation
()
{
AlgorithmStrategyMode
last_mode
=
this
.
StrategyMode
;
...
...
@@ -330,6 +329,7 @@ namespace VIZ.H2V.Module
LogOperation
log
=
new
LogOperation
();
log
.
ViewKey
=
this
.
ViewKey
;
log
.
StrategyType
=
this
.
StrategyType
.
GetDescription
();
log
.
Operation
=
last_mode
.
GetDescription
();
log
.
BeginTime
=
now
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment