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
f19b1f91
Commit
f19b1f91
authored
Sep 19, 2022
by
liulongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 手动裁切映射bug修复
2. 是否显示中轴线修复
parent
ae343c4d
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
191 additions
and
48 deletions
+191
-48
VIZ.H2V.Domain/ApplicationDomainEx.cs
+1
-1
VIZ.H2V.Domain/Model/Navigation3D/Navigation3DMappingDomainModel.cs
+57
-0
VIZ.H2V.Domain/VIZ.H2V.Domain.csproj
+1
-0
VIZ.H2V.Module/NDIView/Controller/Manual/ManualController.cs
+3
-3
VIZ.H2V.Module/NDIView/View/NDIView.xaml
+8
-0
VIZ.H2V.Module/NDIView/VieweModel/NDIViewModel.Command.cs
+17
-0
VIZ.H2V.Module/NDIView/VieweModel/NDIViewModel.Property.cs
+0
-9
VIZ.H2V.Module/NDIView/VieweModel/NDIViewModel.cs
+1
-0
VIZ.H2V.Module/Setup/Provider/AppSetup_Navigation3DConfig.cs
+5
-2
VIZ.H2V.Module/SystemSetting/View/StyleSettingPanelView.xaml
+13
-2
VIZ.H2V.Module/SystemSetting/ViewModel/StyleSettingPanelViewModel.cs
+23
-1
VIZ.H2V.Storage/LiteDB/System/SystemConfig.cs
+5
-0
VIZ.H2V/config/navigation_3d_mapping/匀速_中等.csv
+3
-3
VIZ.H2V/config/navigation_3d_mapping/变速_中等.csv
+18
-9
VIZ.H2V/config/navigation_3d_mapping/变速_快.csv
+18
-9
VIZ.H2V/config/navigation_3d_mapping/变速_慢.csv
+18
-9
No files found.
VIZ.H2V.Domain/ApplicationDomainEx.cs
View file @
f19b1f91
...
...
@@ -27,6 +27,6 @@ namespace VIZ.H2V.Domain
/// <summary>
/// 3D鼠标映射配置
/// </summary>
public
static
List
<
Navigation3DMapping
>
Navigation3DMapping
{
get
;
set
;
}
public
static
Navigation3DMappingDomainModel
Navigation3DMapping
{
get
;
private
set
;
}
=
new
Navigation3DMappingDomainModel
();
}
}
VIZ.H2V.Domain/Model/Navigation3D/Navigation3DMappingDomainModel.cs
0 → 100644
View file @
f19b1f91
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
VIZ.Framework.Core
;
namespace
VIZ.H2V.Domain
{
/// <summary>
/// 3D鼠标映射领域模型
/// </summary>
public
class
Navigation3DMappingDomainModel
:
ModelBase
{
#
region
Name
--
映射名称
private
string
name
;
/// <summary>
/// 映射名称
/// </summary>
public
string
Name
{
get
{
return
name
;
}
set
{
name
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
Name
));
}
}
#
endregion
#
region
Mappings
--
映射集合
private
List
<
Navigation3DMapping
>
mappings
;
/// <summary>
/// 映射集合
/// </summary>
public
List
<
Navigation3DMapping
>
Mappings
{
get
{
return
mappings
;
}
set
{
mappings
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
Mappings
));
}
}
#
endregion
#
region
Multiple
--
倍率
private
double
multiple
;
/// <summary>
/// 倍率
/// </summary>
public
double
Multiple
{
get
{
return
multiple
;
}
set
{
multiple
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
Multiple
));
}
}
#
endregion
}
}
VIZ.H2V.Domain/VIZ.H2V.Domain.csproj
View file @
f19b1f91
...
...
@@ -77,6 +77,7 @@
<Compile Include="Model\Algorithm\AlgorithmProcessModel.cs" />
<Compile Include="Model\Algorithm\AlgorithmBorderScenceModel.cs" />
<Compile Include="Model\Algorithm\AlgorithmStrategyModel.cs" />
<Compile Include="Model\Navigation3D\Navigation3DMappingDomainModel.cs" />
<Compile Include="Model\Navigation3D\Navigation3DMappingGroupModel.cs" />
<Compile Include="Model\NDI\NDIStreamInfoModel.cs" />
<Compile Include="Model\NDI\NDIStreamDelayInfoModel.cs" />
...
...
VIZ.H2V.Module/NDIView/Controller/Manual/ManualController.cs
View file @
f19b1f91
...
...
@@ -60,7 +60,7 @@ namespace VIZ.H2V.Module
/// <returns>映射值</returns>
public
int
GetMappingValue
()
{
List
<
Navigation3DMapping
>
mappingList
=
ApplicationDomainEx
.
Navigation3DMapping
;
List
<
Navigation3DMapping
>
mappingList
=
ApplicationDomainEx
.
Navigation3DMapping
.
Mappings
;
if
(
mappingList
==
null
)
return
1
;
...
...
@@ -77,14 +77,14 @@ namespace VIZ.H2V.Module
if
(
value
>=
last
.
MaxValue
)
{
return
last
.
MappingValue
*
symbol
;
return
(
int
)(
last
.
MappingValue
*
symbol
*
ApplicationDomainEx
.
Navigation3DMapping
.
Multiple
)
;
}
Navigation3DMapping
mapping
=
mappingList
.
FirstOrDefault
(
p
=>
value
>=
p
.
MinValue
&&
value
<
p
.
MaxValue
);
if
(
mapping
==
null
)
return
0
;
return
mapping
.
MappingValue
*
symbol
;
return
(
int
)(
mapping
.
MappingValue
*
symbol
*
ApplicationDomainEx
.
Navigation3DMapping
.
Multiple
)
;
}
/// <summary>
...
...
VIZ.H2V.Module/NDIView/View/NDIView.xaml
View file @
f19b1f91
...
...
@@ -228,6 +228,14 @@
<CheckBox Style="{StaticResource CheckBox_IsShowCenterAxis}" Width="32" Height="32" Margin="0,0,10,0"
ToolTip="手动模式显示中轴线"
IsChecked="{Binding Path=AlgorithmConfig.IsShowCenterAxis,Mode=TwoWay}">
<behaviors:Interaction.Triggers>
<behaviors:EventTrigger EventName="Checked">
<behaviors:InvokeCommandAction Command="{Binding SaveAlgorithmConfigCommand}" />
</behaviors:EventTrigger>
<behaviors:EventTrigger EventName="Unchecked">
<behaviors:InvokeCommandAction Command="{Binding SaveAlgorithmConfigCommand}" />
</behaviors:EventTrigger>
</behaviors:Interaction.Triggers>
</CheckBox>
<!-- 启用面积百分比校准 -->
...
...
VIZ.H2V.Module/NDIView/VieweModel/NDIViewModel.Command.cs
View file @
f19b1f91
...
...
@@ -419,5 +419,22 @@ namespace VIZ.H2V.Module
}
#
endregion
#
region
SaveAlgorithmConfigCommand
--
保存算法配置命令
/// <summary>
/// 保存算法配置命令
/// </summary>
public
VCommand
SaveAlgorithmConfigCommand
{
get
;
set
;
}
/// <summary>
/// 保存算法配置
/// </summary>
private
void
SaveAlgorithmConfig
()
{
this
.
AlgorithmControllerDic
[
this
.
StrategyType
].
SaveConfig
(
this
.
AlgorithmConfig
);
}
#
endregion
}
}
VIZ.H2V.Module/NDIView/VieweModel/NDIViewModel.Property.cs
View file @
f19b1f91
...
...
@@ -123,15 +123,6 @@ namespace VIZ.H2V.Module
/// </summary>
private
IManualController
ManualController
;
#if DEBUG
/// <summary>
/// 录制控制器
/// </summary>
private
IRecordingController
ReecordingController
;
#endif
// ======================================================================================
// === Property ===
// ======================================================================================
...
...
VIZ.H2V.Module/NDIView/VieweModel/NDIViewModel.cs
View file @
f19b1f91
...
...
@@ -69,6 +69,7 @@ namespace VIZ.H2V.Module
this
.
IsBorderShowChangedCommand
=
new
VCommand
(
this
.
IsBorderShowChanged
);
this
.
IsBorderEnabledChangedCommand
=
new
VCommand
(
this
.
IsBorderEnabledChanged
);
this
.
IsAreaCorrectionEnabledChangedCommand
=
new
VCommand
(
this
.
IsAreaCorrectionEnabledChanged
);
this
.
SaveAlgorithmConfigCommand
=
new
VCommand
(
this
.
SaveAlgorithmConfig
);
}
/// <summary>
...
...
VIZ.H2V.Module/Setup/Provider/AppSetup_Navigation3DConfig.cs
View file @
f19b1f91
...
...
@@ -51,13 +51,16 @@ namespace VIZ.H2V.Module
config
.
ManualNavigation3DMappingName
=
kv
.
Key
;
ApplicationDomainEx
.
Navigation3DMapping
=
kv
.
Value
;
ApplicationDomainEx
.
Navigation3DMapping
.
Name
=
kv
.
Key
;
ApplicationDomainEx
.
Navigation3DMapping
.
Mappings
=
kv
.
Value
;
ApplicationDomainEx
.
LiteDbContext
.
SystemConfig
.
Update
(
config
);
return
true
;
}
ApplicationDomainEx
.
Navigation3DMapping
=
ApplicationDomainEx
.
CsvContext
.
Navigation3DMappingDic
[
config
.
ManualNavigation3DMappingName
];
ApplicationDomainEx
.
Navigation3DMapping
.
Name
=
config
.
ManualNavigation3DMappingName
;
ApplicationDomainEx
.
Navigation3DMapping
.
Multiple
=
config
.
ManualNavigation3DMappingMultiple
;
ApplicationDomainEx
.
Navigation3DMapping
.
Mappings
=
ApplicationDomainEx
.
CsvContext
.
Navigation3DMappingDic
[
config
.
ManualNavigation3DMappingName
];
return
true
;
}
...
...
VIZ.H2V.Module/SystemSetting/View/StyleSettingPanelView.xaml
View file @
f19b1f91
...
...
@@ -40,6 +40,7 @@
<RowDefinition Height="60"></RowDefinition>
<RowDefinition Height="60"></RowDefinition>
<RowDefinition Height="60"></RowDefinition>
<RowDefinition Height="60"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<!-- 剪切框颜色 -->
...
...
@@ -113,9 +114,19 @@
</ComboBox.ItemTemplate>
</ComboBox>
</Grid>
<!-- 手动裁切框移动倍率 -->
<Grid Grid.Row="6">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock Text="手动裁切框移动倍率" Foreground="White" FontSize="18" VerticalAlignment="Center" Grid.Row="2"></TextBlock>
<fcommon:NumberBox Grid.Column="1" MinValue="0.1" MaxValue="5" Interval="0.1" Height="40"
Value="{Binding Path=Navigation3DMappingMultiple,Mode=TwoWay}"></fcommon:NumberBox>
</Grid>
<!-- 手动裁切框移动 -->
<TextBlock Text="手动裁切框移动
" Foreground="White" FontSize="18" VerticalAlignment="Center" Grid.Row="6
"></TextBlock>
<Grid Grid.Row="
7
">
<TextBlock Text="手动裁切框移动
平滑系数" Foreground="White" FontSize="18" VerticalAlignment="Center" Grid.Row="7
"></TextBlock>
<Grid Grid.Row="
8
">
<Grid.RowDefinitions>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
...
...
VIZ.H2V.Module/SystemSetting/ViewModel/StyleSettingPanelViewModel.cs
View file @
f19b1f91
...
...
@@ -160,6 +160,20 @@ namespace VIZ.H2V.Module
#
endregion
#
region
Navigation3DMappingMultiple
--
3D
鼠标倍率
private
double
navigation3DMappingMultiple
;
/// <summary>
/// 3D鼠标倍率
/// </summary>
public
double
Navigation3DMappingMultiple
{
get
{
return
navigation3DMappingMultiple
;
}
set
{
navigation3DMappingMultiple
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
Navigation3DMappingMultiple
));
}
}
#
endregion
// ======================================================================================
// === Commond ===
// ======================================================================================
...
...
@@ -211,6 +225,8 @@ namespace VIZ.H2V.Module
this
.
Navigation3DMappingGroupModelItems
=
items
;
this
.
SelectedNavigation3DMappingGroupModel
=
items
.
FirstOrDefault
(
p
=>
p
.
Name
==
this
.
SystemConfig
.
ManualNavigation3DMappingName
);
this
.
Navigation3DMappingMultiple
=
this
.
SystemConfig
.
ManualNavigation3DMappingMultiple
;
}
#
endregion
...
...
@@ -249,6 +265,9 @@ namespace VIZ.H2V.Module
if
(
this
.
SelectedNavigation3DMappingGroupModel
.
Name
!=
this
.
SystemConfig
.
ManualNavigation3DMappingName
)
return
true
;
if
(
this
.
Navigation3DMappingMultiple
!=
this
.
SystemConfig
.
ManualNavigation3DMappingMultiple
)
return
true
;
return
false
;
}
...
...
@@ -267,6 +286,7 @@ namespace VIZ.H2V.Module
this
.
SystemConfig
.
ClipCenterAxisColor
=
this
.
ClipCenterAxisColor
.
ToString
();
this
.
SystemConfig
.
ManualSmoothCoeff
=
this
.
ManualSmoothCoeff
;
this
.
SystemConfig
.
ManualNavigation3DMappingName
=
this
.
SelectedNavigation3DMappingGroupModel
.
Name
;
this
.
SystemConfig
.
ManualNavigation3DMappingMultiple
=
this
.
Navigation3DMappingMultiple
;
ApplicationDomainEx
.
LiteDbContext
.
SystemConfig
.
Update
(
this
.
SystemConfig
);
...
...
@@ -276,7 +296,9 @@ namespace VIZ.H2V.Module
p
.
LoadStyle
();
p
.
LoadClipBoxSmooth
(
this
.
ManualSmoothCoeff
);
});
ApplicationDomainEx
.
Navigation3DMapping
=
this
.
SelectedNavigation3DMappingGroupModel
.
Mappings
;
ApplicationDomainEx
.
Navigation3DMapping
.
Name
=
this
.
SelectedNavigation3DMappingGroupModel
.
Name
;
ApplicationDomainEx
.
Navigation3DMapping
.
Multiple
=
this
.
Navigation3DMappingMultiple
;
ApplicationDomainEx
.
Navigation3DMapping
.
Mappings
=
this
.
SelectedNavigation3DMappingGroupModel
.
Mappings
;
// 返回
return
true
;
...
...
VIZ.H2V.Storage/LiteDB/System/SystemConfig.cs
View file @
f19b1f91
...
...
@@ -59,5 +59,10 @@ namespace VIZ.H2V.Storage
/// 手动裁切配置文件在 config/navigation_3d_mapping/ 文件夹下
/// </remarks>
public
string
ManualNavigation3DMappingName
{
get
;
set
;
}
/// <summary>
/// 手动裁切映射值倍率
/// </summary>
public
double
ManualNavigation3DMappingMultiple
{
get
;
set
;
}
=
1d
;
}
}
VIZ.H2V/config/navigation_3d_mapping/匀速_中等.csv
View file @
f19b1f91
ID,Mi
nValue,MaxValue,MappingValue
ID,Mi
nValue,MaxValue,MappingValue
ID,MinValue,MaxValue,MappingValue
1,100,9999,10
\ No newline at end of file
1,100,9999,15
\ No newline at end of file
VIZ.H2V/config/navigation_3d_mapping/变速_中等.csv
View file @
f19b1f91
ID,Mi
nValue,MaxValue,MappingValue
ID,Mi
nValue,MaxValue,MappingValue
ID,MinValue,MaxValue,MappingValue
1,100,300,1
2,300,600,3
3,600,900,5
4,900,1200,10
5,1200,1500,15
6,1500,1800,20
7,1800,2100,30
\ No newline at end of file
1,100,200,2
2,200,300,3
3,300,400,4
4,400,500,5
5,500,600,6
6,600,700,7
7,700,800,8
8,800,900,9
9,900,1000,10
10,1000,1100,11
11,1100,1200,13
12,1200,1300,15
13,1300,1400,17
14,1400,1500,19
15,1500,2200,25
16,2200,9999,30
\ No newline at end of file
VIZ.H2V/config/navigation_3d_mapping/变速_快.csv
View file @
f19b1f91
ID,Mi
nValue,MaxValue,MappingValue
ID,Mi
nValue,MaxValue,MappingValue
ID,MinValue,MaxValue,MappingValue
1,100,300,5
2,300,600,10
3,600,900,20
4,900,1200,30
5,1200,1500,40
6,1500,1800,50
7,1800,2100,60
\ No newline at end of file
1,100,200,2
2,200,300,3
3,300,400,4
4,400,500,5
5,500,600,6
6,600,700,7
7,700,800,8
8,800,900,9
9,900,1000,10
10,1000,1100,15
11,1100,1200,20
12,1200,1300,25
13,1300,1400,30
14,1400,1500,35
15,1500,2200,40
16,2200,9999,45
\ No newline at end of file
VIZ.H2V/config/navigation_3d_mapping/变速_慢.csv
View file @
f19b1f91
ID,Mi
nValue,MaxValue,MappingValue
ID,Mi
nValue,MaxValue,MappingValue
ID,MinValue,MaxValue,MappingValue
1,100,300,1
2,300,600,2
3,600,900,3
4,900,1200,5
5,1200,1500,8
6,1500,1800,13
7,1800,2100,20
\ No newline at end of file
1,100,200,2
2,200,300,3
3,300,400,4
4,400,500,5
5,500,600,6
6,600,700,7
7,700,800,8
8,800,900,9
9,900,1000,10
10,1000,1100,11
11,1100,1200,12
12,1200,1300,13
13,1300,1400,15
14,1400,1500,17
15,1500,2200,20
16,2200,9999,25
\ No newline at end of file
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