Skip to content

Conversation

@Carifio24
Copy link
Member

@Carifio24 Carifio24 commented May 22, 2025

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_glsl registry so that a plugin can extend this functionality if it wants to). At least in my local testing, asinh wasn'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.

@Carifio24
Copy link
Member Author

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.

@Carifio24 Carifio24 marked this pull request as ready for review May 22, 2025 19:27
@Carifio24 Carifio24 force-pushed the volume-stretches branch 3 times, most recently from 70e02a5 to eae26c1 Compare May 27, 2025 16:01
Copy link
Member

@astrofrog astrofrog left a 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.

@astrofrog
Copy link
Member

@Carifio24 could you rebase this?

@Carifio24
Copy link
Member Author

@astrofrog Just rebased

Copy link
Member

@astrofrog astrofrog left a 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>
Copy link
Member

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?

@Carifio24
Copy link
Member Author

@astrofrog Got rid of that radio button, I think the UI widgets should be okay now

@astrofrog astrofrog merged commit 6a620b1 into glue-viz:main Jun 30, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants