-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ui] 2D viewer: image sequence player #1989
Conversation
20dd6d1
to
e8cc706
Compare
ba2d684
to
7b077c7
Compare
7b077c7
to
e928ef0
Compare
e928ef0
to
d852dc1
Compare
4134d79
to
5b2b431
Compare
meshroom/ui/qml/Viewer/Viewer2D.qml
Outdated
return getViewpointMetadata(_reconstruction.selectedViewId); | ||
let vp = getViewpoint(_reconstruction.selectedViewId); | ||
let metadata = vp ? vp.childAttribute("metadata").value : ""; | ||
return JSON.parse(metadata); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not exactly sure how it is triggered, but this line generates some SyntaxError: JSON.parse: Parse error
as soon as a project is loaded, probably because the viewpoint (and thus the metadata) is not yet available at that point.
target: _reconstruction | ||
function onSelectedViewIdChanged() { | ||
for (let idx = 0; idx < sortedViewIds.length; idx++) { | ||
if (_reconstruction.selectedViewId == sortedViewIds[idx] && (m.frame != idx)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think type coercion could be applied here:
if (_reconstruction.selectedViewId == sortedViewIds[idx] && (m.frame != idx)) { | |
if (_reconstruction.selectedViewId === sortedViewIds[idx] && (m.frame != idx)) { |
…antly updating selectedViewId
Implicitly defined slots in `Connections` are deprecated and should be replaced with functions.
97e27dd
to
73533cf
Compare
Description
This PR introduces a new UI element in the 2D viewer: an image sequence player.
This player allows user to navigate smoothly between viewpoints and provides playback functionnalities.
For performance and interactivity purposes, this feature relies on a newly introduces image sequence cache in QtAliceVision: alicevision/QtAliceVision#36
Features list
SequencePlayer
component with :pickedViewId
concept inreconstruction
subordinated toselectedViewId
to allow only partial UI updates