Commit 19a4e6bb by 鲁志-悦动

优化Replay播放时判断标完入点框之后入点是否又移动了

parent 209a4665
...@@ -368,15 +368,19 @@ namespace VIZ.FGOUT.Module ...@@ -368,15 +368,19 @@ namespace VIZ.FGOUT.Module
//把选中框的信息也加到这个集合里 //把选中框的信息也加到这个集合里
_cam3Infos.Add(saveInfo); _cam3Infos.Add(saveInfo);
//_cam3UpdateInfos.Add(saveInfo); //_cam3UpdateInfos.Add(saveInfo);
//记录标红框时入点时间戳
_RecordStartTime = saveInfo.TimeCode;
} }
} }
//view3.video.UpdateTrackingBox(_cam3UpdateInfos); //view3.video.UpdateTrackingBox(_cam3UpdateInfos);
//记录标红框时入点时间戳 //记录标红框时入点时间戳
_RecordStartTime = StartTime; //_RecordStartTime = StartTime;
} }
else else
{ {
//单人
var info = view3.saveInfo; var info = view3.saveInfo;
//更新红色点中框 //更新红色点中框
if (info.SrcRect.Left > 0) if (info.SrcRect.Left > 0)
...@@ -387,7 +391,8 @@ namespace VIZ.FGOUT.Module ...@@ -387,7 +391,8 @@ namespace VIZ.FGOUT.Module
//view3.video.UpdateTrackingBox(new List<TrackingBoxInfo>(){ info }); //view3.video.UpdateTrackingBox(new List<TrackingBoxInfo>(){ info });
//记录标红框时入点时间戳 //记录标红框时入点时间戳
_RecordStartTime = StartTime; //_RecordStartTime = StartTime;
_RecordStartTime = info.TimeCode;
} }
} }
//先清除跟踪框 //先清除跟踪框
......
...@@ -260,10 +260,9 @@ namespace VIZ.FGOUT.Module ...@@ -260,10 +260,9 @@ namespace VIZ.FGOUT.Module
List<List<List<int>>> inPoints = new List<List<List<int>>>(); List<List<List<int>>> inPoints = new List<List<List<int>>>();
bool isInPoint = false; bool isInPoint = false;
//单人项目 //手拖框
if (nDIView.rectsReplay.Count > 0 && nDIView.rectsReplay[0].Width > 0 && nDIView.rectsReplay[0].Height > 0) if (nDIView.rectsReplay.Count > 0 && nDIView.rectsReplay[0].Width > 0 && nDIView.rectsReplay[0].Height > 0)
{ {
if (InPointIsMoved()) return; //入点和入点标记框位置不一致,返回
inPoints = Coordinate(nDIView.rectsReplay, srcWidth, srcHeight); inPoints = Coordinate(nDIView.rectsReplay, srcWidth, srcHeight);
isInPoint = true; isInPoint = true;
} }
...@@ -282,11 +281,12 @@ namespace VIZ.FGOUT.Module ...@@ -282,11 +281,12 @@ namespace VIZ.FGOUT.Module
return; return;
} }
} }
//手拖框 //单人项目
else else
{ {
if(nDIView.saveInfo.SrcRect.Left > 0) if(nDIView.saveInfo.SrcRect.Left > 0)
{ {
if (InPointIsMoved()) return; //入点和入点标记框位置不一致,返回
inPoints = CoordinateTrackingBoxInfo(nDIView.saveInfo.SrcRect, srcWidth, srcHeight); inPoints = CoordinateTrackingBoxInfo(nDIView.saveInfo.SrcRect, srcWidth, srcHeight);
isInPoint = true; isInPoint = true;
} }
...@@ -439,7 +439,7 @@ namespace VIZ.FGOUT.Module ...@@ -439,7 +439,7 @@ namespace VIZ.FGOUT.Module
//public static List<TrackingBoxInfo> _cam3StaticInfos; //public static List<TrackingBoxInfo> _cam3StaticInfos;
public static List<TrackingBoxInfo> _cam3StaticInfos = new List<TrackingBoxInfo>(); public static List<TrackingBoxInfo> _cam3StaticInfos = new List<TrackingBoxInfo>();
public long _RecordStartTime; public static long _RecordStartTime;
/// <summary> /// <summary>
/// Replay选中和SliderValueChanged传值共用这一个方法 /// Replay选中和SliderValueChanged传值共用这一个方法
......
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