fix(viz): TransferfunctionWidget does not refresh when the image is updated and not fully re-created
Description
The TF editor widget in configs/viz/scene2d/rc/configurations/TransferFunctionWidget.xml allows to update images tfs.
The present adaptors and config implementation require a restart to update its display when the image is changed.
This can be done through a deferred image, which is completely overwritten (even the pointer), leading to the service restart.
However, this is a huge limitation to this config usage.
It is expected to refresh when the image sends a modified signal.
Steps to reproduce
- modify SightViewer to use an image reader service instead of a SeriesSet.
- load an image, the TF editor does not change.
Functional specifications
The TF editor should be updated when the modified signal is sent on the image.
Technical specifications
Modify all necessary adaptors to refresh properly, not only when starting/stopping.
Test plan
Actually, since no application exists with this configuration, this is a bit tough... I could give a try with unit-testing...