-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
WIP: Add text above orientation slider #7211
WIP: Add text above orientation slider #7211
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7211 +/- ##
==========================================
+ Coverage 89.77% 89.77% +<.01%
==========================================
Files 445 445
Lines 79890 79993 +103
Branches 12773 12788 +15
==========================================
+ Hits 71720 71814 +94
- Misses 5372 5373 +1
- Partials 2798 2806 +8 |
BTW @GuillaumeFavelier I wonder if we should try to take the opposite approach by keeping our controls some fixed size. For example:
Makes the labels always the same size, which is kind of nice. If we could make our controls always on the right with some fixed width, this is more like how most GUIs display -- you scale up the window, the controls do not also scale up. The time slider scaling to fill the width and colorbar scaling to fill the height are probably okay. But if we fix those, too, it might not be so bad. Just some more ideas for someday. But I would say let's tackle this after the multi-view and linked-plotter ideas. |
I'm tempted to try those ideas in this PR actually. And in this case the fixed size of the label would not be a bug but a feature. |
Codecov Report
@@ Coverage Diff @@
## master #7211 +/- ##
==========================================
+ Coverage 89.77% 89.77% +<.01%
==========================================
Files 445 445
Lines 79890 79993 +103
Branches 12773 12788 +15
==========================================
+ Hits 71720 71814 +94
- Misses 5372 5373 +1
- Partials 2798 2806 +8 |
Over in #7219 it looks like you are doing some coordinate gymnastics anyway, might not be a bad time to figure out how to get some controls to always be some fixed width, fixed height, and fixed distance from the screen edge regardless of screen size. Even the time slider and colorbar could in principle be made some fixed size. Though the time slider does become more usable the larger it gets, so maybe that one should grow. I'll let you think on it :) |
Just a thought: I think extending the sliders a bit (for example up to some max length) might be helpful in bigger windows - it gives the user more precision in selecting time and color limits (but still allows for all the sliders to fit in a smaller window). |
@GuillaumeFavelier do we still need this? The current behavior seems okay, this seems more like a "nice to have someday maybe" option |
The priority is really low and this is not so trivial to achieve. We can delay it further and focus on the layout itself. Either way, I agree with you this 'nice to have'. |
Okay let's close for now and reopen when someone is motivated |
I could find this
Reference: https://vtk.org/doc/nightly/html/classvtkScalarBarActor.html#a668d039964548cca8f2b6c1a4e664689 |
This PR updates the orientation slider of
_TimeViewer
and adds avtkTextActor
above the slider.Known issues
For now, the text does not scale with the window size
It's an item of #7162