Commit d5d0a336 by liulongfei

居中模式移动裁切框

parent baa1c5ba
...@@ -139,7 +139,7 @@ namespace VIZ.H2V.Module ...@@ -139,7 +139,7 @@ namespace VIZ.H2V.Module
return; return;
// 在2秒内移动裁切框至居中模式值 // 在2秒内移动裁切框至居中模式值
this.Support.MoveClipBoxToCenterMode(2); this.Support.MoveClipBoxToCenterMode(1);
// 更新裁切框样式 // 更新裁切框样式
this.Support.UpdateClipBoxToAutoOrCenterStyle(); this.Support.UpdateClipBoxToAutoOrCenterStyle();
......
...@@ -59,7 +59,7 @@ namespace VIZ.H2V.Module ...@@ -59,7 +59,7 @@ namespace VIZ.H2V.Module
/// <summary> /// <summary>
/// 裁切框每帧自动移动距离(单位 :像素) /// 裁切框每帧自动移动距离(单位 :像素)
/// </summary> /// </summary>
private int CLIP_BOX_AUTO_MOVING = 40; private int CLIP_BOX_AUTO_MOVING = 80;
/// <summary> /// <summary>
/// 移动至 /// 移动至
...@@ -73,6 +73,7 @@ namespace VIZ.H2V.Module ...@@ -73,6 +73,7 @@ namespace VIZ.H2V.Module
this.Reset(this.Support.ClipBoxX); this.Reset(this.Support.ClipBoxX);
this.ClipBoxCenterX = MathHelper.Clip(min, max, targetX); this.ClipBoxCenterX = MathHelper.Clip(min, max, targetX);
this.IsClipBoxAutoMoving = true; this.IsClipBoxAutoMoving = true;
this.Support.IsCenterModeMoveToCenterEnabled = false;
ApplicationDomainEx.DelayManager.Wait("ManualController.MoveTo", seconds, () => ApplicationDomainEx.DelayManager.Wait("ManualController.MoveTo", seconds, () =>
{ {
...@@ -97,7 +98,8 @@ namespace VIZ.H2V.Module ...@@ -97,7 +98,8 @@ namespace VIZ.H2V.Module
// 居中模式自动移动过程 // 居中模式自动移动过程
if (this.IsClipBoxAutoMoving) if (this.IsClipBoxAutoMoving)
{ {
return this.GetCalculationValue_Center(min, max); double result = this.GetCalculationValue_Center(min, max);
return result;
} }
if (this.Support.IsActive) if (this.Support.IsActive)
......
...@@ -451,8 +451,7 @@ namespace VIZ.H2V.Module ...@@ -451,8 +451,7 @@ namespace VIZ.H2V.Module
/// </summary> /// </summary>
private void CenterModeMoveToCenter() private void CenterModeMoveToCenter()
{ {
this.IsCenterModeMoveToCenterEnabled = false; this.MoveClipBoxTo(555, 1);
this.MoveClipBoxTo(555, 2);
} }
#endregion #endregion
......
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