-
Notifications
You must be signed in to change notification settings - Fork 21
Add support for stretches in volume viewer #396
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
Conversation
|
Added a widget to control the stretch to the Jupyter volume layer controls, so other than adding a test once we're happy with the functionality I don't think there's anything else I was planning to do with this. |
70e02a5 to
eae26c1
Compare
astrofrog
left a comment
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.
Works nicely! Let me know once this is rebased (once the other PR is merged) and I can review the actual code.
|
@Carifio24 could you rebase this? |
eae26c1 to
8cba3a9
Compare
|
@astrofrog Just rebased |
astrofrog
left a comment
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.
Works nicely for me! Just a small comment about a rogue radio button which appears below the transparency slider.
| <item row="9" column="1"> | ||
| <widget class="QRadioButton" name="radio_subset_data"> | ||
| <property name="text"> | ||
| <string>Data</string> |
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.
This radio button seems unrelated?
|
@astrofrog Got rid of that radio button, I think the UI widgets should be okay now |
This PR builds on top of #395 and adds support for stretches for the volume viewer. This is done by creating a GLSL template string for each stretch type (which are stored in a
stretch_glslregistry so that a plugin can extend this functionality if it wants to). At least in my local testing,asinhwasn't a builtin GLSL function so this uses the log/sqrt expression for it.Marking this as a draft as I haven't set up the UI for the Jupyter volume viewer yet.