Resolve "fix(viz): TransferfunctionWidget does not refresh when the image is updated and not fully re-created"
requested to merge 1067-fix-viz-transferfunctionwidget-does-not-refresh-when-the-image-is-updaed-and-not-fully-re into dev
Description
This fixes the transfer function widget when the image is updated. This happens for instance when the input image of the configuration is not deferred.
Closes #1067 (closed)
How to test it?
To reproduce the problem:
- Checkout the branch test-mr-1067
- Build SightViewer
- Run SightViewer
- Load an image
- Observe the TF editor is broken
To verify the fix:
- Checkout this mr branch
- Cherry-pick the single commit from branch test-mr-1067
- Build SightViewer
- Run SightViewer
- Load an image
- Observe the TF editor is correct
You can also load an image with the normal build of sight.