RS-Viewer : metadata scrollbar added - #11637
Conversation
|
Please also rebase development so we can see LibCI works |
e523dc8 to
6015559
Compare
| { | ||
| auto zoom_val = 1.f; | ||
| if (stream_rect.contains(g.cursor)) | ||
| if (stream_rect.contains(g.cursor) && !show_metadata) |
There was a problem hiding this comment.
Now I see, you placed a comment 500 lines above.
Please add a comment here.
And the main reason I wanted a comment is to explain why we only calculate the mouse scroll for zoom when we don't have metadata.
Something like:
`We allow scrolling for zoom in/out when no metadata is on.
If we have metadata on it will scroll the metadata
There was a problem hiding this comment.
Oh, my bad. Those lines look a little similar...
There was a problem hiding this comment.
Still missing comment.
Allow mouse scrolling for zoom when not displaying scrollable metadata
There was a problem hiding this comment.
The comment was added.
Nir-Az
left a comment
There was a problem hiding this comment.
Overall it looks great.
Just added a few questions and comment that may help the code to be more readable
|
OK a few things:
See running example: |
| rsutils::string::from() << std::setprecision(2) << std::fixed << view_fps.get_fps(), | ||
| "Viewer FPS captures how many frames the application manages to render.\n" | ||
| "Frame drops can occur for variety of reasons." }); | ||
| const std::string no_md = "no md"; |
There was a problem hiding this comment.
Please verify that the use case of not having metadata looks OK too.
You can use @remibettan help to remove the metadata from the registry and verify it looks OK as it was on an old viewer code
| || (profile.stream_type() == RS2_STREAM_POSE); | ||
|
|
||
| // This scope contains a logic behavior of mouse on viewport when metadata not visible for user. | ||
| if (stream_rect.contains(mouse.cursor) && !non_visual_stream && !show_metadata) |
There was a problem hiding this comment.
Curser behavior on visual stream with no metadata on
0c4cc7c to
27eb5d7
Compare


Tracked on [LRS-714]
The scrollbar was created for metadata view mode.