Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
Thick-Common
Commits
45bb6303
Commit
45bb6303
authored
Apr 16, 2021
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 完成机架修正的 关键点插入方式拟合
parent
94bbae44
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
373 additions
and
133 deletions
+373
-133
PgScanCorr.xaml
...Y.Thick.Base/FLY.Thick.Base.UI/PgScanCorr/PgScanCorr.xaml
+21
-6
PgScanCorr.xaml.cs
...hick.Base/FLY.Thick.Base.UI/PgScanCorr/PgScanCorr.xaml.cs
+3
-3
PgScanCorrVm.cs
...Y.Thick.Base/FLY.Thick.Base.UI/PgScanCorr/PgScanCorrVm.cs
+346
-104
PgScanCorrVmUt.cs
...Thick.Base/FLY.Thick.Base.UI/PgScanCorr/PgScanCorrVmUt.cs
+3
-20
No files found.
Project.FLY.Thick.Base/FLY.Thick.Base.UI/PgScanCorr/PgScanCorr.xaml
View file @
45bb6303
...
...
@@ -293,16 +293,31 @@
<StackPanel Orientation="Horizontal">
<StackPanel Orientation="Horizontal">
<Button Content="添加" Command="{Binding AddKeyPointModeCmd}" Style="{StaticResource Styles.Button.Square2}"/>
<Button Content="删除" Command="{Binding RemoveKeyPointModeCmd}" Style="{StaticResource Styles.Button.Square2}" />
<Button Content="移动" Command="{Binding MoveKeyPointModeCmd}" Style="{StaticResource Styles.Button.Square2}" />
<Button Content="生成" Command="{Binding CreateCorrByKeyPointCmd}" >
<Button Content="添加" Command="{Binding AddKeyPointModeCmd}" >
<Button.Style>
<Style TargetType="Button" BasedOn="{StaticResource Styles.Button.Square.Accent2}">
<Style TargetType="Button" BasedOn="{StaticResource Styles.Button.Square2}">
<Style.Triggers>
<DataTrigger Binding="{Binding KpSelectMode}" Value="{x:Static local:KeyPointsSelectMode.Add}" >
<Setter Property="IsEnabled" Value="False"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
<Button Content="删除" Command="{Binding RemoveKeyPointModeCmd}" >
<Button.Style>
<Style TargetType="Button" BasedOn="{StaticResource Styles.Button.Square2}">
<Style.Triggers>
<DataTrigger Binding="{Binding KpSelectMode}" Value="{x:Static local:KeyPointsSelectMode.Remove}" >
<Setter Property="IsEnabled" Value="False"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
<Button Style="{StaticResource Styles.Button.Square.Accent2}"
Content="生成" Command="{Binding CreateCorrByKeyPointCmd}" />
</StackPanel>
</StackPanel>
</StackPanel>
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/PgScanCorr/PgScanCorr.xaml.cs
View file @
45bb6303
...
...
@@ -78,7 +78,7 @@ namespace FLY.Thick.Base.UI
//pEnd = closetsPoint;
pEnd
=
p
;
vm
.
Select
(
pBegin
,
pEnd
);
vm
.
Select
(
PgScanCorrVm
.
SelectType
.
Move
,
pBegin
,
pEnd
);
}
...
...
@@ -105,7 +105,7 @@ namespace FLY.Thick.Base.UI
//}
//cpBegin = closetsPoint;
vm
.
Select
(
pBegin
,
pBegin
);
vm
.
Select
(
PgScanCorrVm
.
SelectType
.
Click
,
pBegin
,
pBegin
);
}
private
void
UIElement_MouseUp
(
object
sender
,
MouseButtonEventArgs
e
)
...
...
@@ -132,7 +132,7 @@ namespace FLY.Thick.Base.UI
//if (closetsPoint == null)
// return;
pEnd
=
p
;
vm
.
Select
(
pBegin
,
pEnd
);
vm
.
Select
(
PgScanCorrVm
.
SelectType
.
Cancel
,
pBegin
,
pEnd
);
}
}
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/PgScanCorr/PgScanCorrVm.cs
View file @
45bb6303
This diff is collapsed.
Click to expand it.
Project.FLY.Thick.Base/FLY.Thick.Base.UI/PgScanCorr/PgScanCorrVmUt.cs
View file @
45bb6303
...
...
@@ -132,27 +132,10 @@ namespace FLY.Thick.Base.UI
#
endregion
#
region
关键点方式生成修正曲线
/// <summary>
/// 关键点列表,单位grid
/// </summary>
public
ObservableCollection
<
int
>
KeyPoints
=
new
ObservableCollection
<
int
>();
/// <summary>
/// 每个关键点的数据宽度 单位grid
/// </summary>
public
int
KeyPointWidth
{
get
;
set
;
}
/// <summary>
/// 选择中
/// </summary>
public
bool
IsSelecting
=>
SelectObj
!=
SELECT_OBJ
.
Null
;
public
SELECT_OBJ
SelectObj
{
get
;
set
;
}
=
SELECT_OBJ
.
Null
;
public
enum
SELECT_OBJ
{
Null
,
Add
,
Remove
,
Move
}
public
KeyPointsSelectMode
KpSelectMode
{
get
;
set
;
}
=
KeyPointsSelectMode
.
Null
;
#
endregion
/// <summary>
...
...
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