Commit 19a4e6bb by 鲁志-悦动

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

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