Commit d5d0a336 by liulongfei

居中模式移动裁切框

parent baa1c5ba
......@@ -139,7 +139,7 @@ namespace VIZ.H2V.Module
return;
// 在2秒内移动裁切框至居中模式值
this.Support.MoveClipBoxToCenterMode(2);
this.Support.MoveClipBoxToCenterMode(1);
// 更新裁切框样式
this.Support.UpdateClipBoxToAutoOrCenterStyle();
......
......@@ -59,7 +59,7 @@ namespace VIZ.H2V.Module
/// <summary>
/// 裁切框每帧自动移动距离(单位 :像素)
/// </summary>
private int CLIP_BOX_AUTO_MOVING = 40;
private int CLIP_BOX_AUTO_MOVING = 80;
/// <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)
......
......@@ -451,8 +451,7 @@ namespace VIZ.H2V.Module
/// </summary>
private void CenterModeMoveToCenter()
{
this.IsCenterModeMoveToCenterEnabled = false;
this.MoveClipBoxTo(555, 2);
this.MoveClipBoxTo(555, 1);
}
#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