Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FGOUT
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
王永辉
FGOUT
Commits
19a4e6bb
Commit
19a4e6bb
authored
May 10, 2024
by
鲁志-悦动
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化Replay播放时判断标完入点框之后入点是否又移动了
parent
209a4665
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
VIZ.FGOUT/VIZ.FGOUT.Module/NDIView/ViewModel/NDIViewModel.Manual_NDI.cs
+7
-2
VIZ.FGOUT/VIZ.FGOUT.Module/NDIView/ViewModel/NDIViewModel.cs
+4
-4
No files found.
VIZ.FGOUT/VIZ.FGOUT.Module/NDIView/ViewModel/NDIViewModel.Manual_NDI.cs
View file @
19a4e6bb
...
...
@@ -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
;
}
}
//先清除跟踪框
...
...
VIZ.FGOUT/VIZ.FGOUT.Module/NDIView/ViewModel/NDIViewModel.cs
View file @
19a4e6bb
...
...
@@ -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传值共用这一个方法
...
...
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