Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LidarView-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LidarView
LidarView-Core
Commits
f3a28677
Commit
f3a28677
authored
2 years ago
by
Nick Laurenson
Browse files
Options
Downloads
Patches
Plain Diff
[fix] Next Frame doesn't jump to t+1s
parent
c621bdb8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!345
VCR fix
Pipeline
#282231
passed
2 years ago
Stage: test
Pipeline: LidarView
#282232
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ApplicationComponents/lqPlayerControlsController.cxx
+16
-0
16 additions, 0 deletions
ApplicationComponents/lqPlayerControlsController.cxx
ApplicationComponents/lqPlayerControlsController.h
+3
-0
3 additions, 0 deletions
ApplicationComponents/lqPlayerControlsController.h
with
19 additions
and
0 deletions
ApplicationComponents/lqPlayerControlsController.cxx
+
16
−
0
View file @
f3a28677
...
...
@@ -239,6 +239,22 @@ void lqPlayerControlsController::setSceneTime(double time)
this
->
Scene
->
setAnimationTime
(
time
);
}
//-----------------------------------------------------------------------------
void
lqPlayerControlsController
::
onNextFrame
()
{
// need to change the mode as in realtime next frame is actually t = t+1s
SetProperty
(
this
->
Scene
,
"PlayMode"
,
vtkAnimationScene
::
PLAYMODE_SEQUENCE
);
this
->
Scene
->
getProxy
()
->
InvokeCommand
(
"GoToNext"
);
}
//-----------------------------------------------------------------------------
void
lqPlayerControlsController
::
onPreviousFrame
()
{
// need to change the mode as in realtime previous frame is actually t = t-1s
SetProperty
(
this
->
Scene
,
"PlayMode"
,
vtkAnimationScene
::
PLAYMODE_SEQUENCE
);
this
->
Scene
->
getProxy
()
->
InvokeCommand
(
"GoToPrevious"
);
}
//-----------------------------------------------------------------------------
void
lqPlayerControlsController
::
setPlayMode
(
double
speed
){
if
(
!
this
->
Scene
)
...
...
This diff is collapsed.
Click to expand it.
ApplicationComponents/lqPlayerControlsController.h
+
3
−
0
View file @
f3a28677
...
...
@@ -72,6 +72,9 @@ public slots:
void
onSeekFrame
(
int
index
);
void
onSeekTime
(
double
time
);
void
onPreviousFrame
();
// cannot override as the method is not virtual, but not needed in our case
void
onNextFrame
();
// cannot override as the method is not virtual, but not needed in our case
Q_SIGNALS:
void
speedChange
(
double
);
// Signal speed has changed
void
frameRanges
(
int
,
int
);
// Tirggered alongside VCR original 'TimeRanges'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment