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
d5d0a336
Commit
d5d0a336
authored
Sep 21, 2022
by
liulongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
居中模式移动裁切框
parent
baa1c5ba
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
VIZ.H2V.Module/NDIView/Controller/Algorithm/AlgorithmControllerBase.cs
+1
-1
VIZ.H2V.Module/NDIView/Controller/Manual/ManualController.cs
+4
-2
VIZ.H2V.Module/NDIView/VieweModel/NDIViewModel.Command.cs
+1
-2
No files found.
VIZ.H2V.Module/NDIView/Controller/Algorithm/AlgorithmControllerBase.cs
View file @
d5d0a336
...
...
@@ -139,7 +139,7 @@ namespace VIZ.H2V.Module
return
;
// 在2秒内移动裁切框至居中模式值
this
.
Support
.
MoveClipBoxToCenterMode
(
2
);
this
.
Support
.
MoveClipBoxToCenterMode
(
1
);
// 更新裁切框样式
this
.
Support
.
UpdateClipBoxToAutoOrCenterStyle
();
...
...
VIZ.H2V.Module/NDIView/Controller/Manual/ManualController.cs
View file @
d5d0a336
...
...
@@ -59,7 +59,7 @@ namespace VIZ.H2V.Module
/// <summary>
/// 裁切框每帧自动移动距离(单位 :像素)
/// </summary>
private
int
CLIP_BOX_AUTO_MOVING
=
4
0
;
private
int
CLIP_BOX_AUTO_MOVING
=
8
0
;
/// <summary>
/// 移动至
...
...
@@ -73,6 +73,7 @@ namespace VIZ.H2V.Module
this
.
Reset
(
this
.
Support
.
ClipBoxX
);
this
.
ClipBoxCenterX
=
MathHelper
.
Clip
(
min
,
max
,
targetX
);
this
.
IsClipBoxAutoMoving
=
true
;
this
.
Support
.
IsCenterModeMoveToCenterEnabled
=
false
;
ApplicationDomainEx
.
DelayManager
.
Wait
(
"ManualController.MoveTo"
,
seconds
,
()
=>
{
...
...
@@ -97,7 +98,8 @@ namespace VIZ.H2V.Module
// 居中模式自动移动过程
if
(
this
.
IsClipBoxAutoMoving
)
{
return
this
.
GetCalculationValue_Center
(
min
,
max
);
double
result
=
this
.
GetCalculationValue_Center
(
min
,
max
);
return
result
;
}
if
(
this
.
Support
.
IsActive
)
...
...
VIZ.H2V.Module/NDIView/VieweModel/NDIViewModel.Command.cs
View file @
d5d0a336
...
...
@@ -451,8 +451,7 @@ namespace VIZ.H2V.Module
/// </summary>
private
void
CenterModeMoveToCenter
()
{
this
.
IsCenterModeMoveToCenterEnabled
=
false
;
this
.
MoveClipBoxTo
(
555
,
2
);
this
.
MoveClipBoxTo
(
555
,
1
);
}
#
endregion
...
...
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