My use case involves loading and visualizing tracked ultrasound sequences. I have been using the volume reslice driver to set up visualization, and have implemented a function which successfully sets up this visualization. So far I have been controlling it by using a node combo box and the “nodeActivated” signal.
An even better solution would be to customize the behavior of clicking the “eye” icon in the subject hierarchy view widget in my module:
The behavior of the eye icon is designed to be customizable. All you need to do is to create a subject hierarchy plugin, make that plugin return higher value in canOwnSubjectHierarchyItem method and specify any behavior you need in the visibilityIcon method. See a complete example here.