[qmlSfmData] Upscale the currently selected camera #52
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a getter for the
viewId
member of theCameraLocatorEntity
object and uses it to determine the camera that is currently selected.That specific camera is upscaled with a factor of 1.5 in order to better stand out and the color of its gizmo is set to blue. Prior to this PR, the currently selected camera was only highlighted by having its object picker's color set to blue. For photogrammetry use cases, this was enough to identify it easily as the cameras are generally spread around. For camera tracking use cases, this was more difficult as the cameras are very closely following each other.
As soon as the camera is not selected anymore, it is rescaled normally and the gizmo's color is set to white again. The upscale is also correctly applied when the global scale for all the cameras is updated.
The information about the currently selected camera is obtained from the QML side through alicevision/Meshroom#2237.